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

Software Development Network >> Windows Forms

Windows Forms

New Question

Saving contents of a graphics
Using Windows.Forms-Designer to create an office-CommandBar??
help me i can't save (Concurrency violation when handle Concurrency violation !!)
What does Ozzie think?
Distribute Row & Column evenly
DataGridView Record Number
how to use a webbrowser control
Help with Winform and binding to an object
help with dll in clickonce
list all the prineters in network

Top Answerers

JTechOnlineGuy
Azaz
Quilnux
reichard
NessDan
wadnerk
singapore
Rashar
Peter Pallos
stellag
sitemap
Only Title

Answer Questions

  • JasonY validating a tab page

    I have a tab page validating event to prevent the user from switching to other tab page if the current tab page has some required information not filled. When the validating fails, e.cancel is set to true. Now the problem starts. Any button or check box doesn't work anymore on that tab page. I mean button click event won't fire. The check box can't be checked and unchecked. The only thing that can be done is to enter information in the text field. Is this behavior by design If not, what can I do to make the button and check box work when the tab page validating fails Thanks for any suggestions. Ok, did a bit of digging, and this worked for me: private void tabPage1_Validating(object sender, CancelE ...Show All

  • csk2006 why the return type as.....

    hi all, Following is my code : Public Class PasswordConfig Public Shared Property PasswordExpiry() As Integer Get Dim _portalSettings As PortalSettings = PortalController.GetCurrentPortalSettings() ... .... End Get End Property -------------------------------------------------------------------------------------------------------------------- Another class is : portalcontroller.vb Code is Public Shared Function GetCurrentPortalSettings() As PortalSettings Return CType (HttpContext.Current.Items("PortalSettings"), PortalSettings) End Function --------------------------------------------------------------------------------------------- ...Show All

  • WalidM DialogResult not detecting DialogResult::OK

    I'm using the following code to try and open a file using the openFile dialog box, however it always enters the 'Open file cancelled' section, even when the Open button is pressed. ::DialogResult ^openfileresult; openfileresult = openFileDialog->ShowDialog(); if (openfileresult == ::DialogResult::OK) { // Open the file here (never gets to here) } else { // Open file cancelled (always ends up here) } If however I cut out the intermediate variable and do a direct comparison by changing the code to the following, it works perfectly as it should. if (openFileDialog->ShowDialog() == ::DialogResult::OK) { // Open the file here } else { ...Show All

  • that_guy Data bound on DataGridView with Custom columns.

    Hello, I have created a datagridview with the 5 following columns. 1)CourseName (Combobox) 2)CourseType(Combobox) 3)DateFrom (DateTimePicker) 4)DateTo (DateTimePicker) 5)CourseDetails (Textbox) What i want to do is to fill this datagridview with data from an Access database (Table Courses). What i thought so far is to have a define an OledbCommand and fill a OledbDataReader, and then based on the values from the database set the datagrid cells. Is this correct Or is there a better and more clean way of doing this. Thank you in advanced. Anyone with a suggestion Hi, you can try with the oledbdataadapter, I frecuently use the sqldataadap ...Show All

  • ps0118mj Very slow load of C++/CLI project with WinForm

    I have a large C++/CLI project that I'm building with VS 2005. I've added a WinForm to the project that contains some 3rd party components (DevExpress). It compiles and runs, but when I load the project into Visual Studio it takes 5 minutes to start up! Before I added the WinForm it took about 10 seconds. I took a look at what VS 2005 is doing during this time and it's creating 94 folders in C:\Documents and Settings\Fred\Local Settings\Application Data\Microsoft\VisualStudio\8.0\ProjectAssemblies and copying my project's .EXE and .PDB file into each one. Unfortunately, the .EXE is 11MB and the .PDB is 32MB... all-in-all it's copying 3.82Gb of data (4K at a time) which takes a while. Also, if I make any change in the form designer an ...Show All

  • pinoyz ListBox question

    Hi to all! I have a question about ListBox control. I would like to add some items on a ListBox which are objets (for example type of MyOwnObject) and are not strings! When I add my objects to the ListBox (myListBox.Items.Add(myOwnObject)) of corse nothing displays on the ListBox. I would actually like to display only some properties of my objects (for example myOwnObject.Name + myOwnObject.Version + myOwnObject.LastUpdated). I don't know how to do it. The fact is I want to have the whole objects in myListBox.Items because of the binding (raising events) not only strings. Thanx for any advice, Ziga Hi fddsfsdf, A common question, the ListBox ObjectCollection is confusing. When&nbs ...Show All

  • Can-Ann Project location from Component.ControlDesigner

    I am wondering how I can get the project location in Control Designer during form design time I am designing a custom control and I want to have a custom property with list of xml files in the parent form's project folder. I looked at several services of System.ComponentModel.Design but it wasn't helpful. Thanks Thanks. That worked out well. I got stuck at another problem. I want to display list of strings in the property dropdown. Should I create my own UITypeEditor or is there simple way to display strings in property dropdown you've got to create another thread for that query... this should interact with EnvDTE object ...Show All

  • Patrick0 How to include external file with ClickOnce deplyment

    Is it possible to include external file like .exe of .mdb files with ClickOnce deployment and specify where to save the file to Devi Yes. Include the file as in the Application Files under the Publish tab. Then when the app is run, you can to a file.copy(yourfile, "Path on the user's computer") ...Show All

  • kimhoskin Opening a .chm file from a menu item

    I would like to open a .chm file whenever a specific menu item is selected. How do I do that in a C++ WinForms application The C# code uses the Process class: Process p = new Process(); p.StartInfo.FileName = @"path_to_chm"; p.Start(); Hope this helps. ...Show All

  • Jstun forms designer error, vb .net 2005

    I am trying to follow the code in Taskvision 2.0. It compiles and runs, in VB .NET 2005. But if I use the designer (right-click on a specific form, MainForm), the designer crashes with a message: "The Name PriorityText is already in use by another component" PriorityText might be a datagrid, but I am really not sure I remember this kind of error happening in VB 2005 Beta programs when run under 2005. To fix it, I had to edit the designer.vb file and fix something,... but I can't remember what. Any help, please thx find in your designer.vb for "PriorityText " to check whether you have use it for more than one component maybe you can use find and mark all to help you find all priority te ...Show All

  • James N ClickOnce and Database files

    Hi, I have two questions. First how to deploy database files along with my application that is going to be deployed using ClickOnce. Secondly how can i create a sub-directory in the Iinstall directory of my application.Basically i have a few crystal reports that i also want to deploy along with my application. I can't move my crystal reports anywhere else. Any help, suggestion or hint... Thanks in advance... Wasif Ehsan. ...Show All

  • Dmitry N. Oleshko display image from the internet in a PictureBox (C#)

    Hi all. Im trying to display images from the web into a picturebox control. when the form loads, i'd like for the pictureBox control to read a URL from a textbox control and load the image. i found the VB equivalent code to do this but im a newbie and cant translate it into C#: PictureBox1.Image = New System.Drawing.Bitmap( New IO.MemoryStream( New System.Net.WebClient().DownloadData(TextBox1.Text))) // Assumes there is a textbox called textbox1 and a picturebox called picturebox1 on a form. Textbox1.text should be the URL of the picture. Is there an easier way to go about this Any help is appreciated. Thanks in advance Jason Hi, you're probably using framework 1.1... That method and property ...Show All

  • Harry Hunt About a button menu

    Hi! In the toolbox theres something called "TabControl" if you choose that tool you'll get a menu with tabs, and each tab got their own page. And now here's the problem; I want to make a similar as the TabControl but instead of tabs using Buttons. So imagine i got a menu with buttons and each button got their own page. Just like this, the buttons is a menu, press one button and it shows some data: http://www.thrinker.net/button1.png and press another and it shows some other data: http://www.thrinker.net/button2.png how can i make it like that using many forms thanks! herman Hi and Thanks! I will take a look on all three sugestions. But here's another one for you, how do you make a popup Li ...Show All

  • kbutterly How to link between two textboxes in two different forms

    Hi all, I want to ask , how can the textbox in form1 changed according to the value entered in the textbox of form2. best regards... Hi, You can do in two ways as following. WAY1: For example you have two forms Form1 & Form2 and a textBox on each form then on Form2 make textbox static like this public static System.Windows.Forms. TextBox textBox1; And on Form1 textbox text event change write following code... Form2 .textBox1.Text = textBox1.Text; WAY2: You can also bind form2.textbox to form1.text box if accessible. private void Form1_Load( object sender, EventArgs e) { Form2 frm = new Form2 (); frm.Show(); textBox1.DataBindings.Add( "Text ...Show All

  • mike11d11 what do I do if I want some code to execute after the installation

    Where do I put it pls Thanks While Setup Projects offer far more customizability over a ClickOnce installer, they still leave much of the power of MSI outside of your reach... you may want to look into some custom code within the overall process ... even if it does not occur at the absolute end. can I execute code after the finished Dialog. What I need exactly is to display a link to a web site at the very end of the installation. Thanks a lot. setup project thanks a lot man In the Custom Actions editor, add your own custom action to the Commit stage. What kind of installer are you ...Show All

293031323334353637383940414243444546

©2008 Software Development Network

powered by phorum