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

Software Development Network >> Windows Forms

Windows Forms

New Question

non rectengular form flickers at moving
DataGrid View Focus Controling
datagridview contextmenustrip
How to enable scroll bars for textbox when it is disabled?
Where can I access the commandTimeout property in a DataAdapter
Automated Scheduler + C#
app control using only keyboard
FileInfo
How does the designer locate an assembly ?
Question about Logical containers

Top Answerers

Chopaka
me*
BhuttCrackSpackle
asdsoftware_dev
mkb2006
Jassim Rahma
d_gerst
Michael BBB
AKW2006
Zach7
Expression 3D Toolkit
Only Title

Answer Questions

  • John.Doe Adding custom fields to a strongly typed dataset

    I have a strongly typed datatable that I am binding to a DataGridView through a BindingSource. This works fine and when I add columns to the DataGridView I can see all the fields in the strongly typed TableRow listed so I can select which one I want to bind to. The problem is that my table links to another table and I want to add a column to bind a field from the second table. Basically, my main table has a "UserID" column that is linked to a "Users" table which contains a "UserName" field. In my DataGridView I obviously want to display user names and not meaningless IDs. I thought I could do this by adding a UserName property to the derived TableRow, but for some reason this will not appear in the list of ...Show All

  • Vadimus combobox

    Hello A problem! I am trying to do the tutorial about two tables (master/detail) lookup. but it will not work. Everytime when i changing a value on combobox (child table is updated corectly) but combobox (parent) datasource is updating also. like this combobox list at start 1 test (displaying item in combobox) 2 test2 3 test3 then when i change to "test2" the list will look like this: 1 test2 (displaying item in combobox) 2 test2 3 test3 someting is wrong here! please help. Post the relevant code please. BonnieB wrote: Post the relevant code please. Hi I am doing the binding with designer so there is only code that designer i generating. Hello I found ...Show All

  • golfdude54 Open IE Popup Window from Windows.Froms

    Hi How do I open a popup window in IE (7.0) directly from a Windows From App I've tried the following, but it only opens inside IE (in a tab in my case) and not as a new popup window. WebBrowser browser = new WebBrowser (); browser.DocumentText = @"<html><head>" ; browser.Document.Window.Open( @"http://ce02:5555/sfa/conts/edit.aspx id={20DFBDA7-28FA-DA11-BD72-00138F70EB7D}" , "" , "toolbar=no,menubar=no,width=400,height=300" , false ); The site wasn't added to the list of "popup-approved" sites, so it looks like nothing happend! Thanks again /Casper Thansk for the replies, but thats ...Show All

  • stinosky MessageBox problems

    Hi all! I have a problem when displaying a MessageBox. The problem is that in the box does not appear any text, neither the caption nor the message nor the button text...what is happening the code is: MessageBox.Show("The system is not connected.","Robstar", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); thanks in advance!! Hi, The syntax seems to be correct so that's not the problem. Can you try to do this in a new project Just to check where the problem is located. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog Yes, Found this on the net: Finally a resolution!! The problem on my machine was because of an inc ...Show All

  • Ray Z. Yang kill form from a thread

    I have a form from which I'm calling a thread. I want to exit the form when the thread is done. How can I do this Can this be done... There are several options Pass the Form to the start of the Thread. At the end of the Thread, invoke onto the Form's Thread and close the form. private static void MyThreadStart(object state) { Form f = (Form)state; try { ... } finally { f.Invoke((MethodInvoker)delegate { f.Close(); }, new object[]{}); } } Create a timer on the form and every second check and see if your thread exited There are a lot of ways besides these two to get it to work so if this doesn't work, post back and we'll add some different ways. ...Show All

  • kadabba RichTextBox Gutter?

    Is it possible to make a gray gutter using a RichTextBox control And also, is it possible to add line numbers to it Thanks in advance, James Thanks for your reply. I just found exactly what I was looking for by doing a google (should have tried it sooner i guess): https://secure.codeproject.com/useritems/RTF_LineNumbering.asp You would most likely have to draw all of it yourself. And then I think you can set some sort of margin property in the rich text box, not sure though. ...Show All

  • msdate TypeDescriptionProvider attribute is ignored with generic Form

    I am trying to create a generic form that can be designed in the VS designer. I found an article (http://www.urbanpotato.net/Default.aspx/document/2001) that fixed this for an abstract form and now I am trying to do the same thing with generics. But it seems that the TypeDescriptionProvider attribute is ignored when the Form is generic. The message box does not popup when I enter the designer (and of course the form cannot be designed). But when I remove the <T> from the generic form (and the <object> from the derived) the message box popup! Shouldn’t it always popup even if the class is generic or am I missing something Here is my GenericForm: [TypeDescriptionProvider(typeof(GenericFormProvider))] public class GenericForm< ...Show All

  • ALahiri Click Once Configuration File

    Hi, I am developing a smart client that is connecting to a database directly for now and want to put it on a CD that can deploy the files on a server. During the deployment, I want to set some application settings on the smart client, like setting the database server name and so forth. I don't want to do this on the client side. Is there a way to do this. Please let me know. Thanks!! Good let me know how it goes. Maybe if I put the files for smart clients using a custom installer and allow the admin to update the config file using the installation program, it might be doable. But I am still not sure how to change the config file. Do you know which exact file on the server from where the user ...Show All

  • jiggs How Could I Get the coordinates of the upper-Right corner of the control

    hi I Have a Panel That i will create many labels on it in RunTime But My Proplem Is That i couldn't get them in line i mean i want labels to be one by one ( try to make Text marquee ) my idea is to get the coordinates of the upper-Right corner of the Label So i can set the next label location Any One Could Help :) label controls have a Location property that is the upper left coordinate of client area. so, if you want the upper right coordinate, just plus the width of the label onto the Location.X. Hi Hope the code sample mentioned below will help you to place control one below the other.Basically getting the controls Top property. Label lblOne = new Label(); Label lblTwo = new Label(); &n ...Show All

  • WXS123 How do I reference a dynamicly created control on a tabpage?

    I have code that successfully creates a group of nested controls. A tablelayoutpanel contains two splitter panels and another tablelayout panel. There are further controls under the splitter panels, both labels and datagridviews. If I want to refer to one of these controls when I switch tabs, how do I get that reference to work I have tried: Private Sub EmpPopulate( ByVal index As Integer ) 'populate the employee list Dim name As String = "DataGridView1" & index Dim grid1 As New DataGridView grid1 = Me .TabControl1.SelectedTab.Controls(name) grid1.ForeColor = Color.BlanchedAlmond End Sub As I am confident everybody sees, this causes a nullreferenceexception. Is this even the ...Show All

  • pcompassion MDI Child Forms not Maximising

    Hello, I had a .NET 1.1 MDI application that I've recently updated to .NET v2.0 but there is a problem with showing MDI child forms that wasn't previously there. The MDI parent is split into two. On the left there is a tree view which, when a node is clicked, shows the relevant MDI child form. The MDI child is set to a fixed tool window and when shown it's maximised to fill the space available in the MDI parent. In .NET v1.1. this worked fine however in .NET v2.0, although the form is shown maximised, the form area being displayed is actually the same size as it is at design time. I know the form is maximised because it can be minimised, and when this is done and then the form is re-maximised it fills the space available as its su ...Show All

  • arunr14 Get problem when deploy my project!

    I deploy my project use Crystal Report by follow these steps: 1) Start Visual Studio 2005 (Beta2) 2) Select File , then click New Project . 3) Choose Other Project Types and Setup and Deployment . 4) Select Setup Project 5) Add in your project output, file, assembly...etc 6) In the Solution Explorer, right-click the setup project name, and click Properties 7) From the Property Pages dialog, click Prerequisites 8) In the Prerequisites dialog box, under the Choose which prerequisites to install list, select .NET Framework 2.0 and Crystal Reports for .NET . I check Create setup programe to install Prerequisites and choose Download Prerequisites from the same location as my application . 9) Back to Property Pages dialog, ...Show All

  • Chien-hao Wesley Wen problem with DataGridView control

    Is there a way to restrict the number of rows a user can add in a datagridview control e.g when the user had entered 2 records in the grid, a message should popup saying "You can't add more than 2 records". Please help. Check the RowState property of GridViewRow to if it was Inserted. Iterate the GridView rows and check the RowState of each row. Maintain a counter ( and increment ) when the row has Inserted state. When counter has reached 2 then you can disable adding more rows. HTH ...Show All

  • Malleswar Calling Timer Tick Event with Custom EventArg

    Hi All, I want to create a timer tick event but pass an argument to the event. I am getting stuck in how to pass the custom EventArgs to the tick event. The code below with the missing lines compiles with one error, because the "Clock.Tick +=" line is missing the information on the argument. I just don't know how to pass it. Thanks in advance, Marci Weinberger ... MyEventArgs objEventArgs; objEventArgs = new MyEventArgs(iBoard); Clock = new System.Windows.Forms.Timer(); Clock.Interval = 1000; Clock.Start(); Clock.Tick += new EventHandler(Timer_Tick); ... private void Timer_Tick(object sender, MyEventArgs objArgs) { } In order to specify your own EventArgs to be passed into the event handler, you'll need t ...Show All

  • iSerg realtime Listbox items

    Hi, I'm looking for a way to set a status in listbox. Item 1 – changing Status Text Item 2 - changing Status Text Item 3 - changing Status Text Item 4 - changing Status Text The items represent threads which are working at the moment, in the listbox I want to set their status. How can I do this not sure I quite follow - how exactly do you mean by setting a status in a listbox ...Show All

141516171819202122232425262728293031

©2008 Software Development Network

powered by phorum