I have created a .NET user control with an ActiveX interface. It works well.
Now, I want to be able to read and write from the property bag for the ActiveX interface.
How would I do this?
For some reason on one pc, when variable names are going from batch file to Cygwin environment, they are capitalizing. On other the case stay intact.
@set aa=bb
%BASH% --login -c "set"
so the output in one case will show AA=bb in other case aa=bb
How to control the case of the exported variables?
The problem is in being able to catch the instance of the player to control it i.e. Stop it, Play it etc. The code by default creates multiple instances of the same player and overlaps the songs. I am being unable to reference the player specifically.
Do you have an idea as to how we can do so?
Thanks,
Arun
What is the default for ClientIdMode on
a) Page
b) Control
c) UserControl
From what I have read it is Predictable, Inherit, Inherit. I expected the default on the Page to be AutoId. Wouldn't Predictable break things?
I dont think this is possible but maybe someone knows a way to achieve this. I want to attach an event to an html element to listen to attribute change. So say for instance that I want something to happen when a visibility of a div changes. The reason is that I have no control over the javascript that is switching the visibility, hence the need for an event.
Thanks
Hello everyone,
I'm trying to create a simple textblock control and I'm trying to insert a property from my ViewModel in the middle of the string.
E.G. "Hello, My name is XX, bla, bla."
(XX is a property from my ViewModel)
<TextBlock Text="Hello, My name is {Binding SelectedUser.Name}, bla, bla." />
Is that possible?
Regards,
Adrian
I prefer to edit in one large file rather than many independent files, but due to limitations in languages, source control, and the preference of team mates I need to output to many files.
What I'm looking for would recurse through all the files in a source directory and generate a single file to edit in VIM, with special file seperator markers. On save it would save the the changes to the correct file(s) ideally in a smart manner, based only on changes made.
Does something like this exist?
i have a telerik menu control that can have an <ItemTemplate>.
suppose i have :
<telerik:RadMenuItem Text="Filter" Value="Search" >
<ItemTemplate>
<asp:TextBox ID="TextBox1" runat="server""/>
</ItemTemplate>
</telerik:RadMenuItem>
how can i dynamically create the textbox itemTemplate in code behind?
Yesterday I added a custom MembershipProvider to an ASP.NET web application, but when I deployed the application to its remote host server, it failed. I know I had the login info correct, and I also know that for nearly any exception in the login process, the Login control displays the standard error message, "Your login failed", so I assume something is wrong in the code/config.
What can I do to diagnose what is wrong on the server?
Which is the best way to registered event for example if I wanto to regiested Loaded event for the window or user control , then it is better to registered in the xaml file or in the loaded/initilization function in code behind (C#/VB.net)? Please give explaination of your answer.
Hello.
I have added a simple .gif file into Resources folder in my project.
Now i have created a user control with pictureBox.
How can i add the .gif to pictureBox.Image = new Bitmap (path).
What is the path in this case?
thanx !
In my MouseDoubleClick i may run into a case where i would like to call all the controls in a list with MouseDoubleClick. However i cant call MouseDoubleClick, only add/remove events to the chain.
How do i call MouseDoubleClick/OnMouseDoubleClick?
ATM i workaround the problem since i know the objects MouseDoubleClick function and i pass in the parameters myself calling that specific function. How do i call the event in the case i do not know what function is set to the control MouseDoubleClick
I need my app to be the default action for opening a particular file type. How do I control this? Also, how can my app access the file being opened?
Thanks.
I need to test if my 304 responses are working, but my development environment is pretty hard set on force no-cache.
Is there an easy way to modify the max-age value of the cache-control header before it goes out?
I'm perhaps a bit optimistic in hoping chrome (or an extension, or FF) has a console command letting me alter the if-modified-since header then send the request. Maybe paste something into a telnet connection?
Hi,
I have an ajax calendar control that I specified the date format to be yyyy-MM-dd. Is it possible to have the comparevalidator validate that type of date sepcifically and have it fail for everything else? right now it seems to only take dd-MM-yyyy.
Thanks.
Hi All
I've just started using WPF. But I'm trying to add my code that (from Winforms) enables the user to drag any control whereever they wish at runtime. But I can't seem to get the current Location of the mouse... Eh? There is no Location for Mouse? :(
I have a tab on my page, when i click on this tab, i need to show a pdf file on page(browser).
For this i am writing function on control like this
public ActionResult PricedPdf(string projID,string fileName)
{
byte[] bArr = new byte[] { };
bArr =getdata();
return File(bArr, System.Net.Mime.MediaTypeNames.Application.Pdf, fileName+".pdf");
}
Now my problem is when i render this, page only show some unreadable data not pdf.
So we have a GridView asp control and one of my coworkers doesn't like to use an DataSource to fill the GridView.
I wasn't sure if/what the pros and cons are of using one.
I don't mind using going through the wizard to set the type, and the select/update methods.
Besides using the wizard are there pros and cons?
Hi,
I am writting a usercontrol. I want to draw the user control when the resize is done. I am not able to find any event equivalent to "ResizeEnd" of windows form.
Is there any equivalent event for user controls?
Hi,
I need to use volume buttons to control a variable parameter in my application.
I use Activity.onKeyDown to get notified when the button is pressed but the media volume is also increased.
Android is doing something like below when I press the volume key:
1. increase media / ringtone volume
2. pass the event to my application
Is there a way to avoid increasing the system volume and use volume key only for my application ?
Thanks
I'm having an issue with the treeview control from the silverlight 4 toolkit. I can't get it to view to display my data correctly, the toplevel items are shown but the childnodes are nowhere to be seen.
More info:
I have a wcf service that delivers a list of Categories with nested subcategories to my viewmodel (I made sure to explicitly include my subcategory data). My viewmodel has an observable list property (wich is named Categories) with this data from my WCF service.
My ViewModel: _http://pastebin.com/0TpMW3mR
My XAML: http://pastebin.com/QCwVeyYu
I'm disabling auto-complete and auto-suggestion on Windows Mobile 6.1 by setting the following registry keys:
HKCU\ControlPanel\Sip\SuggWords => 0
HKCU\ControlPanel\Sip\SuggAutoCorr => 0
However it doesn't seem to change anything until I restart the device. The control panel applet that exposes these settings somehow tells the SIP keyboard to reload, but how?
Hi,
I just noticed that if I have an identity column in a table, when I insert new rows SQL Server 2008 is automatically filling up the sequence if there are discontinuity. I mean, if in my identity column I have 1,2,5,6 if I insert other two rows in the table the system puts automatically 3,7 in the identity column.
Do you know how to control this behavior?
THANKS
Hello friends,
I want to display and update user profile using FormView control. But I dont know exactly how to do this.
I am using custom providers for Roles, Membership and Profile. Everything is working fine.
Can anybody provide solution?
Thanks for sharing your valuable time.