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

Software Development Network >> Windows Forms

Windows Forms

New Question

Listbox and SelectedItems
Getting a cell value in a DataGridView
Convert SQLDMO._Table to System.Data.Datatable
How can I get the funcationality of cut, copy, paste, undo, redo etc
Update a form
Designer Support when Control has abstract base class
Appending textbox outside of Form Class
Click on a link programmatically using WebBrowser control
When CheckForIllegalCrossThreadCalls == true, does the framework inform of ALL the control access errors?
programmatically change datagridview pointer column size

Top Answerers

ron nash
Orbenin
CK12
S10n
redneon
RCH1968
Wiindows
LORDTEK
BhuttCrackSpackle
spepperchin
Topix: Ice Cube
Only Title

Answer Questions

  • rjo2 cant use ConfigurationManager even after adding using System.Configuration namespace in windows from application

    hi there , this is my first post so good morning to everyone , i have a little problem , i was working on a windows form application and connecting to my database whose connection string was in app.config file , i added the using System.Configuration clause in my .cs file but i was not able to use ConfigurationManager namespace to access my connection string in app.config then after wasting sometime i realized that i forgot to add a reference to the assembly System.Configuration in References folder now , my question is how come the " using System.Configuration " namespace while i added was being intellisensed since there was no reference to assembly System.Configuration it should not have been , since it fooled me that ok there ...Show All

  • MShanahan Error launching Clickonce app from intranet

    I have an app which is deployed on an intranet site.  When I try to launch the <app>.application file, I get the error below.  BUT, if I do a RUNAS and run under a admin user of the webserver, the app will launch. Running framework 2.0    Windows Server 2003 Here is the error:   PLATFORM VERSION INFO  Windows    : 5.1.2600.131072 (Win32NT)  Common Language Runtime  : 2.0.50727.42  System.Deployment.dll   : 2.0.50727.42 (RTM.050727-4200)  mscorwks.dll    : 2.0.50727.42 (RTM.050727-4200)  dfdll.dll    : 2.0.50727.42 (RTM.050727-4200)  dfshim.dll    : 2.0.50727.42 (RTM.050727-4200) SOURCES ...Show All

  • Trisha1802 Dynamically adding controls to a Windows Form

    I have been developing a Windows Form Application in C++, but I recently ran into a problem. I need to add a control, lets say a picture box named pctStack1 to a form named frmMainWin. When a function is called during runtime I want to create a new picture box, assign it the normal properties, and place it on the form where it needs to be. How would I do this Normally I don't think it would be very difficult but the way the Windows Form Application in C++ works is when you place the control on the form, it generates the code for it and places it before any events or functions. I have tried a few things, but I cannot seem to get it to work without the code being with all the other code for generating controls, and any help would be greatly ...Show All

  • sandyrae DatagridView - avoid to select a row with null values

    Greetings, I'm trying to do the following: Fill a dataset with data and these data contains some null values. I don't want to allow the user select a row with null values, the behaviour should be when the user click's it it remain on the last selected row. But I'0m having a problem it changes the row to the null row and then goes back to the last selected... How can I fix it... I'm trying to do this for weeks If you don't want the users to select a row with null values then those rows shouldn't be displayed in the grid view to begin with. You should use a filter in your query that excludes the records which have null values. However, for some reason you must display the rows with nulls then you can check for nulls and ...Show All

  • Pramod S Kumar Accessing objects on a form via a class

    I have a form with a text box and I need to access the textbox and some other events within the form class from a seperate class. How can I get access to that textbox The form is making a call to a method within the class class.getCommand(command); and then the getCommand method needs to be able to modify the textbox within the form. Any suggestions would be great! Thanks! Scionwest Hi Scion, Thanks for the clarification. You have a LOT of options as far as getting this to work and all of them are a mere matter of having your form instance readily available where you need it. Looking at your VB code, you've already done something like this. You have a private field, FormAcces ...Show All

  • mshvw creating a windows basesd webservice using vb.net

    dear all, i am trying to create a windows based application (better to be called as webservice)using vb.net... The main theam of my application is to create a login form which could communicate with the webservice developed in java... so i request you to kindly help me out in solving this problem... thanks in advance... srichand.k Have a read at this article . ...Show All

  • Johnny Ashcan Datagrid

    Hi everyone, May i know how to read all the values in a datagrid one by one. I want to add all the values in each row in a particular column in the datagrid. Is it possible to do so You could get the row counts through DataTable which should be the datagrid's datasource. int row = dt.Rows.Count; Hi, You would have to iterate through each row on the datagrid and get the column value for each row and keep adding them. int numRows = datagrid1.Rows.Count; int sum = 0; for (int i = 0; i< numRows; i++) { int colValue = datagrid1[columnIndex, i].Value; //Typecase this value appropriately sum = sum + colValue; } Console.WriteLine ("sum is "+sum); ...Show All

  • error1408 Cannot get the tooltip balloon to show on a listviewitem

    I have multiple controls on a windows Form and I get the balloon for all my labels but I always get the standard rectangular box for listviewitems. Is there any way to get around this the listview view mode is set at details if that helps thanks in advance Try the following: 1. Add a Point field to your form: private Point loc; 2. Add an event handler to the list view control's MouseMove event: private void listView1_MouseMove( object sender, MouseEventArgs e) { if (loc != e.Location) { loc = e.Location; ListViewItem it = listView1.GetItemAt(loc.X, loc.Y); string toolTipString = it.ToolTipText; if (it != null ) { toolTip1.SetToolTip(listView1, toolTipString); } ...Show All

  • wilson&amp;#33;V Upgrade the application with Runas command

    Hi, We are using VB.Net (VS 2003 - .Net Framework 1.1). Our application has feature to execute and install the upgrade. When the user select the option for upgrade we execute the setup.exe from the network drive. Since some users will not have admin access the application get failed to execute and install. So while calling the applcaiton we used process.start("runas user:\@username applicaiton.exe"). But it throws us with the dialog asking for admin password. Since the admin password can't be given to user, we wanted to pass the password as parameter. Is any way we can pass the username and password to execute the process in VS2003. I also came to know that VS2005 supports process.startinfo has parameters for username and passwo ...Show All

  • gafferuk Reg free COM and no XP

    Hello, I'm testing "reg free COM". I've a windows application with one activex control inside. I set references to Isolated:True, I've signed my assembly with a strong key. On other PC with windows XP, it works great! However, on a windows 2000 (for example), it doesn't work. But it is normal because "reg free com" works only with XP and above. But i've read on a book that it's possible to do it manually. It said to use the win32 function LoadLibrary(), then to use GetProcAddress() to localize DllGetClassObject() and finally to create a COM object with IClassFactory.CreateInstance() method. Can someone give me some explanations (and an example) for this method. Thanks (Sorry for my english, I'm french...) ...Show All

  • Richv5254 Drag and Drop Label containing text into another panel

    Hi all, I was wondering if it is possible to do the following: I have a toolbar-like panel on the left of my form, on the right side of my form I have a larger panel containing nothing. In the toolbar are panels containing labels with text. I want to be able to drag such a panel to the panel on the right side and drop it there. I want it to be dropped on the exact location where I released the mouse button, that exact x-y position. Is this at all possible Any help would be appreciated. It can work with anything. The problem you are going to have is determining what to store when dragging and what to retrieve when dropped. For a picture box you can simply store the Image property as a bi ...Show All

  • god_of_coolness Problem with ClickOnce and mandatory profile

    Hi, I'm having problem running a ClickOnce application using mandatory user profile. I'm getting these error messages: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://192.168.0.2/ClickViewPlayerLite/ClickViewPlayerLite_1_0_0_2.application videoid=668 ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of http://192.168.0.2/ClickViewPlayerLite/ClickViewPlayerLite_1_0_0_2.application videoid= ...Show All

  • vkan Handling NoNullAllowedException

    Hi, I get the above exception when the user clicks Save, on the code: Try Me .PropertyTableBindingSource.EndEdit() Catch ex As Exception MsgBox(ex.Message) End Try ex.Message displays "Column 'OrgName' does not allow nulls." I want to leave focus on the text box bound to column OrgName. How should I do this Or am I going about this completely the wrong way Thanks, Keith. Hi, I have looked at the ErrorProvider option, and if I have understood the Help correctly, I would need to write code in the Validation event of each field that could cause an error. I want to avoid this. I want to let the EndEdit() method generate an exception, then send the user to ...Show All

  • VoiceOfExperience How to load more than 1 million items in ListView without killing the memory?

    Hi all, I have a situation here. I need to read a large log file, in general will be more than 100MB, and with more than 1 million lines of text. I need to load them into a ListView to display. The problem I have is: usually after I load everything, my application will take about 300MB in memory. I'm wondering how to free my memory and make it lighter. Part of my code is below: using ( StreamReader sr = File .OpenText(ilf.fileName)) { string oneLine = String .Empty; string lineNo = String .Empty; string msg = String .Empty; while (!sr.EndOfStream) { oneLine = sr.ReadLine(); lineNo = oneLine.Substring(0, oneLine.IndexOf( ' ' )); msg = oneLine.Substring(oneLine.IndexOf( ' ' ) + 1); ...Show All

  • sanjeevm Datagridview-Can be used in 2003??

    Dear Team   1- Where  can i find the Datagridview control is it only in 2005 or what   2- Is the new versions of .NET can run under  linex or else   Thank you very much DataGridView is a new control in Visual Studio 2005 DataGrid is there in Visual Studio 2003 ...Show All

141516171819202122232425262728293031

©2008 Software Development Network

powered by phorum