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

Software Development Network >> Windows Forms

Windows Forms

New Question

Sending an Event
disabling click event while a process is running
DataGridViewButton
WebBrowser control and html document(simple question)
MDI: getting form handle affects child focus
TableAdapter - reconfigure main query changes all scalar queries
ToolTip Owner Draw
Formatting Rows in Datagrid based on data in the coresponding row of datatable
DataGridView - Editing Cell that is sorted.
Before closing form, save current working in Custom UserControl into DB

Top Answerers

ssauerw
TWild
Atiz
Richard Hough
Allan Huang
Denny B
YewMing
Whoisit
pwhitaker
Sandro Peixoto
sitemap
Only Title

Answer Questions

  • Blueforce Publishing a windows application

    Hi, I have developed a windows application. Once the application is finished i try to publish it using publish MyApplication. It worked on my local IIS then i tried to do it on network IIS and it failed eventually get it though. Now the problem is when I tried to install it on 2 other PCs it just gave me error regarding the Global access cache. The error was that the application can not be installed because the Microsoft office interop v 11.0 something has to be installed in GAC. My question is the publishing the same as Click once deployement and if i just publish it do i have to know all the assembilies What other options do i have Thanks in advance. I have tried making it enabled annonymous access. The default page ...Show All

  • Curt Broyles Using DrawToDC with .NET 2.0 WebBrowser Control

    I am trying to use the DrawToDC function to capture a bitmap image of a WebBrowser control. I have found several examples but they all seem to use an earlier version of WebBrowser that gave an interface to IHTMLDocument2. I cannot obtain an IHTMLDocument2 interface form the WebBrowser control. When I try to follow the example with a WebBrowser control I get conversion erros between System.Windows.Forms.HTMLDocument and IHTMLDocument2. Does anyone have a relevant example I can follow Thanks for the help. Amazingly simple, thanks. I tried it and I ran into one problem that I solved by calling DrawToBitmap on the WebBrowser component itself instead of on the form. I assume the issue is a .NET bug as the result ...Show All

  • Duke of URL Help with TreeViews

    So there might be a property somewhere I'm not seeing, but I figured I'd just come and ask anyways. I have a treeview that shows a list of items that are currently being rendered in a scene. If I remove an object from my scene as well as the tree view, my tree view control automatically selects another item that is in the control. Example, items 1-5 are being shown in my tree view. I delete object 3, then object 4 is automatically highlighted and selected in my tree view. Is there a way to prevent this behavior After you delete your tree node...either preselect a node (the first node in the tree in my example) or set the selected node to nothing so that no nodes are selected: Me . TreeView1 . Selected ...Show All

  • Lasse.Knudsen Focus mystery

    Dear All, I have this MDi application in one form upon loading I load the combo box from select statement of database then I put cb1.selectedIndex =0; cb1.focus(); This works fine and the first element get selected. The funny part I use the same code in another form and I put cb2.selectedIndex=0;cb2.focus(); and it doesnt get the foccus. I checked via the cb2.Focused and it shows false Anybody knows this problem. Thanks. Probably because its TabIndex property was set to 0. Dear Nobugz, So now i tried using the focus in a function also but it still doesnt work. What is the possible problem ya Thanks. Dear Nobugz, But ...Show All

  • kmote Mouse inside or outside the client area

    Hello everyone, How can I check if the mouse is inside or outside the client area.. To be more specific I have tried to make a calculation for inner controls but this do not work for the Form. I also tried to add a MouseLeave event which sets the mouseInside boolean to false and a MouseEnter event which sets the same boolean to true.. But interestingly when my mouse is over a control inside the Form the MouseLeave event is fired.. I am doing a drag-drop operation and I need to know when the user tries to drag something outside the main form. Is there a way to achieve this Thanks in advance and best regards ! About a year ago I blogged about this on my companies blog. Unfortunately the blog no longer exists but I search ...Show All

  • Jim Dykstra dfsvc.exe has encountered a problem and needs to close

    I am getting the "dfsvc.exe has encountered a problem and needs to close" error when trying to install a clickonce app for a user that does not have admin rights. It works fine for admin users. I know other people have had this issue but I have not seen a clear cut solution. Does anyone know what is going on. Also, is there a log file that might have more information. I checked the event viewer on the machine and I see .Net errors with the following text: EventType : clr20r3 P1 : dfsvc.exe P2 : 2.0.50727.42 P3 : 4333af20 P4 : mscorlib P5 : 2.0.0.0 P6 : 4333ab80 P7 : 3450 P8 : 29 P9 : system.argumentnullexception Thanks Hello Microsoft Are you home It's 2008. Please fix thi ...Show All

  • HBWGeorge DropDown Tree Control

    Hi All, I'm looking at implementing a dropdown combo box that drops to a treeview, similar to that used in Microsoft's Save As dialog boxes in the project I am currently working on. I have done some searches through Google and have not been able to find what I am looking for. Does anyone have any suggestions as to good products that I could use Many Thanks, TT Visit the following locations for an open source controls that matches what you want: http://www.codeproject.com/cs/miscctrl/customcombos.asp http://www.codeproject.com/cs/miscctrl/ComboBoxTree.asp Hope this helps! ...Show All

  • P.Johansson How to read the data in textbox by using datareader

    I started to learn C# recently. I connected the SQL server through SqlClient and to read the data I am using datareader  (For read only purpose). Everything is fine until I try to see the data in the text box by using datareader How can I see the data in the text box by using datareader This is my code private void button1_Click( object sender, EventArgs e) { String lstr; SqlConnection MyConnection = new SqlConnection ( @"server=Raj\SQLEXPRESS;Initial Catalog=Explorer;Integrated Security=True" ); MyConnection.Open(); SqlCommand MyCommand=MyConnection.CreateCommand(); MyCommand.CommandText= "Select * From tblEmployee" ; SqlDataReader MyDataReader=MyCommand.ExecuteReader(); w ...Show All

  • Deathstryker Threading Problem

    Hi I have a winforms application which does some database processing and updates a progress bar. As it does the processing, it also writes to a log file using log4net. I would like to add a Multiline text box to the application which can be used to display the a "tail" of the log file. How can I do this Sorry I should have also mentioned that I have Tail class which would do the actual tailing of the log files. As part of this class, it waits for a change in the file and it there is a change, then takes the new data and calls a delegate with the new data. The delegate is then supposed to append this new data to the Text box on the winform. The problem is that the textbox on the winfor ...Show All

  • Ritesh Singh How do I animate a button click from code?

    This code preforms the button2 operation with button2.PerformClick(), but the user has no indication that button 2 has been clicked. How do I get button2 to go down and back up public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { Console.WriteLine("button 2 was clicked."); } private void button1_Click(object sender, EventArgs e) { button2.PerformClick(); } } Thank you B14 public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { Conso ...Show All

  • Novak mess up lisbox during looping.

    I don't know if it's a bug or not but i have a listbox with some items in there. on the click event of the listbox i put a while loop. what happens is that the listbox automatically highlite the last item. You can test that on ur VS2005. Is there a way to fix that I tried it. The listbox got confused and just kept selecting the item that was under the mouse cursor. Hmm, bizarre event handling code creates bizarre behavior hmm well basically when i click(select and item) it will trigger the click event i need to keep sending out some data to a hardware target until a new event happens ( application.doEvents() to exit this loop). Well i think the point is not what i want to do with it, the ...Show All

  • antigone Web Browser CTRL+ Toolbar problem AND Status Bar Help

    I am working on a browser. I have a toolbar with the address bar on it. On most browsers, you can enter (for example) google then press CTRL+ENTER and it'll put www.google.com . I implemented that, and it worked fine before I put the address bar on the toolbar. Now when I press CTRL it selects the File menu. Can I get it to intercept the CTRL Also, I made a status bar. I want to know how to get the current status of the webbrowser component (not the progress--I already did that). For example, in most browsers when you load a page it will say "Opening Page [page]" "Downloading picture [pic]" etc. Is there a way to do that in Visual C# I have Visual C# 2005 Express Edition. You are d ...Show All

  • almondelm MERGING CELLS IN DATAGRIDVIEW

    Hi all, Is it possible to merge cells(rows) in DatagridView And How Thanx Hello sir, Where should i write your given Merge cell code means in which event exactly can u pass me any code to merge cells in datagridview thnx in advance Hello, It is possible but you need to do tons of codes to achieve that. Painting event should only be ok if you want to merge content within control. Maybe the best for you would be to look for some custom components such as componentone true dbgrids or custom flex grid control. They might have solution for you.... Regards, Hi here is what I did with my datagrid, Create datagridview with i.e. 5 columns and 5 rows. Then add code below to paint event of D ...Show All

  • jon albinini Taskbar Toolbar

    Bar bar bar. Ok ladies and gents, could you point me in the direction of where I should be looking for info on making an app act as a Toolbar that resides solely in the Taskbar I'm specifically looking to create an app that will pretty much be a TextBox and a Button residing down there. I've searched the forums and CodeProject but haven't seen anything helpful so far. Thanks! Well darn. Ok, next step: where should I look to get started doing this with <shudder> unmanaged C++ Links would be very much appreciated. I have done C++ before so we don't need to get into links like "here's what main does!" :) Thanks again! p.s.: My "<shudder>" above was because I'm so unfamiliar right now with unmanaged co ...Show All

  • FormerJAVAProgrammer Keep control form uppermost

    I call form2 from form1. I would like form1 (control form) to always be uppermost. form2 should always appear under form1 in terms of order. Although I have set form1's toplevel = true and topmost = true, when I call form2 it still appears above form1. How can I resolve this Thanks in advance Thank you. This sounds strange but there is no .show option for form1 in C# Am I missing something Also, doing that would mean you don't have to fiddle with TopLevel or TopMost... If you make form1 a child of form2, form1 will always be "on top" of form 2. You can do this by sending a reference to form 2 to form 1's Show method. E.g.: form1.Show(form2); Of c ...Show All

5678910111213141516171819202122

©2008 Software Development Network

powered by phorum