Answer Questions
Sandy_MS GotFocus Event Doesn't Fire
I was facing a problem getting a Form to fire its GotFocus event so I started a fresh project just to test it. private void Form1_Load( object sender, System.EventArgs e) { this .GotFocus += new EventHandler(Form1_GotFocus); } private void Form1_GotFocus( object sender, EventArgs e) { System.Diagnostics.Debug.WriteLine("Form1 got focus!"); } And the GotFocus event doesn't get fired no matter what I did to ge ...Show All
HuberSepp FormView, SqlDataSource, ControlParameter "Oh my!"
Hey There, Having a bit of trouble connecting a ControlParameter to a Control that is inside of a FormView. I get the message "can't find control". My work around is a bit ugly. In the Inserting event ... I have to do a Page.FormView1.FindControl("control_name"). Do the cast, grab the value and stuff it into the standard "parameter" myself. I can't even do a Page.FindControl("control_name" ...Show All
powbocha Method '<method>' cannot handle Event '<event>' because...
I am getting the following error where ntfHelpDesk is a NotifyIcon. <color="firebrick">Method 'ntfHelpDesk_DoubleClick' cannot handle Event 'DoubleClick' because they do not have the same signature.</color> Any help is appreciated. Just for the record,&nbs ...Show All
The Beast Exporting DataGridView to Excel
Hi, can someone tell me how I can export a DataGridView to an excel spreadsheet and do row coloring, etc. Also, I want to be able to export to Excel 2000, XP and 2003 Thanks, Tom Thanks, for coloring I meant coloring the rows in Excel, not in the DataGridView. However, I accomplished all that now with the excel interop. That way it's easier to leave out CheckBoxColumns, etc. and color the cells/rows in Exc ...Show All
Zaid Vb TabPages and UserControls growing to over 30,000 pixels in Width and Height in Designer (2005 beta 2)
I’m having some major sizing issues with controls in designer view. To be specific, it seems that controls within container controls such as TabPages will randomly outgrow their parent controls to a very large size (~30,000px! ). Even when trying to manually edit the designer code, as soon as switching back to design view, the weird numbers are back. Here's a link to a screenshot: http://www.bugben.com/showcase/30000.jpg H ...Show All
Natasja how to embed child datagrid from its parent
Hi, All, posted a thread earlier regarding nested tables on .net data grid, guess, the simple goal that I am looking for is: for a .net datagrid on a win form app, how can I embed a child datagrid for each data row - so I ca ...Show All
Radu Calinescu Adding combo button on a textbox
I'd like to draw a combobox button on a textbox control (in its client area, so that the button seems to be on the right side). I need to use it a value search function. How can I do it Thanks. Try creating a UserControl. That's what they're for :) Usercontrol is the best choose. just like comboBox . Yeah, it sucks On all kind of controls you can override the paint with the exception o ...Show All
De_Vaddrr Tracking mouse movement
Is there any way to track the mouse movement for the whole PC What I'm trying to do is write an application that goes idle after a certain amount of time and "wakes up" when the user sits down at the PC and moves the& ...Show All
Dan Green Datagridwiew with combobox...
Could you please help me how to add combo box in typeddataset datagridview control: I want to add to add one combo box and ACNAME Filed when after selecting i want to display another coloumn in the same row ACCODE field value. If any body have done in Datagridview in vs2005. Pleae take a moment to write me a answer. IT will be highly appreicated. MUBARAK SHA Hi. Please see the below link. Hope this might be of some help... ...Show All
Sabbadin datagridview and checkBox cell
I've a mysql database, that is connected through MySql Connector. Database works fine for all insert, delete update. In some tables of my database, i've some records that are marked like "true" or "false", and i need to show them on a datagridview by a checkBox, that must be checked if value in table is true and unchecked if false. I try like follow: myAdapter = new MySqlDataAdapter("SELECT LastName, Values FROM myTable", myConn) ...Show All
LaBomba Owner Draw ContextMenu
Hello everybody, I have a problem. I can create owner draw menu but only MainMenu. Contextmenu doesn't want to be created. Can anybody write sample of it Sorry for my bad English. I believe you have to set the OwnerDraw property of each menu item to True. Then what I usually do is create one sub to handle all of the items for example: Private Sub MeasureMenuItem( ByVal sender As Object , ByVal e As Mea ...Show All
Kriss Panels in the StatusStrip
Is there any way to add panels to the StatusStrip , like there is with the StatusBar control It seems the StatusStripPanel class from the Beta was removed. I can't find any information regarding why it was removed. Thanx in advance. Hi WNC, By default, the AutoSize property of ToolStripStatusLabel item is set to true. If you want to change the width manually, I think you have to set it to false, so that the width property will wor ...Show All
Tryston02 Need a little Sockets help...
I'm just trying to teach myself how to get the different server lists from the master gamespy server. The problem I'm having is that it seems as though my code can only get the first 1024bytes of the returned list. I can manually change&nb ...Show All
yavvie How to customize the selection border of selected control in VS2005 (WinForm)
Well, What I need is I make a custom control in the winform, and when drag it into the form in the design time, I don't want this control has a selection border which is a rectangle with small boxs can resize this control. I once used the code like this, public class MyControlDesigner:ControlDesigner { public MyControlDesigner() { // // TODO: Add constructor logic here // } public override SelectionRules SelectionRules { get ...Show All
fristi datetime value doesn't display on the datagrid
hello everyone, I have a DataTable which bind on the DataGrid. My problem is the field with a datetime value doesn't display as datetime format, only date format display. the datatable was fill from a datasource from sql server. <SELECT EMPNO, MEMBER_DATE  ...Show All
