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

Software Development Network >> Windows Forms

Windows Forms

New Question

caller ID c#.net
ActiveX controls in C#
Control Transparent Background Color
How do I set a margin for controls?
[c# .net 2] Exporting data from dataGridView
why invoke IComponentChangeService.OnComponentChanging method did not work?
Merging arrays
Can't use windows xp sp2
UI hangs when updating data
Efficiently Moving Multiple Controls

Top Answerers

AIMDBA
Tridex
Eddie Garcia
Mike36
DRoden
Kharkov Alexander
Jenny777
Cool Screen Name
Jough
cgkitab
sitemap
Only Title

Answer Questions

  • Helge Norvang Unable to open the publish page by default

    I have my open Deployment web page after build checkbox "checked" still when I publish its not opening the publish page by default, Is there something I need to verify my IIS, I dont remember any changes but looks like its not working now... apart from that I can still manually click the page and install everything fine... ...Show All

  • AkhilJ Designer repeatedly adds all columns from datasource to datagridview.

    My Solution contains many projects. All the datasets are in one project. The Windows Forms project uses several DataGridViews displaying very limited sets of columns from its datasource. Quite frequently it refreshes its display and adds all the extra columns to the DataGridView. Its AutogenerateColumns is set to false in the designer.c class. How can I stop this behavior other than never opening the Design view EDIT: From reading this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=430280&SiteID=1 it looks like the compiler is corrupting the .resx file (which contains the form's layout information, including the column settings), which means next time you load the designer it rec ...Show All

  • supersonic1976 Saving Record with datagridview

    Hi all, I desperately need help saving records to my database using a datagridview. I have created a store procedure running on oracle database. I have four text fields and a datagridveiw control. I am able to insert records from the textboxes using data from the textboxes as parameters to the procedure. This works fine, but I cannot save the data in the datagridview as I do not know how to access the individual columns/cells and passing them as parameteres to the procedure. I come from oracle forms background and completely new to VB.NET. I am really struggling to get this to work, can some please help. Any sample code or a link to some tutorials will be greatly appreciated. Below is the code I am trying to use Private Sub tsbtnSave ...Show All

  • markse DataGrid expand/collapse button rectangle

    Hi, I have to write an application which expands or collapse the row of the datagrid. My application gets the datagrid object reference, row index and action(expand/collapse) as the input information. I cannot call any datagrid public members of the datagrid directly , but I have a utility which mouse clicks on the screen if point is provided.So now I need a way to find the rectangle region for the + button on the DataGrid control. I tried using the AccessibilityObject of the DataGrid object to get it as the child but it doesn't come as the child of it. Is there any way to get the expand button rectangle. I am thinking of looking for the relative location of the + symbol on the RowHeader, and use that info to calculate the + symbo ...Show All

  • rounderh Setting STAThreadAttribute

    I have an application with an event handler that waits for HW events and then reports them to a server via the WebBroswer.navigate() method. I am getting an error when I invoke WebBroswer.navigate() saying: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment." Looking though the documentation, and Googling for info, it seems that I shoud be setting the thread to "STAThreadAttribute". I am confused because it says to do it in the main() function and I don't have one. I have two classes and I set both of them to <System.Serializable()>. Does that have the same effect I also went through and set every Sub to Public Shared just to b ...Show All

  • Fwank79 gridview refresh

    Hello! I have some code in atlas and everything works ok exept after refreshing my gridview don't get any new values. Let me explain i have open my IE and if somebody insert some data i should view this new data after refreshing. I put my code bellow: <atlas:TimerControl runat="server" ID="timerTicker" Interval="20000" OnTick="refresh_Tick"></atlas:TimerControl> <atlas:UpdatePanel ID="p1" runat="server" > <Triggers> <atlas:ControlEventTrigger ControlID="timerTicker" EventName="Tick" /> </Triggers> <ContentTemplate > <asp:GridView ID="GridView1" runat="server" AllowPaging="True ...Show All

  • Pure Krome ComboBox hides mouse cursor when typing in text area.

    There is an incorrect behavior with the winform combobox. When I write on the text area of the combobox the cursor disappear, but if a move the mouse, it appear immediately. This is not a big problem, but, when I write and the cursor disappear and then I press F4 to dropdown the list, then if a move de mouse, the cursor doesn't appear until I close the dropdown list. I need a workaround to this. I hope I was clear enought, english is not my first languaje. Thanks in advance. I've tried to make the example the simpler than I could. I tested it with frw 1.0 and 2.0 using System; using System.Drawing; using System.Windows.Forms; namespace WindowsApplication1 { /// <summary> /// Summary description for Form1. /// </summary> ...Show All

  • Binary Threading and NewRow

    Hi there Just wanted to get something straight here. With all the talk of not accessing forms components from threads outside the one that created the component, I was wondering if its OK to create a new table row using NewRow or NewXYZRow (the strongly typed version) from another thread and then add it to the table with either the main IF thread or another thread. The table is hooked to a DataGridView so I'm not sure if that means its bad voodoo to do the different thread thing Just to make sure I don't confuse anyone, I'm not talking about multiple thread access to the table at the same time, I just have a thread that recieves info off a TCP port and want to create a new row, then pass the new row to the main thread using Be ...Show All

  • larz ContextMenuStrip / MenuStrip problem

    Hi, I'm having a problem with ContextMenuStrips / MenuStrips. When I hide one item in the menu and then use the keys to navigate the menu scrolls for some reason. Thanks. hi, i didn't understand your question well, what do you do to hide one item, and what do you mean by the menu scrolls best regards Hi, menuItem.Visible = false; As for a description I created a small movie that shows the problem: http://homepage.eircom.net/~mariusmihalec/bug/vsbug.htm Thanks ...Show All

  • Brian Driscoll Common Language Runtime Debugging Services Application has generated an exception that could not be handled

    Our custom got an error when startup our .NET windows form application. XXXXX.exe - Common Language Runtime Debugging Services Application has generated an exception that could not be handled Process id=0x654(1620), Thread id = 0x5b0 (1456) Click OK to terminate the application Click CANCEL to debug the application If they click on "CANCEL" then following error message appears: Registered JIT debugger is not available. An attempt to launch a JIT debugger with the following command resulted in an error code of 0x2(2) Please check the computer settings cordbg.exe !a0x654 Click on Retry to have the process wait while attaching a debugger manually. Click on Cancel to abort the JIT debug request We can not duplicate this p ...Show All

  • MarkNicholson ListViewSubItem Bounds

    I use a ListView control and need to get the Bounds rectangle of a ListViewSubItem. I used the System.Windows.Forms.ListViewItem.ListViewSubItem.Bounds property to get the rectangle. This works fine with exception of the first ListViewSubItem (ListViewItem.SubItems(0)) of the ListViewItem. The Bounds rectangle of the first ListViewSubItem is equivalent to the Bounds rectangle of the ListViewItem. Is this a bug, a common functionality or do I use it in wrong manner Does exist a better solution to get the Bounds rectangle Here's an example: If lListViewItem.SubItems(0).Bounds.Width > CInt (GetTextSize( Me , lListViewItem.SubItems(0).Text)) + 1 Then Exit Sub End If Thanks Peter, I ...Show All

  • nils49 DataBinding, DataTable and DataColumn questions

    Hi all, i have a few quetion to discover, bee so pleasant to explain me how i can do: 1) I have combobox and data source for one this.comboBox1.DataSource = this.authorsBindingSource; Now I need to add to combobox an row, what not exist in bindingSource (supoose I want do display in combobox an additional row "not defined") How I can do this --------------------------------------------------------------- 2) How I can to mark a rows in dataTable, so that ones not will be stored in database then this dataTable updated. I mean: //myDataTable - DataTable object // I want that this row shouldn’t bee stored in database, but exist in //dataTable (what I should do) DataRow dr1 = myDataTable.NewRow(); ///initilize row columns with ...Show All

  • Dawa Tsering How to make virtual text in the Textbox.

    Hello All, If i'm setting Text properties for Textbox, and i click dropdown button, appear a virtual text like "Press enter to begin new line" in the middle of the box. and then when i type a char on the keyboard the virtual text disappear. How it work if i apply for textbox in my application. Thank very much. not sure I follow exactly. I guess by default you will have this text written into the textbox. On a keypress event for example, check to see if this is the default "virtual" text and if so, then remove that text. There will be a problem however, things like perhaps culture issues etc... Really if I understand correct, in the textbox properties just set the default Text ...Show All

  • Rakesh-BNPP problems with the webBrowser control and focus

    Hi, I have a form which consists of a webBrowser control (over the whole form) and a listBox and a button, but those 2 are hidden on start. I'm using them for debugging and I want to toggle their visibility with a keyboard shortcut (alt+ctrl+X in my case). So I'm using the keyDown event of the form and keyPreview is set to true. Everything works as intended until I click somewhere into the webBrowser control (i.e. it gains the focus). I've tried alot of things, like using the gotFocus event on the webBrowser and then using this.Focus() to give the focus back to the form, but nothing work. It seems like the webBrowser control doesn't want to give the focus back.. I already did alot of googleing and also searched here but I haven't found any ...Show All

  • LouArnold extend binding navigator service

    Hi I want to add two button controls to the binding navigator for query by example first button: filter , in that case , all controls of the form are cleared , and user can enter values in the controls. second button: apply filter, when user click it , the filter which is composed by reading every control value is applied to the base table and data is reterieved. i want to add these services to the binding navigator . can you help me thanks in advance Thanks for quick reply. Actually i want to know the code written inside click event to implement filter and apply fiter as in my first post. Can you help me . thanks To add custom control like button, checkbox,co ...Show All

585960616263646566676869707172737475

©2008 Software Development Network

powered by phorum