Software Development Network Logo
  • Smart Devicet
  • Visual FoxPro
  • VS Team System
  • Audio and Video
  • Visual C#
  • Microsoft ISV
  • IE Development
  • SQL Server
  • Visual Basic
  • Visual Studio
  • Windows Vista
  • Visual C++
  • Windows Forms
  • .NET Development
  • Game Technologies

Software Development Network >> Windows Forms

Windows Forms

New Question

Extending EditingPanel / EditingControl bounds
Tab through Tree nodes
status strip no longer visible after form resize
Combo box autocompletemode
How can I manually close a BalloonTip?
How can I invoke the copy to clipboard functionality on the GridView
Question with Outlook and moving attached items
getting media files from a winform
EndEdit: leaving edit mode in a datagridview
drill down datagridview

Top Answerers

Wil Burton
aus82
Dileep Agarwal
AlucardHellSing
Itzik Katzav
Andy Johnston
schveiguy
Alexandre Tremblay
tom_7
Sunit Pinto
sitemap
Only Title

Answer Questions

  • Kirk Evans Generate Resource Task

    Hello, I get this error when I compile: The "GenerateResource" task failed unexpectedly. System.NotImplementedException: The method or operation is not implemented. at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e) at Microsoft.Build.Tasks.GenerateResource.NeedSeparateAppDomain() at Microsoft.Build.Tasks.GenerateResource.Execute() at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) AppWinforms This is a project that has been building fine for months.. just statrted this and did not add any new resources or pictures... Only fix is to close ...Show All

  • S76 Help with event handling, event being handled twice.

    Let me preface this with a bit of background research I have done and what I am seeing. I have a control that raises a drawing event with some arguments. This control is inherited by another control that I wrote and that inheriting control handles that drawing event. The problem I am having is that every now and again the drawing event is handled twice. I do not mean that the event is raised multiple times, but a specific instance of the event is handled twice by the same event handler, sometimes up to a full half a second after it handled it the first time. This causes and exception to be raised when I try to use the graphics object because it is in some way no longer valid. I have logged and inspected all of my aruments to it in the debu ...Show All

  • MylesM Check versioning of client applications

    Hi everyone, I've recently been assigned a project to create a windows form application that will check and report a file version for a variety of client applications. In it's most simple form, if we want the user to check for... say... Macromedia Flash Player version 8, and the user has version 8+, it gives a green checkmark, otherwise it gives the dreaded red 'X'. My questions this... .net 2.0 has some great support in regards to the fileversioninfo class, so checking my versions and such will be easy, but how do I go about searching for such files My approach may be to search for a reg key, find the target path, and use that to point me to the appropriate .exe. Is there an easier, more direct, and/or better approach to this scenar ...Show All

  • cexley Is there some serial port selection comtrol?

    Hello, Newbie question: I'm busy writing a class that retrieves all available serial (Com) ports from my computer, showing them in a ListBox and a user can then select one. But before starting re-inventing the wheel I would like to know if allready some kind of control or ActiveX( ) component exists that does this work for me that can be implemented in my application Henk Well, this sort of thing is so trivial that there's not really any 'need' per se, for a control dedicated to it. Here's a snippet of code I use: say cmbPortName is a combo box: 1 cmbPortName.Items.Clear(); 2 foreach ( string s in SerialPort .GetPortNames()) 3 cmbPortName ...Show All

  • Hsoros position one form accurately over another resizable form

    My form1 has a button, which when pressed - I need small form 2 to appear exactly under the button. Form1 is resizable, so I guess the button's coordinates will change according to size. Need help on this one please. Thank you very much. Instead of a button I am using a checkbox set to button to toggle to show/close form2. I am unable to figure out how to close the form when the checkbox1 is unchecked...         private void checkBox1_CheckedChanged(object sender, EventArgs e)         {             if (checkBox1.Checked == true)           ...Show All

  • Roxanne163 Gradient BackColor

    Gradient BackColor. I would like to make a gradient backcolor for controls, like a treeView control, for example... it's posible I tried to override the Paint function. I used a LinearGradientBrush and then draw a fill rectangle, and looks good... but i overlaped the original paint. Suggestions/comments/tips all are wellcome. Thanks Open up Photoshop or Paint Shop Pro, (something similar if you don't have them), make a pretty gradient, and set it as your controls background image. I've used this for my MDI Parent form background. The result is an even gradient. public formMdi ( ) { InitializeComponent ( ); this . Paint += new PaintEventHandler ( PaintC ...Show All

  • malc_s How do I copy a file to specific folder??

    In my application I have used an openFileDialog. And user can select picture file from his/her hard disk. I want to copy this file to Resourse folder of my application. Does anybody know how can i do that pls help.... thank you very much, It has solved my problem since the File.Copy support the relative path, you can use this feature to specify where the Resources directory is, i.e. up 2 levels of the Current Directory where the exe locates. Here is a sample code may help you OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.RestoreDirectory = true; if (openFileDialog1.ShowDialog() == DialogResult.OK) { string filepath = ...Show All

  • Mike Oksuzyan Textbox1 to integer

    can someone tell me how to take input from a textbox which the input is 1.9. I want to do 1.9 times 10 which equals 19 how can i do this in c# my textbox1 text now reads 1.9 which i made a label1 for it to display it . can someone show me how to take textbox1 value then multiply times 10 then write to label.. Hi, you can parse the text value using double.TryParse like: double d; if(double.TryParse(myTextBox.Text, out d)) { //valid number d = d * 10; myLabel.Text = d.ToString(); } Mark. Above is the correct answer, but wont always return an integer - do you need it to always return an integer ...Show All

  • shyne13 Prevent DataGridView selecting a row - is it possible?

    Hi all, I have a sorted, non-editable DataGridView which contains some cells in each row that are traffic-lighted (ie: they have a different b/g colour depending on value) but when I populate the control the row that was the first one (before sorting) is always highlighted thus wiping out my custom coloured cells. I have tried every combo of colours and highlighting options to try and stop the DGV doing this but can't find a way. Ideally I just want to suppress altogether the DGV control selecting a row when it populates - does anyone know how I can go about this This is driving me mad so I hope someone can help! TIA... Mike I have similar, but still a little bit different problem: in fact, I'd like ...Show All

  • DavidC#2005 A quick DataGridView question

    Is there a way to set the back color of all cells in a DGV without having to iterate through them one at a time ie. Is there a command that will affect all the cells at once Thanks... Me .DataGridView1.DefaultCellStyle.BackColor = Color.Yellow does work, would you post some code Public Class Form1 Private Class r Public Sub New ( ByVal a As Boolean , ByVal b As String ) Me .ronly = a Me .name = b End Sub Dim ro As Boolean Public Property ronly() As Boolean Get Return ro End Get Set ( ByVal value As Boolean ) ro = value End Set End Property Public na As String Public Prope ...Show All

  • Ravencraft Little help with DataGridView please

    I have a dataGridView and an arrayList. I bind the arrayList to my DataGridView with: dataGridView.DataSource = arrayList; dataGridViewMessages.Refresh(); And my dataGridView displays correctly. Later in my code i wish to clear my dataGridView, so i go: arrayList.Clear(); dataGridView.Refresh(); but it reports an error. Whats the correct way to clear my DataGridView Later I wish to fill my datGridView again. Thanks. Paul. Ken Tucker wrote: I would recommend you use the BindingList instead of a Arraylist because it is set up for databinding. If you want the datagridview to be sortable check out this article on adding Sorting to BindingList ...Show All

  • lsb_lsb No console, help plz

    I have .NET framework 1.1 installed when i try run any console commands such as Console.writeline("hello") The compiler compiles fine but with no console showing any data I've read you have to install it, that true any clues Thanks Amazon yeah console application project, hadn't seen. thanks Did you create a Console Application project If you add a Console.ReadLine() after the Console.WriteLine in your code do you see the console window when you run the application If so everything is working just fine, it was just that the console window dissapeared so fast that you didn't see it. ...Show All

  • Bandile Publishing_Errors

    I am trying to publish my app using the built_in publisher wizard of Visual Studio 2005 (VB.Net). I am struggling with two issues: When I try to change the Application Icon I get the following Error Message: Error 1 Unable to write to output file 'D:\Data\Wedge\Wedge_Volume\Wedge_Volume\obj\Debug\WedgeStat.exe': The specified image file did not contain a resource section. (The image file refers to the icon that I have chosen) How do I ensure that the user can actually specify where he want's the app. to be installed on his machine Thanks Christie Just to inform you. If you want a icon that work: 16 x 16 bit 16 color and 32x32 16 color. I have just spend som time to go around this limitation. ...Show All

  • Darin V Center a panel in a sizeable form

    I have got a form that has a panel on it with controls on the panel. What I am wanting to achieve is to center the panel on the form, reguardless of the monitor size(either square or wide screen). I am programing on a wide screen monitor, and I would like to make sure that the panel is in the center of the form reguardless of what it is viewed on. Can this be done Davids Learning Hmm, he didn't set the form size Never uses Option Strict On That did what it should, whats the difference inbetween your code and spottys Davids Learning Hey Spotty, I found an example of the code you provided, I did try it and the result was not desirable. I ...Show All

  • .net sukbir How to code a menustrip from scratch

    I need to code a menustrip from scratch as i need to generate the strip depending on certain situations. Can someone give me some guidance in how to do this. I'm using vb.net. As in how to create the drop down box and it contents. More details please. Hi, if I understand the question it's similar to something i've done in the past, where I populated a contextmenustrip programmatically. All of the menustrip items have their click events handled by the same method, which determines which item sent the click by querying the Text and Tag properties of the sender (bit basic but you get the idea).  Sorry for the C# btw. void MakeCms() { pronCms = new ContextMenuStri ...Show All

818283848586878889909192939495969798

©2008 Software Development Network

powered by phorum