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

Software Development Network >> Windows Forms

Windows Forms

New Question

HtmlElement class
DetailsView Multiple Records
Unreachable Form objects between methods
cONTEXTmeNU ON lEFT cLICK
dataview count doesn't shows properly.
Associate Data Source with CurrencyManager ??
Control 'lb_info' accessed from a thread other than the thread it was created on.
RichTextBox question
Arrow Keys on a User Control in .Net 2.0
Dynamic Filling of TextBox AutoComplete not working

Top Answerers

Douglas Nakamoto
Ernie Thomason
kiran1234
luca82
Rick Penner
wanwiz
basedissonance
VoiceOfExperience
mike11d11
nobugz
sitemap
Only Title

Answer Questions

  • Pete Atkinson Hi!! plz tell me how load a bitmap on the form by ./.....

    Hi!! plz tell me how load a bitmap on the form by ......making the formborderstyle to none............n how to paste customise buttons on the bitmap........ well.....i have done it.......i dont want to change the backgroundcolor but i want change the conventional look of forms by my own bitmaps,...i use graphics and loaded the bitmap on forms now.....i u see the minmise, mazmixe, close buutons are not seen on the form.....instead i see my bitmap.....i paste and button on it and change the image of the button ........in that buttons code i used the function Close(); to close my bitmao form are there any functions to minimixe and maximize my bitmaps....thank u................ are you talking about setting the background image of ...Show All

  • Pikker1981 Hide method doesn't work on program's first execution

    Hi there. In my application I have a main MDI form (called frmMain) and a login form (frmLogin) . frmMain is the main module of my application. I have the following code on frmMain load's event: this.Visible = false; this.Hide(); _frmLogin = new frmLogin(this); _frmLogin.ShowDialog(); When I execute the application for the first time on the current session, frmMain loads but remains visible and then frmLogin appears but frmMain is still there. Ok, I close the application and then run it again. This time frmMain hides correctly and frmLogin is the only form that is visible. If I restart the computer and attempt to run the program, same thing happens. Important note: if I run the program on a slow computer the problem always occur. Why this ...Show All

  • cgn help in windows service

    hi , here is a little problem i am facing and it is urgent please help me , i have a windows service that updates records in a database , that database is also used by a gui application now , the path of the database is relative to my installation of windows service application in an app.config file it is something like this : <add name="projectConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=database\project.mdb" providerName="System.Data.OleDb" /> </connectionStrings> now when i install the service it looks for the database in system32 folder and does not get the database since a windows service runs under system32 folder it looks for the database ...Show All

  • UnknownScripter Remove background from GIF Image

    Hello, Can i remove white background from GIF format image using .NET .I tried by using Bitmap class's - M akeTransparent method, It won't remove the background. If possible another way, Please let me know the procedure. Thanks lot. Thanks, Vivekanandan how are you actually using the bitmap class You would probably need to create a completely new bitmap and then draw the gif file onto it with the transparancy stuff set. Check this thread ... Thanks.it doesn't work my GIF file which is white background after MakeTransparent() it remains the same. Thanks.How to draw the gif file onto with the transparancy stuff set .Please give your gui ...Show All

  • Guns I can't figure this "Enter" thing out! Please help.

    Ok, so I am creating a web browser. Everything is fine and dandy, except I wanted the capability of the user pressing "Enter" after they type in the URL instead of having to go click on "GO" button. Thats nice... So I go to the properties of the combobox, select "Keydown" and create a new keydown event. In that event, I write: webBrowser1.navigate(combobox1.Text); I run the program... and It works alright! However, it automaticly tries to connect the the URL before I even get it typed... So by the time I type in www.yahoo.com , it's already navigated there without me pressing the enter key. This is a neat little thing, but I don't want it to work that way. Is there some kind of Break I can use to stop the URL in the U ...Show All

  • OswaldFig datagrid (GetChanges) - Extracting Data **Cols/Rows**

    Hi,   I have a datagrid [Winforms, C++] and what I want to do is when a user has finished updating any data they can click a button.   On the button press I want to call the (DataSet) GetChanges function which checks whether any rows in the datagrid have been modified.   If there has been changes, I would like to loop through the changes to see if the data entered is valid.   When it loops through the rows I want to get the value of the first column of the current row, I then would like to get the value of the second column in the current row which I can parse.   I have written a little code [C++] code, although I'm not sure how to get the row values. [See below]     DataSet *myDat ...Show All

  • Bartjj Handle CRTL+A with a ListBox

    I'd like to handle CTRL+A in my ListBox to select all the items. I check for Keys.A in the KeyDown event of the ListBox and then check if control was pressed. If so I select all the items in the list. This is working. However even though I'm setting e.Handled = true the key is bubbling up and then it selects the first item in my list that starts with the letter A thus unselecting everything else. private void lstImages_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { ... other key checks removed ..... case Keys.A: if (e.Control) { SelectAll(); e.Handled = true; } break; } } Okay, the li ...Show All

  • Pontius DataGridView - LastDisplayScrollingRowIndex ?

    Hi To get the first displayed row index you use dgv.FirstDisplayedScrollingRowIndex. But how about when you want to get the last displayed one I want to have a certain row displayed, if it is NOT already displayed: if (rowIndex < dgv.FirstDisplayedScrollingRowIndex || rowIndex > dgv.LastDisplayedScrollingRowIndex) dgv.FirstDisplayedScrollingRowIndex = rowIndex; Kind Regards I missed the GetRowCount function It worked perfectly, thanks! Isn't this the same intRows = dataGridView1.Rows.GetRowCount(DataGridViewElementStates.Displayed); intBottom = intRows + intTop - 1; I'm just curious why you counted the columns and cells :) Kind Regards Maybe th ...Show All

  • Lejing Updating public value via pop-up dialog

    Dear All, I have declared a public variable in my main form. Then upon pop-up dialog I want to be able to see the public value and update in the pop-up and later the update should be able to be seen in my main form. How to do it ya There are numerous ways to do this. Try passing "this" to your Dialog Form, so it would be something like this: public class MyDialogForm : Form { MyMainForm CallingForm; public MyDialogForm(MyMainForm oForm) { this .CallingForm = oForm; } private void MyMethod() { this .CallingForm.MyProperty = "xyz" ; } } And in your main form, you'd c ...Show All

  • Vladimir Sapronov how would i import my application database into sql express ?

    I am trying to figure out how to update the download URL location the Visual Studio Setup & Deployment boostrapper uses when you select the SQL Server 2005 Express edition as a prerequisite and choose Download prerequisites from the component vendor's website - it is still downloading the RTM version of SQL Server 2005 Express and I would like it to use SP1 instead. Does anyone know how to do this Thanks in advance! EDIT: I have not got the SP2 going yet but my tired eyes were clicking the MSI not the Setup.exe and so that is why I say below the prerequisites were not being installed, my mistake, sorry. hi, has anyone got this new SP2 vista compatible going yet I followed the SP1 hack abo ...Show All

  • mu2 Link from 1 Form to another.

    Hi, i new to Visual Studio, basically I have 2 forms in my project, "Form1 & Form2". I want to know how to link from Form1 to Form2 at runtime. I need it to work as follows, Form1 has a button which when clicked closes Form1 & opens Form2, I tried googling it but cant find what Im looking for, any help would be much appreciated!!! Rgds David Im sure either of the 2 above would, I dont have access to VS rite now but tell me would the code below for the Form1 Button1 click event work. button1_click(object sender, EventArgs e) { Form2 frm = new Form2(); frm.show(); } Would the above piece of code make Form1 invisible & inactive, whilst making Form2 visible &a ...Show All

  • Gmukwewa Combo box problem

    hi im having a little problem with combobox control the problem is that when i show another form on the dropdown event of combobox then the combobox dosent remains drop down... but when i show a dialog (.showdialog) the combobox remains drop down even after the dialog box is closed...... is there any way i can close the drop down of combobox without clicking it.....on some event of my dialog box thanks in advance Sorry if i missunderstand you. I was thinking on your own dropdown part of combo box. Nevermind. Can you tell as which event you use to call second form, or even better the source. im displaying second form on the dropdown event of combobox of first form now after i close the second form ...Show All

  • BlueBeetle from string to form

    Suppose you have the name of the form : string fname = "FormSomething"; How do I create a form object with fname as name Apparently this is not enough: Form f = new Form(); f.Name = fname; Also tried: f.CreateControl(); Can anyone please tell me how to get the form object Thanks!!! Change your CreateForm method to this one below. The idea is that if a default constructor exists, just use it as your current one does. Otherwise loop through the available constructors and try to create the required parameters. This works only if the parameters do have a default constructor at least or if they do have a complex type as a parameter with a non default constructor, but the parameter is allowe ...Show All

  • anu_ooo DataView Sorting

    Hi: In this code: DataView dv = new DataView(this. myTable ); dv.Sort = "Name"; dv.RowFilter = ""; dv.Sort = "Time"; Does anyone know where can I find the code for this method: dv.Sort I would like to overwrite it with my custom sorting. Thanks very much in advance. Maybe this will help. ...Show All

  • Rajat Solanky &amp;#40;MCSE, MCSD&amp;#41; Stored procedure with combo box?

    On a Windows form, I have textboxes to show data rows of a main table. The main table has a foreign key to a minor table which is a list of status values ("Pending", "In Progress" and "Done"). The object is to display the status in a listbox or combobox. I want to know how to do this. Some notes: 1) The code to set up connections, DataAdapters, CommandBuilders, bindingsources, Datasets, etc works fine. 2) I would like to set up any constructs in code rather than with a wizard. 3) Unless I have to I want to avoid creating the relationship between the tables in the wizard. 4) I get the sense that one Dataset can access and update both tables, but I don't know how to tell the dataset about additional tables. ...Show All

828384858687888990919293949596979899

©2008 Software Development Network

powered by phorum