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

Software Development Network >> Windows Forms

Windows Forms

New Question

ComboBox & Datagridview
SQLXML as a custom prerequisite
many buttons with the same behavior
Stored procedure with combo box?
Item cannot be added to a read-only or fixed-size list
Datarow or datarow.ItemArray column order is not the same as the physical DB column order
ClickOnce ISV Mode
StatusBar ToolTip Crashing
allow user to select which files to install
Change form size on maximize

Top Answerers

RyanB88
gshaf
Jakein2006
Don McDonald
AllisonH
Chaitanya15
iyeru42
jlabrou
Jake2004
gteddy
sitemap
Only Title

Answer Questions

  • Pure Krome listitem

    Is there a listItem class in winform 2.0 For example, in 1.x I can declare a variable as ListItem but do not find this in .net 2.0 Thanks ListItem is a ASP.NET class. The Windows Forms ListBox control stores Objects. there is a listviewItem if this helps ...Show All

  • missle How can I capture Keystrokes and analyze the content in RichTextBox (VS 2003)?

    I am using a RichtextBox in my application (VS 2003).I wanted to find users keyword and highlight bold.I wanted to get keystrokes and get the word typed and compare it with a static list of words and make it bold if it matches.How can I capture Keystrokes and analyze the content in RichTextBox Thanks Take a look at the keypress/keydown events of the RichTextBoxControl: http://msdn2.microsoft.com/en-us/library/zk65089f.aspx Once implemented, just do whatever it is you want to do on this event, as you are stating to compare values hope it helps! ahmedilyas, Great. Thanks. excellent, glad it helped! ...Show All

  • Loki70 Printing Large windows form in VB.net

    I have a problem in printing large windows form. I have used following code to print the form. still it's printing like print screen, not complete form. Form is larger than the Screen and Scrollable. Private Const SRCCOPY As Integer = &HCC0020 ' create a printing component Private WithEvents pd As Printing.PrintDocument ' storage for form image Dim formImage As Bitmap ' create API prototype Private Declare Function BitBlt Lib "gdi32.dll" Alias _ "BitBlt" (ByVal hdcDest As IntPtr, _ ByVal nXDest As Integer, ByVal nYDest As _ Integer, ByVal nWidth As Integer, _ ByVal nHeight As Integer, ByVal _ hdcSrc As IntPtr, ByVal nXSrc As Integer, _ ByVal nYSrc As Integer, _ ByVal dwRop As ...Show All

  • manuel0081 Master/Sub Forms

    Hello All, Does anyone know how to replicate the look and functionality of an MS Access Master/Sub Form By this I mean not to simply invoke two DataGridViews, but to have the master section displayed with textboxes and comboxes etc while the Sub-form is displayed as a DataGridView... Any ideas Cheers sfx1 Thanks for your reply, Remco. Actually, I found a great article in help that explains what I was trying to achieve... ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_fxmclictl/html/c5fa29e8-47f7-4691-829b-0e697a691f36.htm i assume you use a dataset make a relation in your dataset parenttable - > childtable bind your textboxes etc to the ...Show All

  • Robs Pierre [c#]ToolStripProgressBar on a BindingNavigator

    Hi all :) I would like to learn something about the ProgressBar. I have a form, with a datagridview that show some records of a database. During the "select procedure", i would like that the progress bar show how many time remain to the end of query which return me the records on the datagridview. Any ideas Thank you all in advance. I've found some examples on internet. After a little modify at one of them, i write this: //the bar is used when i show my results on the datagridview private void btnDataGridShowResults(object sender, EventArgs e) { //all the code to manage the datagridview timer1.Enabled = false; myBar.Value = 0; myBar.Maximum = myDataGridView.RowCount; myBar.Step = 5; tim ...Show All

  • Jared Y Save of BindingNavigator

    Hi all I created baseForm that contain a BindingNavigator only I want to write a common SAVE Click event to be shared for all forms that inherit from BaseForm. Commonly, the generated code is like: Private Sub CategoriesBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CategoriesBindingNavigatorSaveItem.Click Me.Validate() Me.CategoriesBindingSource.EndEdit() Me. CategoriesTableAdapter .Update(Me.NorthwindDataSet.Categories) End Sub The problem is CategoriesTableAdapter which is generated for every form and it is System.ComponentModel.Component and table dependent . I want to cenenteralize the Save Code in the BaseForm. How Can I implemen ...Show All

  • David C Baldauff Custom strings erased from resourcefile

    Hi I'm working on a project in norwegian and it will also support english  (UK). I have some strings in resourcefiles that will be used in messageboxes, both in english and norwegian.  All my button text and stuff like that seems to work fine, but all my custom strings, that are not connected to any controls seems to be erased from the resource files. F.eks  if I make a string  called  strHello  with the value  "Hello World"  it will at some time get erased from the resource. Can anybody tell me what's wrong or if I'm doing something wrong   I'm doing this in  VB.Net 2005   regards Stein ...Show All

  • Jan Byvaly How do you not allow user to resize rows in a datagrid for C#?

    I am making a form in C#. It has a datagrid that pulls information from a SQL table. How do I get it so the users can not resize the rows in the datagrid. I do want the datagrid enabled as I need to select currentrowindexes to do stuff with the data in the form. I just want to know how do I prevent the user from resizing the rows This can easily be changed in the properties of the component (if using VCS Express Edition), else just include: dataGridView1.AllowUserToResizeRows = false ; :P ...Show All

  • David Weller - MSFT Internet Informations

    hi... how to get the following: 1. network adaptor that connect to internet 2. max internet speed 3. retreiver/sec and sent/sec I check the link but I dont find what I need Check this out - http://msdn2.microsoft.com/en-us/library/system.net.networkinformation.aspx I think you will something useful there.. Is this a programming question ...Show All

  • ian_3000gt How can I let the user customize which items to show in the toolstrip?

    Hi! How can I let the user customize which items to show in the toolstrip Matt OK but whats the code Matt Hi Matt, Set the Visible property of the toolstripitems to false if you don't want these items to show. But where to put the code is up to you. That's to say, in which form do you want the user to customize, in menuitem or contexmenuitem ... You will have to make your own dialog with a listbox or something that shows a list of all the items in the toolstrip. Then what you would do is have them select the item they want to show or hide, and have a "toggle" button that would toggle the show or hide events. OR Even better, you could ...Show All

  • Henri20 INI files

    Hey, I searched MSDN for this but I could not find anything on it... How do you have the program recongnize a .ini file I have called it load.ini and this is what it is inside of it: [firstload] firsttime = 1 I am trying to make it so that in the Private Sub Form_Load it will look for the ini file and read it, is firsttime = 1 then it is going to open up a dialog, otherwise it will do nothing, I can do all of that, I just need to know how to have it find the ini file... I placed the ini file in the project's folder... Thanks :) The keywords and phrases. As for broadening my horizons...lol.  I know html, c++ and C#.  I am teaching myself asp .net as well....  not to mention ...Show All

  • GinaK Using TabControl

    Hello, I want to use a TabControl in a different way. There are 7 tabpages in a TabControl and 2 buttons on a form. I want to ignore mouse clicking on the tabpages, so you can not change tabpages using mouse. But click buttons, it will change the tabpages one by one. How can it be done Thanks in advance. First add a bool to your form class, call it something like cancelTabSelect, and set it to true by default. Then add a Deselecting event to the tab-control: private void tabControl1_Deselecting(object sender, TabControlCancelEventArgs e) { e.Cancel = cancelTabSelect; } So by default the tab won't change. Then in the button event you wish to use to switch tabs, do somethin ...Show All

  • VictorSalcedo Split string to datatable

    Hi, I have large string. I want to parse it by delimeter and input to datatable. All lines in string are ended by "\n" (vbcrlf) character. The delimeter is specified by user (like comma, tab, space or something else). So how can I do this Thank's Alexei Hi, My data in string is like: 1,fsd,dsf34,dfsf,....\n 2,sdf,sdfsf324,sfs,sdfsf,sfs....\n ..... Number of columns is not same in all rows! The data must be parsed to datatable quickly. Columns in datatable must be: Column1, Column2, Column3,... Thank's Alexei Actually, you can add column to a DataTable using DataTable.Columns.Add method, for example DataTable dt = new DataTable ( ) ; dt.Columns.Add ( "Name", typeof ( string ) ) ; ...Show All

  • Sam Jost DataGridView with a Combobox

    I am writing a 2005 VB App which I have a DataGridView that has a combox column. Which I have populated just fine. My only problem is if the user decides to choose soemthing else in the list when I go to save that value it doesn't grad the new value. I have read that having a combobox in a datagridview it doesn't behave like a normal combobox. Does anyone have any advice on how to get the value if it has changed. Thanks Nikki Hi, If I understand correctly whenever somebody enters something in the combobox that is not a predetermined choice, the value is not saved Does to combobox items come from a relationship to another table or is it just a choice of static values Regards, Charles ...Show All

  • Kumar Palanisamy Activating the [Caps Lock] Balloon

    If you have the password character set for a textbox, and the user presses the Caps Lock key while that textbox has the focus, a notification balloon is automatically displayed, alerting the user that Caps Lock is on. My question is: How to fire that event programatically (ie, Caps Lock is already on when focus is obtained). Is there a message I can send to the textbox The easiest way is to use the ES_PASSWORD flag on a TextBoxs Style property such as this implementation stolen from here : public class PasswordTextBox : TextBox { private const int ES_PASSWORD = 32; public PasswordTextBox() { } protected override CreateParams CreateParams { [SecurityPermission(Secu ...Show All

202122232425262728293031323334353637

©2008 Software Development Network

powered by phorum