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 am trying to drag and drop a file onto a control in my application. The problem is that when you hold the mouse button down (i.e. dragging from widows explorer), my app does not fire any of the form events. They all work fine if the mouse is not down. Is appears that I need to enable the 'AllowDrop' for the application (it is enabled on the form)
What am I missing?
I am developing in vb.net 2008 in windows 7 environment
I have an Excel worksheet where the user enters certain data, which I want to store in a text file and upload to a server using FTP. One site suggested adding a reference to "Microsoft Internet Transfer Control" and then define an "Inet" object to do the FTP. However, I am unable to find a reference with this name in "Tools - References" in the VB Editor. Does anyone know of a solution for this problem? Thanks in advance.
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?
We have a couple of applications running on Java 5 and would like now to bring in an application based on Java 6. Can both java versions live together under Windows? Is there any control panel to set the appropiate java version for different applications?
I have a button control. Once the user clicks on it, the click event should fire and then the button should get disabled. How can I do this? I have the option to use JQuery or JavasSript or both.
Here is my button declaration:
<asp:Button
ID="Button1"
runat="server"
Text="Click Me"
onclick="Button1_Click"
/>
On the button click code behind, I have added a Response.Write(). That should get executed and then the button should be disabled
I have a website on GoDaddy. All permissions are set correctly and the image DOES exist. However when the page loads the image for the item selected does not show. Here is my code
imagepath = "~/spaimages/" + currentSpaModel.Name.ToString() + ".png";
if (File.Exists(Server.MapPath(imagepath)))
{ this.spaimage.ImageUrl = Server.MapPath(imagepath); }
spaimage is an ASP control and thr URL that the image is set to is D:\hosting\xxxxxxx\calspas\spaimages\modelname.png
What am I doing wrong.
I have a UserControl which has a style, that i would like to be influenced by a settings checkbox on the main window hosting my user control
so myControl.xaml has a Style which i would like to have a trigger, that should observe a CheckBox inside MainWindow.xaml
i know one way to do this, would be to create a local property in myControl.cs which would look at the property in MainWindow.cs which would in turn return state of that cheeckbox.. but maybe there is a way to do this w/out writing any c# code ?
We use Captcha control in a registration form that we make full client validation for all fields in JavaScript ( JQuery ) beside server validation ..
I tried a lot of ways but all will write the Captcha value in JavaScript that can be accessed by anyone :(
I search if is there any way that allow me validate Captcha value in client side using JQuery in secure way or it can't be done ?
I have an Image control in my Flex application:
<mx:Image id="img" source="@Embed('img.png')"
percentHeight="100" percentWidth="100" />
Because the image is scaled, there are a lot of scaling artifacts. Can I change the image to use a different type of filtering?
how can i insert a TextBlock control in a Hyperlink in c# coding. similar to
<TextBlock> <Hyperlink>a</Hyperlink></textblock in C#. i'm unable to find content property in Hyperlink. Thanks in advance.
Is there a way to resize a control, a JTextfield for example, at runtime in java? I want my textfield to have the resize cursors (just like when you point your cursor on the corner of a window) and will be able to resize on runtime. Ive read on the internet that vb6 and C# have those capabilities, is there anything for java? A sample code or a link to a good tutorial will be very much appreciated. Thank you.
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.
hi all
i want to make a 2 comboBoxes ,the first one shows Hours and the Second Shows minutes but i cant do so in windows application as i have working as a web dev for a while and i forgot so i want to declare listItems then bind it to combo box
i want to make it as a custom control
so i want some help to tell me how to do that
i am using VS 2008
thnxx
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
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?
Hello,
I am working on Silverlight project.
I added a custom user control (Say, control1) which has a text box and button to a xaml page (Say, Page1).
Now what I want to do is when users clicks on the button, i want to pass the value in the textbox to Page1 and do something.
So basically, I am looking for a way to pass back a value from child to parent page in Silverlight.
Thank you.
Hi All
I have created a user control, and now I want to add custom properties to it so they will appear in the Properties toolbar in Vis. Studio. How can this be done?
My custom property will be: "Animation Type" with options "Fade | Blink | Scroll | Blend"
thank you
In sprite-based systems, it's common to fake rotation of a sprite by having many different images, each showing it rotated an extra few degrees.
Is there any free tool which will take a single image, and output a single image containing several rotations? It should also ideally let us control how many images are in each row.
e.g if I have a 32x32 sprite and I want it rotated at 10 degree intervals, the tool might generate a 320x32 file or a 160x64 file
TextChangedEventArgs is being fired twice in my RichTextBox control.
Is this normal?
Also, when will e.Changes (you know the TextChangedEventArgs) be 1. The only case I can think of is someone pasting content into it.
But other times it seems in normal typing a person can really only change 1 paragraph right?
I need to know which version of the report viewer control is used on a web server.
If I can find it without asking it would be nice.
Is there a way, by code, to find out which version of the assembly is used on the server?
What is the minimum set of primitives required such that a language is Turing complete and a lisp variant?
Seems like car, cdr and some flow control and something for REPL is enough. It be nice if there is such list.
Assume there are only 3 types of data, integers, symbols and lists.(like in picolisp)
I noticed that when I build a given C# source to produce a DLL, the binary output is different each time. It would be helpful for our build / deployment process if this was not the case. Can I control this?
Using a EM_SETEVENTMASK message can set which notifications a rich edit control sends to its parent window. How can I intercept/be notified of these messages?
Ideally, I'd have a callback that I could register with certain notifications.
Is it real and how can I think about it.
To make so the user will select only the month and year, not date, because he need a period on full month, not some date.
here is simple control ...
<asp:TextBox ID="TextBox3" runat="server" />
<asp:CalendarExtender ID="TextBox3_CalendarExtender" runat="server"
Enabled="True" TargetControlID="TextBox3" />