Windows Forms
Recent update: 2008-3-21

C# TaskVision does NOT include the code for the GDI+ controls!

330 byte By codefund.com at 2008-3-7
I downloaded TaskVision_FullSource_CS.zip because in the page I read:"C# TaskVision Source Code Lite - Now in C#!!! - This package doesn't require SQL Server or Visual Studio.NET to use, and it includes the code for the GDI+ controls!"but... I it does NOT include the code for the ...

VB.NET2003 - Items in ListBox are invisible

564 byte By MikeforVB at 2008-3-7
Probably a simple answer, but I just loaded VS.NET2003, and opened a sample applicaiton with 3 items in a preloaded in dropdown combo list box. when I click on the dropdown, the preloaded entries are invisible? when I click on one it displays in the selected box? I tried a simple list box with ...

DataGridView binding to another control

476 byte By TheNetStriker at 2008-3-7
I have a problem databinding my child DataGridView to my master DataGridView. When I simply add two DataGridView's then its no problem, I can select a record on the master table and get the child records in the other DataGridView.But now I like to have my child DataGridView in another control, ...

What do I need to do to deploy controls that target Windows XP Themes?

327 byte By codefund.com at 2008-3-7
I have 3 projects 1- A User control that has a button on it - FlatStyle is set to System.2- I embed this control in a Windows Form Project and run it - The look is XP - good.3- I embed the same control in an html page, I can see the button. The look is NOT XP - ?What am I missing ...

drag drop usercontrol

732 byte By codefund.com at 2008-3-7
hi everybody,we developed some usercontrols with their designers and putted them into toolbox.And we also develop a custom document with its root desginer.we have collection object in custom document that holds these usercontrols. we wrote event handlers for drag-drop operation in document's ...

about Icons of XPander

267 byte By codefund.com at 2008-3-6
I am doing C# conversion for GDI+ and XPander, just find out an interesting issue. The images files come with the source code which in jpg format, can't display Transparent color. So my C# xpander looks ugly with these images (Collapes, Collapes_h, Expand, Expand_h)

Control program instance

357 byte By WongJunnKit at 2008-3-6
Dear seniors,How do I control instance for my program ? For example I only allow my program to have at most 5 instance in a pc, lets give it a name, abc.exe. I only allows my abc.exe to run 5 instance, but if some1's program called abc.exe too, they are not count as my program, and I do not ...

Databinding problem

953 byte By yaakov at 2008-3-6
Hi everybody.I have a form which contains a user control.When the form loads, I'm populating some DataSet, and assigning the dataset refernece to one of the control properties.The control contains other control that are bound to various paths on that dataset, adding new rows, modifying, ...

Embedding a word Window in VB.NET word app

271 byte By codefund.com at 2008-3-6
Hello All, Is it possible to embed a word (window) inside a rich client. I'm currently working on a rich client and would like to open a downloaded document within the windows form itself. Any ideas or suggestions would greatly appreciated. thanks, chris

property grid item collection

355 byte By codefund.com at 2008-3-6
hi,we want to develop a property grid item on the property browser like treeview's node property ( has a browse button that opens a new editor).is there any special name for this kind of property? we think that this kind of property takes collection.can we access the .net built-in editor like ...

Using VS Studio .NET vs. VS Studio .NET 2003 w/ Pocket PC TaskVision Client

634 byte By codefund.com at 2008-3-5
I am new to programming with mobile applications and wanted to know if there are any issues that would come up when modifying and recompiling the taskvision client application with VS Studio.NET with the compact framework 1.1 installed vs. using VS Studio .NET 2003?Also I assume I would still ...

Keyboard shortcut for marking the whole text of a textbox?

163 byte By HenrikDahl at 2008-3-5
Hello! Isn't there a keyboard shortcut for marking the whole text of a textbox? I thought it was CTRL-A, but it seems it's not. Best regards, Henrik Dahl

Data binding to a listbox

