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

Software Development Network >> Windows Forms

Windows Forms

New Question

Need help with SendInput function
how to implemet Zoom in and zoom out operations
An error occurred while validating. HRESULT = '80040155'
How to prevent Combo Box automatic selection of text?
Set hotkey for a button in the form..
datagridview cell color
on the taskbar I can't see the minimized window...no button show up
Help with mshtml - Deploying Software
autoscroll in datagrid when selecting a not visible row
Data Async - Problems with refreshing bound controls.

Top Answerers

kkos
game-maniac
Andrew Mercer
Iris Stern
reichard
RhysDavies
AlvinB
Tovdb
Duncan_311
tlc660
Skulschus, Marco
Only Title

Answer Questions

  • PitLord DataGridView Unbound Row

    I would like to mimic the functionality of either the Messages View or the Task > By Category view found in MS Outlook 2003. I’ve created an object that inherits from DataGridViewRow that can draw itself correctly within the DataGridView however when DataGridView is bound to any data source I haven't found a way to add my custom rows to the DataGridView. My plan of attack was to sort a DataSource by its ‘GroupBy’ column and then insert my custom DataGridViewRow in between the data bound rows. Is this possible Should I be attacking this at a different angle Is there a way to extend the data binding provided by the DataGridView Thank you If you decide to use a DGV you could play with the V ...Show All

  • A.Russell Incorrect row count in datagridview

    Hi, I'd like to get help on this issue. I am getting incorrect row count on datagridview after feeding with datasource. The row count in data table is correct, but not in datagrid row count. Can somebody let me know why Thanks in advance! dg.DataSource = SubDirTable Dim TableRowCount As Integer = SubDirTable.Rows.Count '=3 Dim DgRowCount As Integer = dg.RowCount ' always =0 If the dgv is bound to a datasource, you'd better use dgv.Rows.Count instead of dgv.RowCount ...Show All

  • AlexBB Error on form will not allow me to view form.vb [Design] mode

    I wanted to change a dataset and deleted it before I added a new dataset and I had controls bound to the dataset, so I expected a few problems, BUT......... VB 2005 will not let me open the form in [Design] mode until I fix these errors One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. The designer cannot process the code at line 248: Me.Org_TemplateDataSet.DataSetName = "Org_TemplateDataSet" The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer ag ...Show All

  • Sweeps78 A small problem concerning to commandlines in tc

    Hello Sir I'm new to this forum .I have a problem concerning to turbo C I have writen a programme that is #include<stdio.h> main(int argc.char *argv[]) { FILE *p1,*p2; p1=fopen(argv[1],"r"); p2=fopen(argv[2],"w"); if(*p1==NULL) { printf("Canot copy"); exit(); } while(!feof(p1)) { fputc(fgetc(p1),p2); } printf("Completly copied"); } When ever I'm using statemant in red leters It is falling into an infinite loop and without that it is working properly.. Thank you .If you have solution post me. ...Show All

  • Ryn Implements ICloneable. form disappear .

    Public Class FormTemplate Inherits Form Implements ICloneable Private Sub BaseForm_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load End Sub Public Function Clone() As Object Implements System.ICloneable.Clone Return Me .MemberwiseClone End Function End Class Public Class MainMenu Inherits FormTemplate Public m_ChildFormNumber As Integer = 0 Public Forms As New List( Of String ) Public Sub New () InitializeComponent() End Sub Public Sub NewForm( Of t As FormTemplate)( ByRef i As t) Dim f As t f = i.Clone If Not Forms.Contains(f.GetTyp ...Show All

  • RhysDavies Treeview crashes after removing all nodes

    Hi, I hope you can give a hand with this, because is killing me. I have a tree view with a imagelist binded to it (i show a little flag to the left of the node), I used this post as a sugestion to populate the node (i used a recursive way and have some trouble there) http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=539635&SiteID=1 This is my code Private Sub LoadTreeView() Try Dim rdr As IDataReader = GetWOParentWithFilter() TreeViewWOrders.BeginUpdate() Me .TreeViewWOrders.Nodes.Clear()!!!!!!!!!!!! While rdr.Read Dim iFlag As Integer = Me .GetFlag( CType (rdr( "WKOStatus" ), Integer ), CType (rdr( "IsRecorded" ), Integer )) Dim parent As TreeNode = GetNo ...Show All

  • Patrik J Setup project: install Windows Service with new user fails with "No mapping between account names and security IDs was done"

    Hi Forgive me if this is the wrong area but I could nto find a dedicated section for Setup projects. I have a setup project that creates a new local user as part of the install. The installer then installs a service and sets the service to run as this new account. The code to make the new account is in <myserviceinstaller>_BeforeInstall. It DOES create the account successfully, as I can see it in computer management right away. The installation always claims it fails with "No mapping between account names and security IDs was done", despite the new user account being created fine. It's as if the new user accunt was created too late, AFTER I tried to install the service, despite the code to add a user bein ...Show All

  • Ethan Hunt Text Box - Garbled - Paint Issue

    Hello All, I'm currently building an app that has a single Main form. The app loads up an assembly into a secondary app domain using the CreateDomain feature. The loaded assembly (into the second domain) contains form/UI elements that need to be conditionally loaded from the form on the primary domain. Initially I had structured these as user controls that may be loaded into a panel on the primary domain. While trying to do this, I ran into some serialization issues and froma bunch of posts figured out that this is not possible. I've now moved to displaying the GUI as a modal dialog from the second app domain. How it works is -> A message, in the form of a hard wired string is passed into the second domain via a Marshall By ...Show All

  • rohit_c4u How to adjust MDI forms size according to screen size...?

    Hi... In my MDI application , Before loading my parent form i want to check my screen size & according to that i want to adjust my MDI parent & child form size. In my application, I have a child form which is always active & which is covering the parent forms area. For that I want to adjust my parent form & that child forms area according to the screen size. How I can do this in C#... Thanks & regards, Vinay There is no documented way to get the MDI client rectangle that I'm aware of. But there is an undocumented way. I'm not sure if you should use it, but here's code for an MDI child form that positions itself inside the parent as large as it fill ...Show All

  • zz2 Formatting a string for a RichTextBox

    In my windows form application I have a rich text box that displays the cpu usage every second. If the cpu usage rises above 90% I want to display a line of text in **red font color**. I just don't know how to format a string to give it color. I know the rich textbox supports this because it supports the coloration of links, ect. Any help is appreciated. Thanks. Thanks, I'll fiddle around with other methods too. Well, what I need the color to be applied to the String before it even reaches the textBox control. The String is an error message. It looks like this: String E01 = ErrorStructure.Errors.E01; // need to color the string red here this.richTextBox1.Paste(E01); One way of doing it would be selecting the text insid ...Show All

  • ksona Number of nodes in a tree view

    Hi, Is there a limit on the maximum number of nodes that will be displayed in a tree view Thanks! Is there any way that I can change this limit Or if I can't alter the limit, then which control should I use In my application I can have any number of nodes. Thanks! This includes the nodes in the subtrees as well Yes: 65535 nodes. If you go beyond that, you'll run smack into a bug in the Windows TreeView control where an internal 16-bit integer overflows. Yes. Generally, you wouldn't want your user to have to traverse through 65535 nodes. Not only would it take forever to populate the TreeView, it would prob ...Show All

  • Lotek Deviant Changing the Colour of an Individual DataGridView Cell (.NET 1.1 vs 2) - Please Help

    Hi, everyone. I've been working on this frustrating problem for the entire evening and I thought I'd come to the forum for some insight and direction. I'm writing an application in Visual Basic 2005 which uses a DataGridView control which is bound to a datatable. I'd like to dynamically highlight an individual cell in red. I've written a similar program in the past with Visual Basic 2003 and I'd like to reuse as much of the code as possible. However, I'm running into a major barrier when trying to individually colourize cells. In 2003, I used something like the following snippet... DataGridTest.Rows(1).Cells(1).Style.Backcolor = Color.Red This works like a charm in 2003 but doesn't seem to work at all in 2005. After doing some rea ...Show All

  • thukralz How to hide controls using a loop

    Hi, I'm trying to hide all the buttons and textboxes on my form using a loop, I used to do this is visual basic and i remember de code was something like this: For each(control in me.controls) If Typeof Control is Button Then Control.visible=false End if Next I'm trying to do the same using C# but it doesnt work, could someone help me please. Thank you in advance. The is operator is used to check whether two objects have compatible types. This operator is not available in VB. When you have TextBox/Button controls in a container, you need to check them too. Therefor, it is best to make a function that can be called recursively. private void HideControls( Control parent) {    ...Show All

  • Maaloul Setting environment variables for a dll

    I have created a activex control which runs in IE. Now I'm creating a deployment project in vc2005. I want to create some environment variables for running this DLL. How can I set these environment variables Thanks Yes. I want to add some variables to the path. The reason is that I'm using a external library to write this dll. That library needs an environment variable to operate. Thanks Supun Visual Studio setup projects have no support for adding environment variables during a setup. Why do you need one I think it's a little unusual for a control to need something from an environment variable. Are you trying to add something to PATH ...Show All

  • LeeroyB Updating a databinding

    Hello. I have a ComboBox binding a DataTable, when i changes the values in the DataTable ... i don't see the changes in the ComboBox. Why Too, i have several ComboBox binding with a BindingSource, and it binding to a DataTable, and when i changes(add or modify) values in the DataTable ... i don't see the changes in the visual components. Why :( Regards. I remember that probed .EndEdit() method and didn't work, i don't know why. I read about EndEdit() and says that is for end a .BeginEdit() that is for make changes avoiding the constrains ... or something like this :P Regards. You could have reason, and the problem could be other code , please follow to this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx Pos ...Show All

232425262728293031323334353637383940

©2008 Software Development Network

powered by phorum