Answer Questions
Greg Shelton How to "Select All" then "Copy" from another programs page?
Hello. I have a program running on my PC. The program retrieves data from a server every 30 seconds or so. I can right-click on the programs data page and copy the text content to the clipboard. Now I'm writing a windows forms program that  ...Show All
Kanika How to fade in and fade out a splash screen ?
Can anyone tell how to fade in and fade out a splash screen and make the splash screen to display a time in secs Thx Kenty, You can do that using a Timer Control. In the Tick event, you can increase/decrease the Opacity property of your form. For example, create a new project and add two forms on it, frmSplash and frmMain. In the frmSplash, add one Timer Control. In the event Load of the f ...Show All
Nikhil Agarwal Click once not working
Hi, I'm trying out the click once, but eather I forget somethign or eather it is not working yet. When I try to open publish.htm it only opens an xml file. When I thry to publish on local htt (no HTTP server) then it seems to work also. I have no idea what I do wrong. I have uploaded a project (it is just a main form) to: http://www.mestdagh.biz/kieken If someone can see and eventueally can tell me Thanks.. It open ...Show All
Mahesh_MVP Movement in Terrarium
I've been playing with making an Herbivore and have quickly leaned that one of the most fundamental parts of this game is also one of the most difficult. I’ll make this brief so I don’t start sounding too whiney. Can one of the  ...Show All
Smallmaj transparent labels
I have a control with a graphic. I put some labels over it, and set the background to transparent. This doesn't mean the graphic shows through, it means the background color shows through. Do you know how to get a truly transparent background o ...Show All
dave dave tableLayoutPanel bugs
i have an tableLayoutPanel on my form which CellBorderStyle property is set to "Inset". it takes seconds to render this panel. but if i set CellBorderStyle property to "None" it is many times faster. this must be a bug. Another bug that tableLayoutPanel has is sometimes you cannot drag and drop controls in it, you have to edit Cell property. But becareful while editing, cause you cannot edit this property like width and he ...Show All
foxquote Which control to use if..
I want to make a program that edits files that are structured similar to XML files, but for each little "node", there is a key name, and a key value. I want it to work like the TreeView control, but it needs to have a second column that shows the values of the nodes, as well. Is there any control I should use to do this other then making my own I don't want to have to do that if I don't have to. Thanks Why don't you use a treeview con ...Show All
khurrammughal Debugging a VB.NET "Windows control"
Hi, I created a simple "Windows control", with a few properties, in VB.NET (VS.NET Professional). To be able to debug my control, I added a new "Windows Application" project. I added my "Windows Control" to the references section of t ...Show All
captainstorm How to code a procedure to select all items in list box?
How to code a procedure to select all items in list box [DllImport("User32.dll")] static extern int SendMessage(IntPtr hWnd, int uMsg, int wParam, IntPtr lParam); const int LB_SELITEMRANGE = 0x019B; SendMessage(listBox.Handle, LB_SELITEMRANGE, 1, (IntPtr)(listBox2.Items.Co ...Show All
Mando SaveFileDialog
What am I missing, because it won't save. private : System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { saveFileDialog1->DefaultExt = "*.rtf" ; saveFileDialog1->FileName = "Untitled.rtf" ; saveFileDialog1->Filter = "Rich Text Format (.rtf)|.rtf" ; saveFileDialog1->Title = "Save File" ; saveFileDialog1->ShowDialog(); } yeah I kno ...Show All
Joe Buys Window Resize
Hello all! I was told that if I have a form on the screen and if I want the controls in it to be readjusted when I maximize, C# 2003 does it very easily. How is that possible Thanks in advance Starting VS2003, most of the controls have properties called Anchor and Dock. These 2 properties combine allows you to handle almost every resizing scenario. Anchor specify to which side(s) ...Show All
João Pereira sending mouse move message
this is probably the simplest of things to do. I have a control in the middle of my form which I'd like to be able to move the mouse cursor w/ the keyboard when the mouse enters it. I'm watching OnKeyDown for the arrow keys, and need to move the mouse pointer. how exactly do I make the mouse move inside it can I send the WM_MOUSEMOVE message and if so who's handle do I use. I'm open to any way to make it happen. this is for a tool ...Show All
darkfreedom Setting a datagridview cell to null
I'm working with a datagridview / dataset /sql and I'm wondering how I can set the textbox cell to a null value. I thought this would be easy, but I tried setting it to a null and "" with no success. I'm using the following code: this.datagridviewx[currentrow][columnname].Value = ""; Thanks for any insight! Sorry, it's from VB world. this .dgvDataGridView.CurrentRow.Cells[ "sCo ...Show All
MW200675 Display customized message when no value is return to DGV
hello all, anyone has any idea how can i display my own message like "There is no data" instead of just a blank space when DGV displays rows from datasource. tq. You could easily disable the DataGridView control and display a message box if that would fit your need. What exactly are you trying to accomplish If you want to replace the data in a cell if a specific value is null, I ...Show All
Richard L. Irwin How do you intercept the Minimize button?
I want to send my application to the tray icon bar. In the SizeChanged event handler, check to see if the WindowState property on the form is set to Minimized. private void aForm_SizeChanged(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Minimized) { // Do stuff here } } Hope that helps. Bruce Johnson [C# MVP] http://www.objectsharp.com/blogs/bruce Actually there might be a simpler way... when the ...Show All
