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

Software Development Network >> Windows Forms

Windows Forms

New Question

Looking for RowStateChanged Event???
Changing properties to a form over another form
Results from a worker thread into main thread?
Font on Disabled Controls
Binding text box fields to combo box selected value
data set on combobox
How to generate C# code automatically?
in this function i want to get all buttons
Mouse hover DataGridView
How to insert controls into header of DataGridView????

Top Answerers

Sean Connolly
roger_27
Dave Jenkins
Toni Greco
a.E
Barrios
Mirific201201
shades921
huysmans
Will Sullivan
sitemap
Only Title

Answer Questions

  • llebron Remote printers management via WMI.

    Hi! I have a remote computer with Windows XP. This machine has two network printers. One from them is default printer. I tried “wbemtest” and “WMI CIM Studio” utilities to inspect this machine. Both tools running remotely say nothing about default printer. The WQL query “SELECT * FROM Win32_Printer WHERE Default = True” returns empty set. Instances of Win32_Printer are two, but all printers have Default property = False and Attributes = 2072 Locally running utilities show one printer as Default, i.e. correctly. How it’s possible Where is problem Where I can read about such kind WMI limitations Also I have similar problems with invocation of some Win32_Printer methods, such like “SetDefau ...Show All

  • NickMcCrea Value of databound text box can't be set programitcally

    I have a text box on a tabbed panel which is data bound to a SQL table.When the user clicks on a tab the corresponding databindingsource creates a new record through addnew() and then the value of a text box is set to a variable set in a previous event. I know the value of the variable is fine but I was wonder if there was any update or refresh command that I need to run to display the updated text. To make it little clearer here is a sample of the application : private void tbPayments_Selected(object sender, TabControlEventArgs e) { switch (e.TabPage.Text) { case "Cash Payment": cashBindingSource.AddNew(); receiptNoTextBox2.Text = MyData.GetReceiptNumber().ToString(); bre ...Show All

  • CharlieDigital Connection Strings and SQL 2005 Express

    I am not sure of the correct way of deploying my application, It has a SQL 2005 Express database with it and if i hard code the installation path in the connection string in the app.config and the user installs to a different folder then it will break, also should the DB be installed in the app install folder or to Application Data and how will i determine the correct connection string to use. Thanks I have now solved this. In the my main project i mark the database file with the build action "Content", in the setup project i add special folder "User's Application Data Folder" to the file system view and add a subfolder under there for my companyname\productname, and add the Con ...Show All

  • Bogey1 Copy & Paste into Rich Text Box that is in Tab Page

    OK, so I'm making a sort of HTML Editor, and I've got a tab control with 2 tab pages, one with a Rich Text Box, the other with a web browser. When you select the other tab, the browser is updated to display the HTML you write in the first tab. My problem is that I cannot seem to copy, cut or paste to or from the Rich Text Box in the first tab. Please help!!! (Moderator: Moved thread to this forum for better responses) Have you set the form's KeyPreview to true It may be more effective to catch the cut/copy/paste events yourself and implement the actions on your own. I've found that Windows' Forms handling of key events is spotty at best when you've got controls that "Fill" anything. Why do you need to c ...Show All

  • Fata1Attack taking variable from Public Form1()

    how can i reach initial variable from functions_ now it gives error like 'v1.Form2' does not contain a definition for 'b' what can i do_ and i want to use "b" in button_click.. like: private void ara_Click(object sender, EventArgs e)         {                 i need "b" in here..                     } can i make button public like: public void ara_Click(object sender, EventArgs e) thank you very much..i didnt see the private b decleration.. can i ask something too.. firstly how can i send variable to other form_ is there any method ...Show All

  • Daniel Gary getting window client area coordinates in large windows

    Hi! I need to acquire the client-area mouse coordinates in a window of a third party application. I have used GetCursorPos and ScreenToClient to get the mouse coordinates when the scrollbars are positioned at the top-left position. Unfortuanately the client area of the window who’s coordinates I need are usually much larger then the window itself. If you use ScreenToClient in the window when the scrollbars are positioned a few 1000 pixels to the right and down from the upper left corner you will get the position of the mouse pointer relative to the upper left corner of the visible part of the client area. Is there a way to get the difference between the upper left corner of the windows client area and the upper left corner of th ...Show All

  • yxrkt Prerequisites??

    Thanks in advance for listening to this dumb question.  When I try to publish with the prerequisites set to  "Create setup program" and  "Download prerequisites from the same location as my application" I get the error message:   "Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\instmsia.exe' in item '.NET Framework 2.0' can not be located on disk. See Help for more information. Ophthalmology" Build is aborted. I don't know what to do or maybe I have the dotnetfx in the wrong place for install Frank I see that you asked this question a while back. I asked the same question basically yesterday (subject line "three prere ...Show All

  • Tension Can't Set ToolStripProgressBar Width

    Hello, I have a StatusStrip on a form that's 700 pixels wide. On the left I have a ToolStripStatusLabel, in the center a ToolStripProgressBar, and on the right a few more ToolStripStatusLabels. The first Label is 200 pixels wide, the ProgressBar is 400, and the remaining Labels take up the rest of the space (all Spring properties are set to False). In the Form.Resize event I'm trying this: prgProgress.Width = Me.Width - 300 But no matter what I set the Width property to at runtime, the size of the progress bar doesn't change. Naturally I can set its width just fine at design time. Help! Thanks. Hi, have you tried changing the ProgressBar's width (which is "inside" the ToolStripProgressBar) prgProgress.P ...Show All

  • wlaulner DataGridView KeyDown?

    (VS2005 - beta 2) Hello, is there anyway to capture a keypress or keydown event in the DataGridView   I know there's events called KeyDown and Keypress, but if the DGV is in edit mode, they never get caught.  My ultimate goal is to make it so pressing enter moves to the Cell to the right, instead of to the next row but I need to know what key is being pressed before I can do that. Thanks -Adam I'll get the docs and DataGridView FAQ updated with this.   -mark DataGridView Program Manager Microsoft This post is provided "as-is"   To handle the KeyDown and KeyPress events for the editing control just handle the EditingControlShowing ...Show All

  • Benjj RichTextBox ReadOnly = false

    Hello All, Firstly, please accept my apology if I am not posting on a relevant forum. Given attribute ReadOnly = false for RichTextBox component.... rtfData.SelectedText = string.Empty; rtfData.SelectionFont = new Font(rtfData.SelectionFont, FontStyle.Bold); rtfData.SelectionColor = LogMsgTypeColor[(int)LogMsgType.Normal]; rtfData.Text = dataQueue.ToList(); rtfData.Select(rtfData.Text.Length, 0); rtfData.ScrollToCaret(); ... generates an annoying thumping sound from the PC speakers each time text is being written to rtfData. The annoying thumping sound goes away when attribute ReadOnly of rtfData is set to "true". How do I mute the annoying thumping sound even though ReadOnly is set to "false&qu ...Show All

  • hrubesh how to set the font of the richtextbox's text?

    as I did set the richtextbox's font during i designing it, and when run the application and open a file, and read the file's content into the richtextbox. and then when i input content directly into the richtextbox by keyboard, the file-in text's font is different from the keyboard-in text's I just want them the same font defaultly, how can i do it (Moderator: Thread moved to this forum for better responses) I think RichTextBox uses RTF specification. Does it have to be a richtext box If formatting is not a concern don't use the richtext box. I'm sorry, still cannot make it. and even found, if i just change the font through the menu( fontdialog), which did the same like yours, the font ...Show All

  • Enes Kabacaoglu how to display a row of a datagridview control in the screen?

    I have a question about displaying a row. if I found the row is not displayed in the screen, like: if(DataGridView1.Rows[iRow].Displayed==false) {//how to set Rows[iRow] displayed in the screen }   thank you I found a solution that is vey easy, using datagridview's FirstDisplayedScrollingRowIndex. I am think those guys who make MSDN help information are very lazy, and irresponsible, they just put everything there and not organized, For example, for the Displayed property, since it is readonly, it's topic should include where to find the way to set the value. ...Show All

  • DanBaumbach Windows installer launch condition

    Hi Guys, I am trying to create a setup and deployment project in VS 2005 for a windows form project. A couple of dependencies for my application are - 1) .NET framework 2) ActiveState Perl 5.8.8 I have been able to successfully add the .NET 2.0 framework check to the launch condition. I've also added the Active Perl check but its not working right. I mean, I get a "perl not found" error even on systems where the perl is installed. How should I correct this behavior Its probably something in the Condition check that I'm messing up. Here are the properties I have for perl launch check - (Name) ActiveState Perl Condition Installed InstalllUrl <url> Message Perl could not be found. Please install ...Show All

  • christophw How to Hide Entire Category in a PropertyGrid

    Hi Folks, I would like to know if there is a way of Hiding entire category from a PropertyGrid (PG) I have been using the Browsable(False) attribute on property that I need want to be displayed on the PG. Then when all properties belonging to a perticular category have been browsabled-false the category automatically dispeared. However, I still have the a category that are still present and that is the Design category. It contains the Name and Locked properties, but I would like to remove them too. Is anyone knows how to get around doing that Thanks Seve you can try implementing ICustomTypeDescriptor and override the PropertyDescriptorCollection being queried by the designer for the ...Show All

  • CJira How to get more than one inputs from a textbox?

    Hi, I have one doubt in using textbox control. How can I get more more than one inputs from single textbox for example abc, def, ghi is the textbox text. I want individual words(like abc , def or ghi) seperated by "," (comma) to store them in seperate datafields in a table. Is seperator "comma" only or we can use other chars, or spaces some body reply me, Bye Ananth... Use String.Split VB example Dim strWords() as String = textbox1.text.split(","c) C# example String[] strWords; strWords = textBox1.Text.Split(','); Thanks verymuch! Mr.Ken I have implemented this successfully. Ananth. ...Show All

99012345678910111213141516

©2008 Software Development Network

powered by phorum