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

Software Development Network >> Windows Forms

Windows Forms

New Question

predefine constructor for inherited form
radioButton, checkBox - selection frame on WinXP
how to make the form expand dynamicaly when it maximize???
menuStrip1.Renderer.DrawSeparator problem(error)
Black label and persistent wait cursor
Problem while adding reference to the project
filepath location with ListBox question?
Problem with combo box binding
Problem with Debug Output
Select treeview node with enter

Top Answerers

Mowali
IrisFresco
Rohit Tela
malous1
mshvw
Marek Istvanek
Dámaso
Randy Galliano
brian_tsim
rbnijp
FreeTDS
Only Title

Answer Questions

  • RickN Uninstall custom action

    Hi, How can I identify in uninstall log file, that custom action for uninstall was performed What can be reaseon that my custom uninstall action wasn't performed My uninstall custom action is following Visual Basic Script stored in file startsh.vbs: Set WshShell = CreateObject( "WScript.Shell" ) WshShell.Run """" & Property ( "CustomActionData" ) & """" ,7, False Set WshShell = Nothing ---- CustomActionData is: [TARGETDIR]deleteShortcuts.vbs startsh.vbs and deleteShortcuts.vbs are installed in [TARGETDIR] folder and property "Permanent" is True. Thanks > Why not just mark the deleteshortcuts vbs file a ...Show All

  • TheSuffolkRam Regarding Label control Text property (for "&")

    I have to name a label as "A & B",but it is getting displayed as "A_B", the same is applicable for button also. since for hotKeys we have to specify the letter with"&". right . I would be very thankful, if i got the solution. Thanks in advance RamBabu Nice one brother! Hi, as an additional option, you could go with escaping the '&' character by doubling it: Label1.Text = "A && B"; Andrej Hi there. What you do is you set the UseMnemonic property of the control to False and the 'A & B' will be displayed as 'A & B' Thanks a loooot friends ...Show All

  • Wee Bubba Comparing two strings with String.Compare()

    I'm trying to compare two strings to see if either one or both is equal in Case. Can anyone tell me how I can do this using Compare() And what value it returns and how to get it Thanks in advance....... Will these return an integer value Thanks..... Yep, a 32-bit signed integer indicating: Less than zero strA is less than strB . Zero strA equals strB . Greater than zero strA is greater than strB . For case sensitive comparisons you can use: string.Compare(stringA, stringB, StringComparison.InvariantCulture); If you want the comparison to be culture aware and use the curren ...Show All

  • Prashant_Rai Loading Image (Visual C# 2005)

    Hey, I after these lines of code what should I put to make it load the image into a PictureBox openFileDialog1.DefaultExt = "*.gif" ; openFileDialog1.Filter = "Gif Images (*.gif)|*.gif|JPG Images (*.jpg)|*.jpg|TIF Images (*.tif), (*.tiff)|*.tif|PNG Images (*.png)|*.png|BMP Images (*.bmp)|*.bmp" ; openFileDialog1.InitialDirectory = "MyDocuments" ; openFileDialog1.CheckFileExists = true ; openFileDialog1.CheckPathExists = true ; Thanks :) if openFileDialog1.ShowDialog = DialogResults.OK then   pictureBox1.Image = System.Drawing.Image.FromFile(openFileDialog1.Filename) Do you have this line of code if (saveFileDialog1.ShowDialog() == DialogResult.OK) pictureBox1.Im ...Show All

  • p.cosmos VS 2005 applet deployment

    I've developed a small console application that imports data from a group of Excel spreadsheets using ADO.net, that are spread across a shared network drive . The application works fine when I use it on my workstation with WXP pro. But I try to schedule it and use it on a Windows 2000 Pro Server I get import errors, as if the application is not reading the number values from the spreadsheets. I've checked the ISAM versions and their the same so I'm stuck. Any Help would be appreciated Thanks HC Thank you for your quick response. The application all it does is upload Excel data to a SQL db , for whatever reason in WXP Pro it will read the numbers and the strings from cells on the Spreadsheet, but ...Show All

  • vanu BindingNavigator delete works but can't update database

    I have a Windows app usins VS 2005 . I added logic to confirm the Bindingnavigator delete button & added a BindingSource.RemoveCurrent. This deletes the row from the bound dataset buy when I the tableadapter.update I get an error saying the tableadaptor needs a valid delete command when there are deleted rows. Any idea how to fix this would be appreciated. Thanks Thanks that helped. I finally found out I did not have a primary key on the table and the tableadaptor configure wizard could not create the delete command. Thanks again The error is saying there is saying the delete command does not exist for the table adapter or has an error. Open up the dataset design ...Show All

  • dpoon Window class name is not valid.

    I get this error about 75% of the time I try to debug in Visual Studio 2005.  I have reinstalled VS and applied the latest service pack with no relief.  It never happens if I run without debugging, only when I try to debug.   It happens with every project I create, it's not isolated to a single project or solution.  Any help is greatly appreciated. It’s always thrown on this line (or equivalent): public static void Main( string [] args) { Application .Run( new MainForm ()); } System.ComponentModel.Win32Exception was unhandled   Message="Window class name is not valid."   Source="System.Windows.Forms"   ErrorCode=-2147467259   NativeErrorCode=0 &nbs ...Show All

  • mkrtchyan.arsen Need to abort uninstall based on user input

    Hi, I am creating an MSI using Visual Studio 2005, setup wizard. the install and uninstall are done silently. One of the uninstall custom action is to stop a service (using a VB script, i basically open up a shell and execute a net stop), the service name is given as parameter of the silent uninstall, i want to be able to abort the uninstall if the service name is invalid or null. Any suggestions Thanks Dinesh A cheesy way to do it is give the service name to a new watch process that kills the uninstall process if the service name is invalid. Since there is no commit it wont matter if the msi process die or not. A watcher process is a good way to get around msi limitations like not being able to run 2 ...Show All

  • Liam404 ComboBoxs, binds and sync

    Hi! I have two combos bind to a DataTable on this way: cmb_ProvID.DataSource = BD.Tables["Provincias"]; cmb_ProvID.DisplayMember = "ID"; cmb_ProvID.ValueMember = "ID"; cmb_ProvName.DataSource = BD.Tables["Provincias"]; cmb_ProvName.DisplayMember = "NOMBRE"; cmb_ProvName.ValueMember = "ID"; When i change one, the other changes too. But i have other two combos bind to a BindSource on this way: BindingSource currentMunID = new BindingSource(); BindingSource currentMunName = new BindingSource(); currentMunID.DataSource=BD.Tables["Municipios"]; currentMunName.DataSource =BD.Tables["Municipios"] ...Show All

  • R.Tutus datagridview cell color

    To: Ken Tucker Same question as RajKat: What is the C++ equivalent for your proposal Thank you for your reply, however ... While I was waiting I had to try something and I think I found an easier way; at least it seems to be working well in my application. Simply write: dataGridView1[x,y]->Style->BackColor = (Color::Yellow); Funny that this could not be found in any tutorials. Nevertheless, thank you for your reply! Try something like this private : System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { try { // Specify a connection string. Replace the given value with a // valid connection string for a Northwind SQL Server sample ...Show All

  • LeonR package for multiple applications

    Hello, I have developed several apps and would like to put them in the package of deployment or publication. I also want to give the user the choice to choose which app(s) they wanna install on their machine. I know how to deploy one application. but still very cloudy about multiple app packaging. Any suggestion If you have multiple MSI files you'd need a launcher with choices to launch each MSI (silently perhaps) and perhaps their prerequisites too. Another approach people take is to make each "app" a feature (like MS Office has Word, Outlook, PowerPoint etc) and let the user choose features at install time anfd modify later through the single entry in Add/Remove Programs. However Visual Studi ...Show All

  • Julien Couvreur Scrollbar scrolling down to make last listbox item visible. ?

    I have a list box and once I enter a couple of list items, the scrollbar moves up and the lastest list items are not viewable unless I scroll down. Does anyone have a solution or suggestion on how I can have the scrollbar move in the opposite direction making the lastest list items viewable Thank you... You could force it to scroll by selecting the last item: listBox1.SelectedIndex = listBox1.Count - 1; A listview control works better, it has an EnsureVisible property... You are absolutely right.. I overlooked that and moved it.. it is working great! Thanks for you help.... I'm not sure if this is the problem..I am changing the Index in a DrawItem. Could this be causing the issue private void listBox1_Dr ...Show All

  • Fata1Attack Advanced Cell formatting - DataGridViewColumn

    Using StringTo() method for Formatting cell within the DataGridViewColumn: I have created custom DataGridViewColumn and DataGridViewCell based on user defined data type. It stores float numbers that represent various strings. For example number 0.001 represents string "00", number 1.002 is formatted as "1T", number 0.5 is "05" while integers are formatted as they are (100 => "100") etc. Override ToString() method is used to provide the conversion from a number to a string. I now need to force my custom column to display the formatted strings instead of the float values that I stored in database, i.e. when I type 0.001 into the cell, I need to display "00" but the value of the c ...Show All

  • laue Urgent: NullReferenceException on the RenderControl method of the new Treeview web server control

    I get a NullReferenceException on the RenderControl method of the new Treeview web server control for ASP.NET version 2.0. The exception message is: "Object reference not set to an instance of an object." The stack trace is: "at System.Web.UI.WebControls.TreeView.GetImageUrl(Int32 index)\r\n at System.Web.UI.WebControls.TreeNode.Render(HtmlTextWriter writer, Int32 position, Boolean[] isLast, Boolean enabled)\r\n at System.Web.UI.WebControls.TreeView.RenderContents(HtmlTextWriter writer)\r\n at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)\r\n at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)\r\n at System.Web.UI.Control.RenderControl(HtmlTextWriter ...Show All

  • NeoNmaN combobox selection not updating with dataset

    I have a datagridview with a combobox column. After selecting a new value in the combobox from the list If I call DataSet.Update the new value in the combobox is not updated. It does not get set as the value until the cell loses focus. I tried calling dataGridView.EndEdit() but the row still does not get set as modified until later. (I think that I am having the same issue with a text box column) How can I accept the changes to the dataset before updating Thanks I found the answer in another thread. Call this.VerifyChildren() before the update. It removes focus from the current cell. It worked. Another idea I found in the Microsoft Visual Studi ...Show All

94959697989901234567891011

©2008 Software Development Network

powered by phorum