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

Software Development Network >> Windows Forms

Windows Forms

New Question

how to add a new row to datagridview + bound text boxes et
Writing to console in batch mode
Datagridview change the background color of some rows.
Moving From VS2003.Net To VS2005.Net Via VB.Net, SQL Connections
Click Once Configuration File
Why does Control.DoDragDrop swallow exceptions?
RichTextbox bold
MDI child focus issues
Debugger doesn’t stop on breakpoint
DataGrid Problems

Top Answerers

mpavlik
Louis Davidson
Werner Clausen
papadi
stswordman
Khookie
Darlek
ceilidhboy
Brandon Wilson
NozFx
sitemap
Only Title

Answer Questions

  • Newbie75 how to get the Primary & Foreign Keys to casade properly?

    I am building an Invoice Program using SQL where: TblClientDB is a table that holds client information TblInvoiceDB is a table that holds invoice information TblInvRowDB is a table that holds info about invoice items ClientDataSet is the only dataset that contains these tables FillBytfLName Fills the dataset sorting by ‘tfLName’ (Last Name text field) The DataBase was filled with data. During runtime all information sucessfully transferred to the dataset: Private Sub ReFillDataSet() Me .TblClientDBTableAdapter1.FillBytfLName( Me .ClientDataSet.tblClientDB) Me .TblInvoiceDBTableAdapter.Fill( Me .ClientDataSet.tblInvoiceDB) Me .TblInvRowDBTableAdapter1.Fill( Me .ClientDataSet.tblInvRowDB) End Sub ...Show All

  • Sunchaser Combo Box In DataGridView

    Hello All, I'm facing some problem while using a combo box in a datagrid view cell. Let me discuss what i'm trying to implement... Suppose i've a datagrid which have some rows. I want that one of the column of that datagrid will be a combo box. But couldn't implement finally as i am very novice in C#. Like, i've 3 columns,like... Booking Id ---- Description ---- Status 1 Test1 "Accept" 2 Test2 "Deny" 3 Test3 "Pending" **** I want that the "Status" column will be a combo box so that i can choose the status("Accept","Deny","Pending" in the above example) from a drop-down list and set ...Show All

  • polymorphicx how can i change the source code of a webpage with webbrowser control??

    i want to add some source code to a webpage to add some functions for my own uses.... for example a webpage has a javascript function a(str){ ..... } i want to add an other function b to filter out some text.. so function a(str) {b(str); .... }.. can you modify the source and it still in the same url not in about:blank if so,, congraduation... i didn't make that works,,, and for your problem, you can try Navigated event.... Yo Scorp, I'm working on this right now as well. No help on the web either. I need to remove a javascript function from the document that's calling a pop-up before it is presented to my webbrowser control. I have the popup s ...Show All

  • SmallCompanyProgrammer Redrawing a panel

    Hello, I am using System.Drawing.Graphics to draw a table on panel. My problem is, the table is pretty long, so it goes off the page. I have put in a scroll bar on the side of the panel, but when I try to scroll, the table get's jumbled. Does anybody know how to tackle this problem, or can you direct me to a good website with this kind of info Do I need to redraw the panel each time the scroll is clicked If so, how do I know what portion of the table to draw I guess I'm not sure how the logistics work here... Thanks for your help! RC You will have to redraw the content of the relative to the value of the AutoScrollPosition. Basically you add(+, AutoScrollPosition is a negative value) it to the locatio ...Show All

  • Dan Wahlin Problem: Can a Form == a Control??

    This is quite an interesting problem (well I think so, but then again, I am a bit strange). I have a .NET 2.0 application that consists of a number of panels that can be dragged around and docked - not unlike the Visual Studio IDE in fact. In these panels I can put any control I care to choose. All well so far. Now then. I have another .NET 2.0 application which fulfils some functional need (as applications tend to do) but it was a bit of a nuisance that it was a separate app. I wanted it to be included as part of my aformentioned panel app. So, after having a look at the object hierarchy for Form, I noticed that it derives from Control. "Yipee!" says I, theoretically I can drop an instance of this entire app as a Contro ...Show All

  • Péricles Tabbed browsing

    Hello, I'm a new developer building a tabbed browser for industrial use. My browser keeps bombing out on the Navigate() method, as follows: private void Navigate( string address) { // Navigates to the given URL if it is valid. if ( String .IsNullOrEmpty(address)) return ; if (address.Equals( "about:blank" )) return ; if (!address.StartsWith( "http://" ) && !address.StartsWith( "https://" )) { address = "http://" + address; } try { Navigate(address); } catch (System. UriFormatException ) { address = "" ; return ; } } The error I continue to get is a StackOverflowException; what i ...Show All

  • caligula Minimum Height for Form?

    I can't seem to get a form of mine to draw at a height of 16 pixels. It always seems to add on an extra 16, I have FormBorderStyle set to None, not sure what's causing this I took a look at this thread and it might give you some kind of answer.. It's in VB but it should work in the same way in C#. I use C# myself, not VB. :) http://forums.microsoft.com/msdn/showpost.aspx postid=127429&siteid=1 (Scroll in the bottom of the page to see the right ( ) answer) Regards, Timo Actually, I archieve the effect what you want by set the Height in the form load event handler. This behavior seems quite strange ... Maybe it is a workaround. Make sure Form Autosize is set to false. A little ...Show All

  • Josh Robertson error: Unbound reference in aggregate expression

    Trying to add "invoiceTotal" column to Invoice table expression Sum(Child.Total) with "Total" being a computed column on Invoicedetails table expression Price*Qty When I try to configure the tableadapter after adding the computed column to Invoices I get "Unbound reference in aggregate expression 'system,data,aggregatenone'" Any Ideas I haven't used DataSets & DataTables for a while, but I think I ran into this. Try something like: Sum(Child.Price*Child.Qty) I don't think you can reuse an expression column in another expression column. Tony Seems to be a bug... You can modify commands and other properties of the Ta ...Show All

  • Milo123 Need help with a deployment.

    I would like to first say thank-you in advance for any help you may provide here. I am not sure if this is the proper location to post this but... How do I get the MSinstaller to remove a previous version of an application and install the latest version without adding additional application listings in the registry The project details are below. Using Visual Studio 2005 I am working with a C# non web solution using the single solution model, the solution has multiple project components that are ultimatly built into an msi file that utilizes a bootstrapper setup.exe with dependencies of .Net and SQL Server 2005 Express. Below are the Properties settings for the deployment. Setup:Deployment Project Propertie ...Show All

  • Jagdish Kumar C# Respond to Windows Shutdown

    I have a C# app that primeraly displays an icon in the system tray.  The main form doesn't close but only get hidden when the close button is pressed.  To shut down the app the user must right click the system tray icon and select exit from the popup menu.  Everything works fine except when I got to shutdown windows and this app is running it doesn't respond to the system shutdown and remains running forcing windows to stay running.  How can I have the app responde to the system shutdown message and close so windows can shut down properly I tried this example to check the shutdown event in C# ago. It did not work. This time it is also not working. Could you please explain descriptivel ...Show All

  • jport searching..........

    Hi can someone point me in the right direction of searching multiple drives and subdirectories for files. It would be good if it was not a so accurate search eg. if I entered bobby in the text box, it would still display bobbybrown.mp3 in the text box. so it like will find words that are similer. I think you can down some ctrols writed by other people. http://www.codeproject.com/csharp/fulltextsearchingifinters.asp http://www.codeproject.com/cs/miscctrl/SearchableControls.asp djshades2004 wrote: Hi Thanks For The replys, Zhi-Xin Ye : I'm having problems with the code, vb doesn't recongnise the Void command. Void is not a command, in c# ,it means not return v ...Show All

  • Xi0N Destroying Objects

    Im adding a webbrower to each new tab i create. private void newtab(String name, String url) { TabPage newpage = new TabPage(name); tabControl1.TabPages.Add(newpage); newbrowser(newpage, url); tabControl1.SelectTab(tabControl1.TabCount - 1); } private void newbrowser(TabPage newpage,String url) { WebBrowser w = new WebBrowser(); w.Parent = newpage; w.Dock = DockStyle.Fill; w.Navigate(url); } When i close the tab, the webpage is still loaded in memory, how do i clear it I can tell because the Sun Java icon is still in my taskbar (there is a java applet inside the webpage). That's Internet Explorer you're seeing. Small windows can have b ...Show All

  • R Raghu How do I set the location of a control loaded at runtime?

    I've created a Button control that I want to locate on the bottom of the form.  How can I use the form's size attributes so that no matter how the form size is changed, the button(s) will always be centered along the bottom of the form At this point, I'm dragging a button control from the tool box and positioning it on the form then, using the button's Location property to use in the code then deleting the button from the form.  I can vaguely remember in VB 6.0 that you would use the form's ScaleWidth and ScaleHeight but these are not in C#. Needless to say, I'm kinda lost. Rhubarb Hi, The Height and Width property can be accessed in the constructor. I tested your code, and it works fine despite the fa ...Show All

  • akaStacy Tabpage control

    I have a tabcontrol with multiple tabpages. I have included a context menu with close option to close a tabpage. I am able to close the selected tab page using the close option but i am not able to close other tabpages using the context menu (ie) i am not able to select a tabpage by right clicking on the top of the tabpage. can someone help me on this Regards Venkatesaperumal I tried your code, but I realised the was an issue with using the position of the cursor. If you click on the toolstripmenu and the cursor is not above the tabcontrol, it won't work (or it is just me). I solved this by replacing the cursor code with the top left corner of the contextmenu. This will ...Show All

  • GraemeP Sample Code: DataGridView progress bar column

    I have a column that has integer data in it, I want to display it as a progress bar in the column so the user can quickly identify lagging processes.   I just started with 2005 and it looks great but does anyone know a quick way to do this I would also like to change the color of the progress bar based on the cells value. I found in the data sources toolbox where I can change the column to progress bar but that does not pass through to the grid.   Thanks for ANY help with this Hi Mark, I know that source code is provided "as-is", but do you have any input for me on the C++/CLR version I translated If you could just point me in the right direction I would be grateful ...Show All

596061626364656667686970717273747576

©2008 Software Development Network

powered by phorum