1571 byte By Christopher11 at 2008-3-5
Hello. I am a beginner. I am using Visual studio 2005 (B2) to create a user interface that contains a list box, data navigator and several text boxes that are bound to two relational tables (Investors and ContactDetail). Investor ID is the primary key in the Investors table and has a type of ...

http compression when download assemblies from IIS

142 byte By codefund.com at 2008-3-5
Is there any way to use http 1.1 compresion for the exe and dll asemblies hosted on IIS? I hope this will increase first download performance.

Windows XP and Data Grid control

467 byte By codefund.com at 2008-3-5
Does anyone know if there is a way to obtain an XP Themed data grid column headers? Should I inherit the DataGridTableStyle class and override the paint or something (which I don't think you can do). I want to acheive the effects you get like column header hovers, left aligned sort indicators. ...

Do I hear C# anytime soon?

72 byte By codefund.com at 2008-3-3
I was wondering if there will be a C# sample of TaskVision anytime soon?

Adding Child Forms to User Settings

248 byte By BradRaulston at 2008-3-3
I'm trying to persist the child forms of an MDI app to the user settings and it doesn't appear to be possible, at least as far as I've found. Is there a way to do this in the desinger, or will it require a custom setting implementation? Brad

Object Data Source Binding - Forms vs Web

2157 byte By MichaelOberhardt at 2008-3-3
I've had a search through the forum for an answer to this, or a similar question, as well as MSDN, but no luck, so am creating a new post.I have created asp.net forms in vs2005 using object data sources, and was pretty impressed how flexible they were, and you had the ability to map operations ...

Accessing Cookies From Windows Forms

267 byte By codefund.com at 2008-3-3
Hi, I'm embedding a windows form within a web page. Is there anyway of being able to acess the cookies in the web page from the windows forms? I can pass them in as parameters but I was wondering whether I could access them directly from the form. Thanks Phil.

Owner-drawn TabControl...

712 byte By codefund.com at 2008-3-3
Hi, CodersI have very strange problem!I am deriving my own class, inherited from TabControl.I need to make my own painting, so I wrote that:SetStyle(ControlStyles.AllPaintingInWmPaint, true);SetStyle(ControlStyles.UserPaint, true);SetStyle(ControlStyles.DoubleBuffer, true);Then proccessing the ...

Pocket TaskVision - where is it?

631 byte By codefund.com at 2008-3-1
Hiyas,I recently read through this MSDN article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/wnf_pktTaskVision.aspI was quite excited, and keen to try it out, until I clicked the "Download" link, and found that it doesn't seem to be there.Quit ...

Icons not showing up on Treview

659 byte By KeithElder at 2008-3-1
I am using VS 2005 Beta and I have a Treeview UserControl that I built for a menu. I added an imageList to the control and added some icons that I want to associate with the control. When I build the solution and view the UserControl placed on a form in the designer, I can see the icons. ...

Binding to RichTextBox

1171 byte By BobHeitzman at 2008-3-1
Using VS 2005 Beta 2, VB, SQL Server 2000I have an existing SQL table with a field 'Comments' of SQL datatype 'text'. The data stored in the field was created using the RichTextBox under VB6.I use a Data Source/Data Set and set the Comments field to RichTextBox. When I drag the control onto ...

Smart Client Error

354 byte By codefund.com at 2008-3-1
I'm trying to host my application in IIS.When I attempt to access my application (ie: http://www.mysite.com/myapp.exe) it downloads all the assemblies correctly but when it tries to run it throws a "System.TypeIntialization" exception... this seems to be thrown by System.Drawing.I ...

Multiple MainMenu problem

410 byte By codefund.com at 2008-3-1
I have a Form with 3 MainMenus on it. I am trying to make as follows: foreach menu in "MenuCollection" menu.some_method My Problem is that I do not know where the "MenuCollection" is. I cannot create the collection manually. I know that all controls on a Form are in ...

C# source avaliable!!!

291 byte By codefund.com at 2008-2-28
C# and VB versions running on .NET Framework 1.1 will be coming within 2 weeks…. In the meantime, by popular demand, <a href=" http://windowsforms.net/downloads/taskvision/TaskVision_FullSource_CS.zip">TaskVision source in C# source for .NET Framework 1.0</a>. - mike

Merging MenuStrips

304 byte By WilliamW at 2008-2-28
How are you supposed to create merge menus using the MenuStrip control in VS2005 Beta 2? I can't successfully get MDI child forms merge with the MDI parent using the merge index, and I'm not sure if I'm just not doing it right or if it is a bug.Can someone please point me in the right ...

Clearing a Formatted DataGridView

576 byte By KhalidMirza at 2008-2-28
When I try to clear controls and DataviewGrid from a panel which has bound data, it takes several seconds to do it, when I have this lineGridHandle.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCellsIf Comment this line then it clears fast. If comment the above line then it clears ...

IE Hosted Control loading Assembly/Module built with C++

698 byte By codefund.com at 2008-2-28
I have a UserControl which should use constants from a C++ header file which I've modified to generate managed types (called cppLib).My control is hosted in IE. I haven't been able to build my control such that: 1. The cppLib is included in my control's assembly DLLor 2. cppLib is loaded ...

Does it really exist? (System.ComponentModel.Design.ComponentDesigner)

1272 byte By codefund.com at 2008-2-28
I know it seams stupid to ask this question, but I have some problems using the class mentioned above.I was learning how to create control designers, I am using the .NET framework 1.1 Final Beta, and Microsoft Visual Studio .NET 2003 Final Beta, I've created a new class and I was trying to ...

Timer Question

281 byte By codefund.com at 2008-2-27
Hi, In tmrGetTasks_Tick() event code checks - m_AsyncTasksResult.IsCompleted == true - CType(m_AsyncTasksResult.AsyncState, IAsyncResult).IsCompleted What is the significance of send check? Why similar check is not done in tmrGetProjectHistory_Tick() ? Thanks,

ContextMenuStrip Problems

817 byte By DarrenStones at 2008-2-27
Hello Everyone,VS BETA 2I have a MenuStrip with the standard items. I wish to create a contextmenu dynamically with the edit menu dropdown items in it. Obviously I don't wish to duplicate event handlers and of course I don't want to hard code the creation of the items.Why does the ...

Advice requested: Windows Forms Binding:

2042 byte By RussellMangel at 2008-2-27
I have been trying to get the following Windows Forms binding working, without success.The following Code, successfully populates the GridControl, and both combo boxes with data. The two comboBoxes represent: SalesOrderType, and SalesOrderStatus. There six SalesOrderTypes, and five ...

Smart Client Deployment

632 byte By codefund.com at 2008-2-27
Greetings.I've created a little application that fires from a web link and does some functions. I cannot get the application to fire consistently on all machines in my office. I followed all the instructions for setting security and such on the machines, and I still cannot get the app to fire ...

custom code generation,designers

533 byte By codefund.com at 2008-2-27
hi,we develop an "addin project". we want to generate a new project item like as XSD Schema.our intention is to provide a view which is similar to xml schema document template. we want to drag-drop user controls from toolbox on to this document view , on the code part like xml-schema ...

How can I disable tooltip on a button column in a datagridview?

449 byte By Rick at 2008-2-27
I have a windows form with a datagridview. The first column is a bound column of type DataGridViewButtonColumn. the button shows the value of the column as its text. Everything works as intended. The problem is that a tooltip is displayed when hovering over the button showing the same text that appe...

Is there a way to ONLY install the source code...

171 byte By codefund.com at 2008-2-26
I'm getting an 80005000 error on the install. I'm only after the source code at this point. Is there a way to just innstall that and not the db or web pages? Kyle!

When is the LostFocus event actually fired?

546 byte By HenrikDahl at 2008-2-26
Hello!In the documentation it reads "Occurs when the control loses focus". As far as I understand e.g. a TabPage's LostFocus event should fire when focus leaves the page, e.g. by putting focus at anoter page or outside the TabControl. I suppose I may explicitly assign focus at a control by ...

DataBinding memory leak in Windows Forms 1.1

503 byte By RussellMangel at 2008-2-26
I am currently writing a Windows Forms Application using Beta 2 in C#.I will be using data binding.I understand that the .net framework 1.1 has a memory leak http://support.microsoft.com/default.aspx?scid=kb;en-us;813137Has this memory leak been resolved in the new 2.0 Framework?ThanksRussell ...

why so slow when database controls were involved?

458 byte By codefund.com at 2008-2-26
i wrote an application, which was meant to be deployed via web server using smart client technology.however, i found that it is very SLOW for client pc to start the application. it could take one minute to start an 8kb application. i checked and checked, then i realized it was my datagrid which ...

expandable property in property window

515 byte By codefund.com at 2008-2-26
hi, i generate a user control and i could add into toolbox. i added some new properties to the user control. but i want that these properties can be expandable into property browser. for example: "size" property of any form control has two sub properties as "width" and ...

remote server is unreachable or the request has timed out

1331 byte By codefund.com at 2008-2-25
I've installed the Client and server applications to two different Windows 2000 machines and get the same error on both when I start the client "The remote server is unreachable or the request has timed out."I have SQL Server 2000 and sa has a blank password. The SQL Server instance ...

farsi label

1016 byte By villupuram at 2008-2-25
Hi guys, Iam trying to use a label control in my winforms. When I assign(thru the form designer) a farsi word or any arabic word it becomes reversed(xyz --> zyx). If I assign the value in run time it has no problem. The same problem exists in button control also. Some body please ...

VS 2005 CheckBox bound to SQL Server 2000

760 byte By BobHeitzman at 2008-2-25
Using VS 2005 beta 2. I did a drag and drop of a data source table that points to an existing SQL Server 2000 table. I want to use a chekbox with a few fields. They are defined as smallint and have nulls, 0, and 1 in the exisitng data. The chekboxs show up OK on the form in IDE but at runtime ...

Q305624 hosting controls from the filesystem

2154 byte By codefund.com at 2008-2-25
I'm attempting to host a windows forms control derived from the localfilesystem in an html page within IE 6 according to the procedures layed outin http://support.microsoft.com/default.aspx?scid=kb;en-us;Q305624to test this I've been using the SimpleHost example from the SDK's quickstart ...

Dynamic User Controls, Custom Properties

3100 byte By codefund.com at 2008-2-25
I created a User Control under VB.net and I want to add the control dynamically. Thats all working. I get the control added and I have managed to access the standard properties, however I am not able to access the Custom Properties I have defined on my User Control. It has to do with the way I ...

Real time updates?

316 byte By codefund.com at 2008-2-24
I downloaded task vision today and think it is great.I opened two instances, made an update in one instance and couldnt get it to show up in the other instance. I am creating an app similar to task vision and require this functionality.Does anyone have any ideas, or has anybody done this in the ...

TextFormatFlags.TabStop?

262 byte By MichaelWeinhardt at 2008-2-24
Hi Guys, What is the difference between TextFormatFlags.ExpandTabs and TextFormatFlags.TabStop? Or, rather, how do you set tab stops, or use TextFormatFlags and TextRenderer to provide the same tab stop behavior as StringFormat? Thanks, Michael Weinhardt

Databing a grid with web service object

226 byte By santanu at 2008-2-24
I was using a datagrid binding it with a web service object, i was just wondering whether it is better to bind a grid with the webservice object directly or using certain datasets to bind the datagrid to the webservice object.

Web Deploying - Using Config Files?

426 byte By codefund.com at 2008-2-24
Hi All,I am creating a win app that is deployed via Web/No Touch/Internet/Zero Deployment (pick a name, any name :) and am running into problems with the config file. My app uses a config file for settings etc that I don't want compiled, but when I run the program it doesn't appear to ...