Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008


all groups > dotnet windows forms > december 2004

Filter by week: 1 2 3 4 5

textbox data entry
Posted by Norm Bohana via DotNetMonster.com at 12/31/2004 7:45:15 PM
I enter data into several textbox's. and try to save it to a SQL table using the following code: Before this code is executed I do a 'sqlDataAdapter->Clear', and then enter the new data. private: System::Void btnOSave_Click(System::Object * sender, System::EventArgs * e) { void UpdateD...more >>

Determine CAPS LOCK state in VB. NET
Posted by Magnus Österberg at 12/31/2004 2:41:42 PM
Is there any way to determine the CAPS LOCK state in VB. NET, without calling any VB6-style Windows API? ...more >>

Visual C# Unable to alter size or position of form
Posted by Kevin R at 12/31/2004 2:13:46 PM
Hi I have this in a method which is called when my form is created public CreateDevice() { // Set the initial size of our form this.Top = 0; this.Left = 0; this.Size = new System.Drawing.Size(500,800); //this.ClientSize = new System.Drawing.Size(400,300); // And it's caption this....more >>

Check multiple radion buttons in panel
Posted by moondaddy at 12/31/2004 12:31:01 PM
I have a vb.net 1.1 winforms app and have several radio buttons in a panel control. I want to be able to check several of the buttons at the same time, but their behavior is that when I check one the other button becomes unchecked so its not possible to have 2 checked at the same time. Is th...more >>

Detect when owned form is brought to front?
Posted by JS at 12/31/2004 8:01:57 AM
Sorry about the last post -- I hit Enter by accident... I have the following code ('this' is a non-MDI Form): Form form1 = new Form(); form1.Owner = this; form1.Show() Form form2 = new Form(); form2.Owner = this; form2.Show(); The behavior is that form1 and form2 are sort of child fo...more >>

mdi client problems - second try
Posted by tsiGeorge at 12/30/2004 9:15:01 PM
In our app (VB) client forms are displayed based on what is on the current client form and the button pressed. A user never selects a client form. You can think of this process as filling out a very long form with many branches (e.g., IRS form 1040). Once a client form is loaded it is never un...more >>

Datagrid sorting
Posted by Nikolay Petrov at 12/30/2004 2:17:38 PM
Is it possible to sort datagrid from code and how? Tnx in advance ...more >>

AfterCheck event for TreeView control
Posted by TJ at 12/30/2004 1:19:03 PM
Hi, I registered event handler to catch the AfterCheck event... myTreeView.AfterCheck += new TreeViewEventHandler(myTreeView_....); It works fine, however, if I set the checkbox as true or false programatically(I mean..in the code, somethinglike node.Checked = true...), aftercheck event...more >>



embedded resource
Posted by Pascal Cloup at 12/30/2004 12:44:09 PM
Hi, How to to create an object (like Cursor) from a .Cur file embedded in a dll of C# classes? Thanks in advance, Pascal ...more >>

Wrong Application Icon Task Switch
Posted by Kevin at 12/30/2004 12:09:04 PM
I have a C# application with one and only one icon in the project. The icon is linked as the application icon in Project Properties and is also linked with each windows form. The icon is displayed properly on the desktop, in the task bar, and on the form itself. However, when you task switc...more >>

After form loads event
Posted by .net_tiro at 12/30/2004 11:39:10 AM
Hi This question is probably one of the basic things but being a novice programmer in c# and .NET environment, I couldn't get to find the answer. I have a menu item in one form and need to create the context menu with tht menu item in another form. The first form becomes the parent form for th...more >>

Use Outlook 2003 buttons, etc.
Posted by Jay at 12/30/2004 10:14:15 AM
How can I develop a windows application that uses controls in Office 2003, especially Outlook. Jay ...more >>

changing look and feel of an app
Posted by shahbazc NO[at]SPAM gmail.com at 12/30/2004 8:40:15 AM
I would like to know if there are any examples, tutorial on how to completely change an application's look and feel. By that I mean the colors, the way menus are drawn, the way tool bar items are spaced in a tool bar, the way tab identifiers are shaped, etc., etc. There are a few interesting ...more >>

Overriding OnPaint with a ListView
Posted by Baramuse at 12/30/2004 7:41:04 AM
Hi all, here is what I want to do: I've got a ListView populated from a database. The problem is that there is two much items generated... So I wanted to only get additionnal data (all the colums) for the painted items. To do so I created my own ListView class derivated from the original on...more >>

Entering Data into a Textbox
Posted by nbohana at 12/29/2004 8:57:02 PM
-- Norm Bohana...more >>

WinForms question...
Posted by Peeter Ilumäe at 12/29/2004 5:21:09 PM
Hi! How do I determine the windows standard vertical scrollbar width in pixels (set from the display properties) from c# code? Peeter. ...more >>

datagrid column headers and size?
Posted by oscar at 12/29/2004 12:59:05 PM
i have a datagrid that is getting it's dataset from a mysql database. is there a way to change the header label and a way to set each columns width before it is displayed? there are 4 columns being displayed and i need to be able to rename 2 of the columns and set the width of them too. t...more >>

Shortcut Key question (i.e. "&Submit")
Posted by rh at 12/29/2004 12:38:43 PM
I have a Button on a WinForm that has a text property = "&Submit". I noticed that whenever I pressed the "S" key only (without pressing the "Alt" key) the Button's click event would fire. I thought that it was only supposed to fire if the combo "Alt+S" was pressed. My problem is that I hav...more >>

Changing BackgroundImage doesn't work properly with transparency
Posted by Michael Herman (Parallelspace) at 12/29/2004 12:07:17 PM
When I run the sample code below, I expect the background image of the borderless winform to change to that of the new Bitmap image (and for the form to resize to fit the bitmap). The latter works fine but instead of the new image replacing the old background image, they are being overlayed o...more >>

ICustomTypeDescriptor.GetEditor - Which property am I on??
Posted by Thomas W. Brown at 12/29/2004 11:11:06 AM
I have a class that will be edited via the CollectionEditor/CollectionForm UI. To that extent I have defined the various properties I want editable for my class. However, three of the properties are of type string but I would like them edited by selection from a dropdown list whose contents ...more >>

How to select datagrid cell
Posted by Steve at 12/29/2004 10:58:56 AM
This sounds very simple, but I'm having trouble getting it to work. When I display a WinForms datagrid, I want the value in the first row and column to appear in reverse image. I have tried setting the CurrentCell, focusing the grid, getting the textbox and tried to select the text, etc. Each ...more >>

How to hide form without hiding its control?
Posted by Amar Ingole at 12/28/2004 5:41:11 PM
Hi .. How to make form invisible without hiding control on the form. Thanx.. ...more >>

Hosting .NET Windows forms UserControl in IE
Posted by Slava at 12/28/2004 2:49:10 PM
Hello, I need to host .NET Windows forms UserControl in Internet Explorer. I do it by including <OBJECT> tag in my aspx page: <OBJECT id="mycontrol1" classid="MyControl.dll#MyControlNamespace.MyControl" width=800 height=300 style="font-size:12;" VIEWASTEXT> </OBJECT> everything works fin...more >>

Combo Control array - Selection
Posted by Sylesh Nair at 12/28/2004 1:23:02 PM
hello , I have created a Control array for a ComboBox to populate on a tabPage . My concern is that I 'm using a List to populate the Combo Box like this .. ComboArray[i].Items.Add(List[i)]; ComboArray[i].DataSource = List; The Combo Box gets populated with all the values in the List ...more >>

How to handle WM_NCPAINT event in C#?
Posted by Amar Ingole at 12/28/2004 1:06:55 PM
Hi All, I need to draw on Non client area for that i need to handle WM_NCPAINT event. Please help me and send demo code if possible. thanx Amar ...more >>

Inherited User Control not showing in designer
Posted by Lee at 12/27/2004 9:41:01 PM
I have a user control that inherits from another user control. The base user control works fine in the designer, I can see all of the controls, etc... However when I open the derived control in the designer, all I see is a grey square with no controls. I have tried attaching to the IDE with ...more >>

Resource Files
Posted by Steve Covert at 12/27/2004 4:16:52 PM
Hi All - Happy Holidays I'm struggling to understand how to make resource files work in a multi-lingual vb.net windows app - and feel real stupid. I've read MCSD books and Visual Studio Help articles, but just don't get it. Duh. The ResourceManager class and resource files within a proj...more >>

Resizing a form by client height/width
Posted by MuZZy at 12/27/2004 4:16:11 PM
Hi, I just wonder if anyone can help me with this: I need to be able to resize a form by setting the size of its client area. Say, in Delphi i would do so: Form1.ClientHeight = 10; Form1.ClientWidth = 20; And the form will adjust its size so that client area will be as set. In .NET ...more >>

How do you get a 2 day response from Microsoft
Posted by tsiGeorge at 12/27/2004 2:41:03 PM
I posted a question on "MDI Client Problem" on 12/22/04 and I'm still waiting for a response. -- tsiGeorge...more >>

Updating a windows forms control from a thread
Posted by DW at 12/27/2004 1:07:24 PM
I've gotten this question a couple of times in interviews and I don't know what they are looking for: How do you update a control's property, such as a textbox.text property, from a thread, in .NET? It seems to me you just update it normally. What are the interviewers looking for here? T...more >>

How to draw image on form's title bar?
Posted by Amar Ingole at 12/27/2004 11:56:20 AM
Hi .. I wanted to repace form's default title bar with new One. So Can I draw Image on title bar. Pleae help Amar ...more >>

WindowEnumerator
Posted by carlmanaster at 12/27/2004 11:05:23 AM
My application has regular document windows and floating windows above them. I want to iterate through all windows in z-order. I would have thought this capability would be built-in to the .net framework, but everything I can find on the archives says no - you need to use GetWindow(), thus: ...more >>

Window Not Responding when running external programs
Posted by James Li at 12/27/2004 9:15:14 AM
I have a windows form application (C#) that launches multiple external batch files to do various installation tasks. I want to show some status on the win form, say simply update the text on a Lable control, "task 1 starting...", "Task 1 completed.", etc. However, the text for the label is...more >>

updating forms?
Posted by oscar at 12/27/2004 6:01:04 AM
my program draws a form and when you click the start button another form is drawn with a progress bar as it runs through a function. my issue is that when you click on another progrem then try to go back to the progress bar form it doesn't redraw itself. i tried using a: if(num%100==0) ...more >>

Application Data
Posted by WineNCheese at 12/27/2004 12:19:53 AM
Where do people put application data that is not user specific? For example, what if I have a xml file containing r/w data for a forms application, and the application may be used by users with limited rights. I cannot do any user management, and there is no reason to expose the user to the...more >>

Question re Migration of VB6 App to .NET
Posted by Joseph Geretz at 12/26/2004 3:59:31 PM
Our company develops and markets a client/server application which is written in VB6 as a rich Win32 Client/Server application. For a variety of technological reasons we are looking to migrate toward the .NET environment. However, a number of business factors make it impractical to accomplish ...more >>

Huge Memory Usage
Posted by Haim at 12/26/2004 6:06:18 AM
Hello all, I am writing an application in C#, VB.NET which basicaly has a form with a few pictureBoxes on it and a TabControl with 3 tab pages - in each one a treeView and a ListView. In addition it loads a few other dll's as a reference which should not be memory consuming since each have a...more >>

Problem with time in access
Posted by Kenny M. at 12/25/2004 11:25:01 AM
HI In Access the date is like 21/12/2004 08:57:17 a.m. I need to update the record only if it was not created more than five minutes ago cmd = "UPDATE Sales SET Status = 'A' WHERE Mid(SalesDate,13,20) > #" & Mid(Microsoft.VisualBasic.DateAdd(DateInterval.Minute, -5, DateTime.Par...more >>

Load event in user control
Posted by mamil NO[at]SPAM bezeqint.net at 12/25/2004 9:11:14 AM
Hi Gurus. I'm doing my first steps in the Winforms realm (I dealt mainly with ASP.NET until now), and I've stumbled across issue I really cannot solve and that seems extremely stupid to even ask about, so please forgive me... I need to execute some logic in the Load event of the control. Pr...more >>

OnStartTask in UIP v 2.0
Posted by gwenda at 12/25/2004 1:03:03 AM
Hi, I'm using UIPAB v 2.0 in a Windows application. Following the UIP documentation I'm trying to "nest" two tasks. As I need to pass data between those two tasks, I;m using the OnStartTask method. This is what the documentation say about nesting tasks, using that method: "When the Add New S...more >>

set the listview highlight one line
Posted by zbcong at 12/24/2004 6:03:08 PM
hello how can i set up the listview to high-light one line that is selected by mouse.now only the first column can be selectable. thank you. ...more >>

Animated GIF
Posted by Jaydeep at 12/24/2004 11:09:34 AM
Hi All, I want to show animated GIF on form. I used ImageAnimator class to Animate and StopAnimate method to stop the animation. But my client says that if he stops the animation in between then it should not stop at that postion, but it should complete its remaining rotation and then stop. ...more >>

inherited forms
Posted by Alexander Muylaert at 12/24/2004 8:32:38 AM
Hi I seem to have a lot of problems with inherited forms in VS2003. Problem 1: Form1 has a txtEdit1. Form2 inheriteds from form1. But for some reason I would like to be able to access form1.txtEdit. When I put his modifier to protected instead of the default private. The control jus...more >>

Pass Values from .NET Windows App to Open IE Form
Posted by GPeck at 12/23/2004 5:03:01 PM
I need to pass several values from a .NET Windows app into an EXISTING, OPEN IE form. I found the following code snipped for VB6 elsewhere on the forums--it's close: Dim IE As Object Set IE = CreateObject("InternetExplorer.Application") IE.Visible = True IE.navigate "http://www.kbb.com"...more >>

Xp Style title bar
Posted by Amar Ingole at 12/23/2004 4:28:14 PM
Hi.. I wanted to replace form's title bar with new one which will look like xp form title bar -Thanx ...more >>

scroll box width once more
Posted by Joep at 12/23/2004 11:20:46 AM
The scroll box of an independent scrollbar is affected by the difference between Maximum and Minimum like so (approximately): percentage of scrollbar occupied by scrollbox = 1000 / (Maximum - Minimum). Does anyone have the exact rules that apply here, i.e. how is the width of the scrollbox...more >>

Improving Performance
Posted by WhiskyRomeo at 12/23/2004 9:51:03 AM
I have a table called tblOrg in a SQL Server 2000 database. It has PK = Org_ID and a field called ParentOrg_ID so an Organization can have 0, 1 or many children but only one parent. I have a recursive function that builds a tree view of this and populates a tree control with Org_ID as the ...more >>

Hide TabPages
Posted by spif2001 at 12/23/2004 4:07:04 AM
Hi I have made a custom TabControl and a Custom TabPage to go with it. The custom TabControl has a collection of custom Tabpages, which shows in the property editor. What I need to do now, is to hide the TabPages property inherited from TabControl. I whant the developer to only use my ...more >>

Checkbox in Checkedlistbox just vanishes
Posted by Mohit Vora via .NET 247 at 12/22/2004 3:57:16 PM
This is very queer=2E I am using a CheckedListBox in VB=2ENET=2E When I run the application= on my development machine, it works just fine=2E But when it is= run in the client's machine, sometimes (seemingly randomly) the= for the top 2 or 3 items of the checkedlistbox, the checkboxes= o...more >>

transparent user control
Posted by vrush desh via .NET 247 at 12/22/2004 3:55:37 PM
(Type your message here) Hi, I want to make user control transparent. I have made it tarnsparent using maketransparent method but while moving that control its taking background of parent control which i dont want so how can i make this?? Please help me ASAP. my email id is vrushalid@gmail.c...more >>


DevelopmentNow Blog