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

Software Development Network >> Windows Forms

Windows Forms

New Question

Looking for best approach for MSMoney Look-A-Like [VB]
menu item and AddHandler?
How do I hook up a MouseDoubleClick event to a DataGridViewComboBoxEditingControl hosted in a Datagrid view cell?
Handling control non-client area in the designer
ListBox Problems
Setting STAThreadAttribute
somebody plz help
regarding microsoft.office.interop.excel(how to copy a excel sheet single cell content and paste them to cell present in another
How to handle JavaScript event in WebBrowser control?
Windows MessageBox: limit to number of lines?

Top Answerers

flandersit
Christopher Ireland
Nagendra Rao S.V
sean_kirkpatrick
Leo Leys
Mathava Gnanananthan
Rhubarb
R Raghu
velibicer
Jo_
sitemap
Only Title

Answer Questions

  • Dave9999 Column header painting - text margins

    Hi, By default, there seem to be 6 pixels between the column divider and the first letter of a column header. I'm trying to reproduce the exact look & feel of another application, which has 3 pixels in its grid headers. So I need 3 pixels, (left and right), not 6. Is there an easy way of setting this I looked at the FAQ, which had a section on "Row Pre Paint and Post Paint". I'm not familiar with GDI painting, is there any simple code I can use to get this effect I don't really have time to try myself at the moment... Thanks! Hi,goPlayer Try something like this: DataGridViewCellStyle style = new DataGridViewCellStyle ( this .dataGridView1.ColumnHeadersDefaultCellStyle); Padding padding = new Padding (); padd ...Show All

  • hazz Programicaly creating a ShortCut

    In my Windows Forms application I have created a self-exracting archive (Program Installer) for my main application. How would I go about creating shortcut icon that points to my applications executable file I looked in the System::IO::File class but couldn't find anything and don't know where else I would have to look. Thanks much! (I am making a transition from C++ to C#, so you will have to excuse my obliviousness to things like this.) :) C# doesn't use header files. A rough equivalent is Add Reference in the Solution Explorer... I am using VC# Express Studio so I don't believe it has the "Setup Project" in the Express SDK. And the second link you provided is broken. Another quick question... ...Show All

  • PsyCadelik selecting more than one rows of datagrid in framework 1.1

    Hi, I am using framework 1.1 How do I select more than one rows in a datagrid even if I am able to change the row color of datagrid then this will work too.. Thanks, The datagrid does support having more that one row selected. Take a look at the datagrid's Select , UnSelect , and IsSelected methods. ...Show All

  • Tony_NTFY dataGridView; selecting cells

    When the user presses the enter key, I want the next cell (in the same row) to be selected. How can I achieve this in a dataGridViewControl   I didn't find any property about the 'enter' key behavior. So, I think this can be solved overriding the onkeydown method on your datagridview, or handling the datagridview's keydown event on your form. To select the next cell you just do this: DataGridView1.CurrentCell = DataGridView1.Item(DataGridView1.CurrentCell.ColumnIndex + 1, DataGridView1.CurrentRow.Index) I hope I could help you. I had a similiar issue which I solved using the code below. I could not get the desired effect by simply overriding OnKeyPress, c ...Show All

  • Christoph_S Windows installer problem

    Hello! I install my aplication as administrator and I choose "Everyone" during installation. I install it in c:\Program Files\myApp. When I try to run this aplication as ordinary user then it appeared error message that access to the path c:\Program Files\myApp\somefile is denied. It is caused because I try modify config file which is created automatically by exe file (and it is placed in Program Files where ordinary user  doesn't  have permission to modify  any files). How can I solve this problem Thanks for help. Sebastian If users (or the application running in user context) needs to write to this file you shouldn't put it in the Program Files Folder in the first place. If you reall ...Show All

  • Jeroen Bransen - J-Thread Creating DataBase In MySql

    Hi, I have Mysql server in my lan when i am executing sql script in my machine .i want to create a database in mysql server.and how can i find the server in the network. hi i got the solution for this problem simply read the data from text file then execute command using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Diagnostics; using MySql.Data.MySqlClient; using System.IO; namespace dbsql_sample3 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { try { //create a new mysqlconn ...Show All

  • Matti-Koopa Uninstall Problem?

    Dear all, I created a msi setup in vb.net, after i have installed the application. I tried to uninstall the application. However, after the uninstallation, some of the files cannot be removed by the uninstallation. Is there any ways to remove all the files Thanks Regards George yeah, i agree, i noticed it too for most installers. thanks stefan for clearing it up. can you recommend a more detailed documentation for orca then Orca is just a simple table editor and IMHO very simple to use. What you will need however is a detailed understanding of the tables that make up the msi database. This is documented in the MSI SDK: http://msdn.microsoft.com/library/en-us/msi/setup/windows_i ...Show All

  • Dinesh Kokate Designer wont save property on overridden datagridviewcolumn

    I've overridden a datagridviewtextboxcolumn and the cell it is using. I have created a property for my custom column that will show up in the designer but when I change its value through the designer it will revert back to the default property value. I can set the property manually through code and it will work. I have tried this by both by 1) storing the private variable itself in the overridden DataGridViewTextBoxCell, creating a public accessor in it, and also creatung a public accessor in the overridden DataGridViewColumn to access the Cell's public accessor, and 2) creating the private variable and public accessor only in the overridden DataGridViewColumn, and accessing it's value from the GetValue method of the cell by calling th ...Show All

  • Jared2000 Help in implementation of a magnifying glass

    I have an image viewer application which I want to apply a magnifying glass effect on certain area of the image. The problem I've run into is that when I slowly dragged the magnifying glass across (when left mouse down) the magnifying glass window didn't move smoothly. I believe it has something to do with drawing the graphics of the original image on the background. May someone please help me solve this issue Thanks. This "this.Update()" method call in picPanel_MouseMove() is probably the source of your problem. Invalidate(true) should be good enough. Actually, you shouldn't need anything there; Windows should detect that the moved magnifier window has revealed a portion of picPanel that ough ...Show All

  • Suthy67 textbox.SelectAll() does not seem to work.

    I want a textbox to highlight any text when it gets focus in such a way that I can subsequently paste a few characters from the clipboard over this entire text with the right click mouse. I placed a command this.textbox1.selectAll () in textbox.GotFocus method but it does not highlight anything. What am I missing Thanks. You can override Method OnGotFocus. I was also in thinking about the problem, and had to dig in my old projects that do such things, it was my Masked Edit Box Control. There i see that i had used this method. Project was in VS 2003 but will also work in VS 2005. protected override void OnGotFocus( EventArgs e) { base .OnGotFocus(e); this .SelectionStart = 0; this .SelectionLength = this .Text ...Show All

  • Steve1999 How to get history of 10 recent web page?

    Hi! How can I get the history of the recent webpages (For example the 10 most recent webpages are in a menu strip and a new item is added everytime a new page is navigated to) Matt depends how your application is handling the history. usually to store the history you would write to say, an Xml file (serialize the collection of webpages you have visited), then deserialize this list once you are loading up your application again. you would have a section in your menu strip with the 10 recent pages visited, so whenever you add another one, if there are 10, take away the oldest one (the first one in the list) and replace it with the new website you are visiting. ...Show All

  • xLogicTalentedx Custom Control Transparent Background Image

    I would like to create a custom control. Following the advice on: http://msdn2.microsoft.com/en-us/library/yah0tcw1.aspx I inherited from class Control http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.aspx My control will require two distinct and cooperative transparent items. The first is a background image which needs to display portions of a picturebox that is behind it on my windows form. In otherwords, my background image is not rectangular and needs to show through what is behind it sitting on the form. The second is the control portion needs to to be transparent by showing the background image where the OnPaint is not drawing. In otherwords, I have 3 layers. First is what is on the windows form (in m ...Show All

  • Jeremy Jarrell SQL Database / Windows 98.

    Hi, I have created an application that accesses a SQL database and Published and installed on a Windows 98 machine which has .Net framework installed. The SQL Database is directly accessed at run-time it is not included as a Resource File - I have manually copied the file to the Windows 98 machine. My question : Will this application run on a Windows 98 machine. At the moment I get an Error establishing a connection to SQL server. Does the ClickOnce/ Publish include all required files I really don't know what I'm doing, so any help would be great. Thanks Hi I have disabled Zonealarm - I still received the same error as previously detailed. I then installed the Setup deployment ...Show All

  • OldDrongo DatagridviewCombo Column issue

    Hello, I am using the datagridview for my interface. One of the columns need to be a dropdown. I want to load this combo with a class and my class can have multiple members like(empid,firstname,lastname, age etc...) The display will be only the firstname and when the selects a name i want to retrieve all the information of the selected item. I have tried without binding, by attaching the class to the datagridviewcombocell object and then assiging this as a column template. But I was having lot of issues doing this. Then I tried binging an arraylist. With that I am able to populate and show the contents of my class (but only two values though), but I am not able to retrieve the value of it, rather may be I don't know how to retr ...Show All

  • Sc0tty "Index was out of range." error. Gridview.

    Hi, I'm trying to pass the contents of a data cell onto a command using GridView. I keep getting the error that's listed in the subject on the line in red below. If I have a line like: lblStatus.Text = Convert.ToString(e.CommandArgument); (lblStatus is just an arbitrary label on my page) The output returns the correct row number. What is going on Thanks! protected void gridSearchResult_RowCommand( object sender, GridViewCommandEventArgs e) { if (e.CommandName == "PingURL" ) { if ( Convert .ToInt32(e.CommandArgument) > -1) { int index = Convert .ToInt32(e.CommandArgument); GridViewRow row = gridSearchResult.Rows[index]; string Pingy = ( string )row.Cells[1].Text; ...Show All

525354555657585960616263646566676869

©2008 Software Development Network

powered by phorum