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

Software Development Network >> Windows Forms

Windows Forms

New Question

UserControl with ComboBox
EBook for Windows Applications by C# !!!
Open clickonce app from another .net app
best place to store user information
DataGridViewComboBox getting selection
openFileDialog (help with Declaratoin) Thxs
datagridviewcomboboxcolumn problem
Run an application after Install bis.
Add Serial Number column DataGrid 1.1
How can I install my program files into "C:/Program Files/"?

Top Answerers

NickNotYet
BCR
enablerbr
Arran Siu
Ghassan Tadros
Mikepy
Faldegast
Trevor2006
carface
PrTaS
Game Tutorials
Only Title

Answer Questions

  • Flakky What is event name for the [x] button (top right corner) on a Windows Form ?

    I guess it is dispose() but the form1.designer.vb has already override dispose and programmer not meant to modify it .... Any idea have you tried the Closing or Closed events Yes. It's FormClosing and FormClosed in the .NET 2.0 framework. ...Show All

  • nattylife OnPaint Overflow Exception

    Hi I have a form with some controls, in it, most of them are labels, and a panel for displaying video and one of label is blinking using timer. sometimes i got an Overflow exception when a program is started and sometimes when label is blinking. this exception is random and not always thrown. when exception comes, it comes with quit and continue, and have detials of the stack trace, when continued, the one control which is mentioned in the stack trace are turned to red cross. this is happening with two three controls. Could you post the code where the problem is occuring As this is a mathematical exception it should be near some code where you are perhaps adding some numbers. The exception details should tell you exactly where the ...Show All

  • jim- listbox if statment

    Ok, So i would like to make it so that when no one selects something from the listbox, that i can pop up something and tell them like a messagebox. Thanks in advance Hi Is this what you want: if (listbox.SelectedItem == -1) { MessageBox.Show("Select some item."); } Yours Markku should be SelectedIndex, not SelectedItem :-) Forgive me. I just thinking the other question at the same time. Sorry. Markku threads have been merged - duplicate posts from OP Ok, So i would like to make it so that when no one selects something from the listbox, that i can pop up something and tell them like a messagebox. Thanks in advance ...Show All

  • kennm How to map a CellSet

    Hi, I'm using Analysis Services 2005 and VS2005. I have to display a CellSet (the result of a MDX query) on a form. There is a grid object to map a CellSet I tryed the DataGridView control, but it seem more suitable for standard SQL DataTables. Thanks in advance Marco Windows Forms doesn't have any built in controls to use with Analysis Service. You might find something with a third-party control though. -mark Program Manager Microsoft This post is provided "as-is" This link can be useful. http://support.microsoft.com/ kbid=828279 Mohsen Mark Rideout wrote: Windows Forms doesn't have any built in controls to use with A ...Show All

  • juicyjuice when I use the fusion technology and make the aciveX control

    Dear Sir, I have a web application using DSO Framer control, but when my client wants to view the page. He has to make his security settings low. I know that when I use the fusion technology and make the aciveX control as Windows control and display it by using <OBJECT> tag, then it will act as a normal .net control, can any one help me to do this. Youn can even mail me to : [email address removed, look in user's profile].  Please help me if possible. Thank you. Regards, Aleem. Shall I ask you one straight question, which control are you using to do this means. The control in which I wrote my query. I need a control which is almost similar to these functionalities. The user can do those taks which you s ...Show All

  • Jarod.Net Single Key Shortcut for Menuitems

    Hello, We want to implement a single key shortcut for meuitem i.e menu click event gets fired when any single character is pressed. For example, typically menu short cuts have CTRL+A but we want A as shortcut. Regards, Sachin Also, what if he types A in the text box Obviously when A is in textbox, the shortcut command should not get invoked. Surely you saw my post in this other thread you posted to Odd question. How could you not know You designed the GUI and determined what shortcut keys should run what menu commands... 1. Actually we are creating a framework and our form can host any kind of control (we do not know in advance the kind of control that can be hosted). Is there an ...Show All

  • Sean McElroy Datagridview in a groupbox

    Hi all, I have a problem adding a datagridview control in a group box. I am trying to add a datagridview and 2 other buttons inside a groupbox. I want the 2 buttons at the top and then the datagridview below the 2 buttons. I have them set in the design mode this way, but when I run my app and see this form with the group box, the screen shows the datagridview covering the entire the group box and the 2 buttons are hidden behind the datagridview. Also, if I resize my grid to a smaller size at design time, at run time the behaviour again changes and I see the datagridview covering the entire group box. Is there any setting which am missing here to make sure that the grid doesn't cover the whole group box any suggestions would be greatly ap ...Show All

  • jasonboetcher DataGridViewComboColumn resets when I press the Del key!?

    I have a DataGridViewComboBoxColumn. When I press the Delete key, it resets the combobox to the first value in the list. Is there a way that I can overide this, or stop the delete key from doing this I want to have a KeyDown event linked to this combobox that does something else when I press Delete. Any ideas thanks. (Thank you + Thank you) * 10 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=624234&SiteID=1 you will see the preprocessmessage method in the example. ...Show All

  • Wojo Object reference not set to an instance of an object

    When I click on the Add new datasource link in the datasources window the Data Source Configuration Wizard starts. After I select database as the application to get the data from an error dialog shows that states: "An unexpected error has occurred" "Error Message: Object reference not set to an instance of an object" What's happening. This used to work fine. Hi I have now the same problem, with VB.NET 2005 Profesional Edition. And the problem is also when I load dataset too. at Microsoft.VisualStudio.DataTools.Providers.OleDB.OleDBUtilities.GetRegisteredProviders() at Microsoft.VisualStudio.DataTools.Providers.OleDB.OleDBUtilities.ExpandProvider(String provid ...Show All

  • cadouthat printpreviewcontrol

    The people at microsoft are strange aren't they I have just started work on something where I'm using the printpreviewcontrol for the first time and I was looking for the method that would cause the control to refresh it's contents, after the page settings of the document had been changed. Foolishly I had some expectation that it might be called refresh but no; apparently on this control you have to call invalidatePreview. Hey thanks guys I love spending all my time wading through the mire of your documentation just to find out something like this. You're not talking to MSFT on this forum. If you want to *** at MSFT programmers, do so through Product Feedback . Not much hope for this forum when ...Show All

  • pinoyz WebBrowser Control and PHP Files

    How would I get the WebBrowser control to view a PHP file instead of try and download it (the php file is local on my hard drive, and have no intentions of uploading it somewhere to view it. It needs to be viewed locally). I have PHP installed on my computer, so I do have the PHP engine ready to use. (php-cgi.exe) PHP like asp.net server side processing so it need to be hosted in server to be executed before return the result to your webbrowser .Net has some classes which allow you to process asp.net pages in your application no builtin method avilable for php so you may search the net for that or host the file locally in web server like apache at your computer and use the virtual path to navigate to it instead of local path ...Show All

  • Dan Mikkelsen I need some help...

    Can someone tell me what's wrong with this code.Give's me the following error: "Cannot implicitly convert type 'object' to 'System.Windows.Forms.Form'. An explicit conversion exists (are you missing a cast )" Hashtable ht = new Hashtable(); private void button1_Click(object sender, EventArgs e) { childForm = new childForm(); childForm.MdiParent = this; childForm.Text = "form number " + childCounter.ToString(); childForm.Name = "Child" + childForm; childForm.Dock = DockStyle.None; childForm.Show(); childCounter++; locationY += label1.Height + 5; newChildButton = new Button(); newChildButton.Text = childCounter.ToString(); newChil ...Show All

  • Michael J Brown Error 2203 when installing MSI packages I created with VS2003 - just problems with my profile

    Hi Suddenly, my MSI packags have stopped working. The packages I create all fail with error " The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2203 ". This happens for packages for existing solutions, and also for any new package I create from scratch. There I assume it must be a generic problem with the installer or VS, rather than a problem installing one particular program. It happened when I made some changes to souce of a project, re-built the package. Note that the packages run fine on other people's computers. Note also that it runs fine on other profiles on my machine - thus it might be a problem with my profile o ...Show All

  • SLang FlowLayoutPanel FlowDirection not working when adding controls at runtime

    I have a FlowLayout panel to which I am adding a label and linkview controls at runtime. The panel's FlowDirection property is set to TopDown. However, when I call Controls.Add on the panel at runtime, the controls are still added left to right. Why does this happen If I drag controls onto the panel at design-time, they are added top to bottom as required, it's only when adding at runtime that this happens. That worked for me, thanks! Hi, I can't reproduce that... The following code seems to work fine: private void Form1_Load( object sender, EventArgs e) {     Label label = new Label ();     label.Text = "Label 1" ; ...Show All

  • Magicboy how to earse text in listbox

    i tried this but it doesn't work, what sould I do private void button3_Click( object sender, EventArgs e) { listBox1.ClearSelected(); } On Form2, expose a property for each textbox you have: public string Text1 { get { return textBox1.Text; } } // repeat for each TextBox on Form1, call Form2: using ( Form2 form = new Form2 ()) { if (form.ShowDialog() == DialogResult .OK) { listBox1.Items.Add(form.Text1); // repeat for each TextBox } } Just try to give your textboxes/properties more meaningful names... Andrej hi again, thenks for your help it works. one more question : how can i delete all text from listBox1 on ...Show All

141516171819202122232425262728293031

©2008 Software Development Network

powered by phorum