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

Software Development Network >> Windows Forms

Windows Forms

New Question

how to void the TabIndex property so labels cannot be tabbed through?
Upgrade application using setup project (VS 2003)
Format columns in the .NET Winforms Datagrid
ListView.Refresh what am I missing?
Get Controls collection and list it on xml or text file
Form base with a BindingSource - problem
Who captures mouse events for disabled ToolStripMenuItems?
Update DataGridView from another form
Problem with big form
Custom Date Format in DateTimePicker(WinForms)

Top Answerers

Jamie Thomson
farsad ghaffarian
Christian Sciberras
Jan Kučera
GoodMorningSky
gatekeeper6838
SWGuy
Lok_Tan
bobby_dazzler
lailaland
International BusinessTimes
Only Title

Answer Questions

  • mcmarquez Encrypted .msi file results in installation failure

    Why is this Is it a bug If I unencrypt the .msi file, the installation proceeds normally, otherwise I get failure message 2755. Looking in the installation log, I was able to find a "failed to open stream" error which may be at the root of this. Thank you, Stefan. However, this raises another issue: When I search on msdn using the keywords "installer encrypted msi", as I did when trying to research this problem, the kb page you reference does not come up as a hit. Is the KB excluded from searches by default This is a known problem, see http://support.microsoft.com/ kbid=834549 ...Show All

  • M. Simioni Webbrowser keypress event

    Hello everybody, I'm just playing with the new webbrowsercontrol of .NET 2.0 and I would like to capture the keypress event of that control, but it seems that the control doesn't have that event... I've got a webbrowser control with designmode="on". Now I would like to capture the keypress event (for inserting a line break when enter is pressed) On the internet I could not find any solution, so therefore I hope that there is someone here who knows a solution. THanks in advance I did it like this, it worked. The same way keypress or any other doc eventcan be handled. SHDocVw. IWebBrowser2 webBrowser; mshtml. HTMLDocument doc; mshtml. HTMLDocumentEvents2_Event iEvent; //Get the unde ...Show All

  • Pradeep Gupta Launch Condition Haze

    Hi. how we could reinstall the installation itself after a launch condition setup In a Visual Studio 2005 setup, use the Prerequisites button on the properties to build a setup.exe that will install the framework then launch your MSI file. The MSI itself also has a check for the framework, but that will be satisfied and the MSI file will just install. You probably don't mean the ".net framework sdk". You mean the redistributable for apps to run, not the SDK fopr developers to use. I think you are going to need to explain for fully what you are trying to achieve. Your current description is not very detailed and less likely to get a positive response without more details. ...Show All

  • Lewis Horowitz Displaying Database information in ListView

    I created an address like database with first and last names and include a photo location in the database. Now I want to use ListView to display the photo and name of each row(person) in my database, but I don't know how to retrieve a string from a single cell in my database. can anyone help what you may be after is databinding, which is easily done in this case. Simply create a SqlDataAdapter, a dataset and your SqlCommand then execute a query/fill the dataset using the dataAdapter with the record, then bind the UI controls to the dataset by adding a binding to the control. you could also use a SqlDataReader to get the specific row of data you like, would be faster and effecient but of course if you are going to modify the deta ...Show All

  • mabster Database Woes!!!!

    I am trying to enter data collected by an I/O card connected to the computer into a database. I have a data set and table adapters, no problems there. I can add the rows one at a time while the data is collected, to the dataset and when a specific number of new rows(in this case 25) has been reached the data set is appearently sent back to the database with a call to the Update() method in the table adapter. A text box displays the total number of affected rows i.e. 25. The problem is that when I view the table data in the database explorer my new rows are not in the database. As far as i can see I have all the neccessary code to save the rows and that they have been saved successfully but alas they are not there!! please help. Me . ...Show All

  • Dietz Creat and activate Child form

    Can anyone pls guide me how to creat and run form3 as child form of form1... pls do the needful. Thanks. Hi Vimal: we need to set parent form idMidContainer to true; then add follow code in anywhere (for example form1 load event) form3 f=new form3(); f.MDIParent = this; f.show(); hope it help you I hope this article will tell you how to creat MDI more detail ...Show All

  • Evan Mulawski Saving contents of a graphics

    Is it possible to save (and restore) the contents of a graphics Graphics.Save only seems to save the properties, such as transfromations, but not the contents. See the example in Visual Studio help under Graphics.Save. My aim is to construct a vertical line cursor on a graph and move it with the mouse. I know how to get the mouse position, but in order to move it I need to restore the picture to what it was before the cursor was added, then add the new one. Thank you. I will try that. (I need to translate it into C#, but I think I know how to do that.) Paint your graphic into a bitmap, then render the bitmap with Graphic.DrawImage in the Paint event handler. There's samp ...Show All

  • Macromullet BindingSource errors when trying to set DataMember to a relation

    I am trying to control the records shown in a datagridview based on the selection in a combobox. When I run the code below I get this error: "DataMember property 'Application_List.RelApp_RptDesc' cannot be found on the DataSource." . dataset dsDescription is already populated with multiple tables. Dim DescriptionBinding As New BindingSource Dim AppBinding As New BindingSource dsDescription.Tables(0).TableName = "Report_Description" dsDescription.Tables(2).TableName = "Application_List" dsDescription.Relations.Add( New DataRelation( "RelApp_RptDesc" , _ dsDescription.Tables( "Application_List" ).Columns( "App_Id" ), _ ...Show All

  • Beat populate DataGridView from Stored Procedure

    I am using this code to populate to datagridview but nothing is happening and when I try DataBind() at the end it throws an error (dataGridView does not contain a definition for DataBind) sql_connection = new SqlConnection ( "Data Source=.\\SQLEXPRESS;initial catalog=ws2connect;integrated security=true" ); sql_command = new SqlCommand ( "sp_get_customers" , sql_connection); sql_command.CommandType = CommandType .StoredProcedure; sql_command.Parameters.Add( "@id_number" , SqlDbType .VarChar).Value = "%731%" ; sql_connection.Open(); sql_reader = sql_command.ExecuteReader( CommandBehavior .CloseConnection); dataResult.DataSource = sql_reader; A simple method ...Show All

  • Nitin Sharma22 How to create Multiple instances of a form with dynamic names

    Hi,    Am into developing a lan messenger.Now my requirement goes like this.   I  designed a form(for ex:User) which is used to receive and send messages.As multiple users send messages at same time to a single user(For ex:Both ravi and rahul send message to user raju).For each user i must open an instance  of the so created above form(User).How to approach towards this Can anyone help me in this regard Bharath   if I understand correctly, you have 1 form but want to open up several instances but with a different form name correct Simply open that form/create a new instance of the form and set a different Name property for this new form instance so its ...Show All

  • xluna WSUS Install Fails; There is a problem with this Windows Installer package.

    I am trying to install WSUS on Windows Server 2003 R2 and the installer fails with the above error message. The log files are shown here: ********** **** 2006-06-01 14:29:15 13:29:15 Executing External Command: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -ir ***** ***** 2006-06-01 14:29:26 13:29:26 External Command Exited, Return Code: 0 ***** Running a transacted installation. Beginning the Install phase of the installation. See the contents of the log file for the C:\Program Files\Update Services\Setup\bin\Microsoft.UpdateServices.Setup.CustomActions.dll assembly's progress. The file is located at C:\Program Files\Update Services\LogFiles\WSUSCa_060601_1426.log. Installing assembly 'C:\Program F ...Show All

  • voila jacques .NET 3.0 Breaks ClickOnce

    Ever since I installed .NET 3.0 RTM, only users who have .NET 3.0 can run my ClickOnce applications. Please note that none of these applications are using 3.0 features. Also, I do not see .NET 3.0 in the list of redistributables and the Update link in VS 2005 goes to a dead page. I tried uninstalling .NET 3.0, but once I did that VS 2005 would no longer start. It silently dies after showing the splash screen. Suggestions Jonathan Allen You mentioned you get several errors trying to install the .NET 3.0 extensions in VS. What errors and were they successfully resolved when you attempted to do the Publish If not, then I wouldn't bother with the Publish errors. If they have been resolved and ...Show All

  • Minherz How to check Modulus 23 in the field

    Any one please send or let me know the VB (.net) code for the following. I have a form – one of the ‘field’ in the form must be validated as follows. 1. The modulus check as contained in Appendix B to this document must be done. 2. All of the first nine characters must be numeric. 3. The 10 th of the 11 characters must always be ‘M’. 4. The last of the 11 characters must not be ‘I’ ‘O’ or ‘U’. 5. UTRN cannot start with 5. AppendixB Modulus Check required to ensure validity of a specific reference number MSD Reference Validation The format Modulus check is derived as follows: Character Position 1 2 ...Show All

  • RickNa How do I perform drag and drop reorder of rows

    Yes, Is the same question from DataGridView Faq.doc. But the example in the faq exposes two problems: 1) Is not possible to alter the height of a row. 2) Dropping in a NewRow or in the gray area makes the row been dragged to disapear. Any other example or tip to correct the problems in the faq example Thanks a lot, Alex Up! ...Show All

  • JohnGBunch Help with NumericUpDown

    Hi all, I hope someone can help me with this. I have a calculated result that i send to a numericUpDown. The value inserted in the first NumericUpDown is then collected and prcessed further. The reason why I'm using the numericupdown is that the reults will be compared to a "real value" and the user should be able to correct this since the result will be further processed. My question is how can I capture the correction, i.e. if the calculated value is 200 but the user correct it by using the up and down buttons to let's say 203 I want to get the value 3. Does anyone have a solution Thanks, //OPH I see your point. However, there are some other problems related to the delta calculation a ...Show All

89909192939495969798990123456

©2008 Software Development Network

powered by phorum