Archived Months
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


all groups > vb.net controls > september 2004

Filter by week: 1 2 3 4 5

Newbie help
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 9/29/2004 10:32:20 PM
Hi all I have problem regarding Group box in vb.net Currently i am using group box and placing option button in it. I want to set background color for group box. But the problem is after setting background color, the color appearing outside the boundary of frame control. I want the color to be...more >>

Retrieve info from combobox while adding objects of any type ??
Posted by Mendhak at 9/29/2004 5:58:07 PM
Hi All, When you add an object to a combobox, and run the application, you'll get something like this: System.Windows.Forms.Button, Text: Button1 (for example). Is it possible to have just the text/value in the object to be displayed in the combobox, yet at the same time when retrievi...more >>

How to read All Data from SerialPort (2005)
Posted by DraguVaso at 9/29/2004 2:09:01 PM
Hi, I'm experimenting with the Serial Port in VB.NET 2005. Although it isn't that easy to get any feedback from my COM-port as I thought it would be... How can I read all the Data that the port sends back? I tryed with SerialPort1.ReadLine, but that blocks the application and takes a lot ...more >>

HOWTO: Receive User Control Button Click In Parent Page
Posted by Dan Sikorsky at 9/29/2004 8:16:26 AM
How do you act on a user control's (.ascx) button click event in the containing page (.aspx) ? Should event bubbling be considered? Does this even make sense to try and do? Should the user control's button click just 'submit' the page and then let the Page_Load event get the user control ...more >>

DataGrid Grouping
Posted by Norton at 9/28/2004 4:56:47 PM
Hi all I would like to write a window application which allow me to perform grouping function in a datagrid, but all of the grid with grouping function requires money. May i know if there any opensource/freeware datagrid project availiable ? Thx for your kindest help Regards, Norton ...more >>

Retrive a value from DataGrid
Posted by Partha Protim Roy at 9/28/2004 2:49:27 PM
I want retrive value from specific row,column of a datagrid. In VB 6 if I write this code in DataGrid on DoubleClick, I will get the value of row,column depending on the record that I have selected. Dim ASID As Double ASID = dgPS.Columns(0) How I will achive this in VB.Net? Partha ...more >>

Getting Text from a RichEdit20a
Posted by DancinDom at 9/28/2004 2:02:51 PM
I am primarily a web developer, but I am branching out for this project into the world of Windows Forms. I am looking for any help, examples, samples to show me how to retrieve text from a RichEdit20a (or RichEdit20w) that exists in another application running on the same box. This is the o...more >>

writing date to files
Posted by Sameh Ahmed at 9/28/2004 1:42:15 PM
Hello there Need to write strings to a file. What classes should I use, instead of using createObject("scripting.FileSystemObject") and open textfile method. Thanks in advance Sameh ...more >>



An Elementary Scope Question
Posted by eBob.com at 9/27/2004 11:18:12 PM
(I haven't done much OO programming, so please be understanding ...) In my user control I have a Dim statement (Dim mintAge As Int32 = 0) following the Class statement but before the first Property statement and all Subs. But when I reference mintAge within the InitializeComponent sub I get a...more >>

Deafult Value of a User Control Property ?
Posted by eBob.com at 9/27/2004 1:57:10 PM
I've created a User Control and given it a property using the folloing code ... <Description("AgeP (in days)"), _ DefaultValue(5)> _ Property AgeP() As Int32 Get Return AgeP End Get Set(ByVal Value As Int32) AgeP = Value En...more >>

Binding DataGrid to SQLDataReader
Posted by Partha Protim Roy at 9/27/2004 12:00:38 PM
Hello Can I bind DataGrid to SQLDataReader. If some body can help me in this issue. Regards Partha ...more >>

Closing as Form
Posted by Partha Protim Roy at 9/27/2004 11:47:53 AM
Hello, My problem is: I got a Login form, so once the user enter vaild Username & Password another form opens. How do I close the login form? Can any body help me! ...more >>

Command button with down arrow?
Posted by Bill at 9/26/2004 10:59:55 AM
Can anyone tell me if there is a term for the control that looks like a command button with a droplist arrow on the right side? The arrow works like a droplist that lets the user change the caption on the command button. In Outlook 2003, I believe the New Contact dialog has one for entering ad...more >>

Dataset problem, who can help me?
Posted by Andy at 9/24/2004 6:59:04 PM
Hi, I use firebird database in my problem, but when i update a dataset, an Exception was throwed and the message is: "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information". I don't know why?...more >>

Web Grid
Posted by Darren Gulliver at 9/23/2004 11:55:25 AM
Hi, Is there a grid out there for WebForms where you do not bind to a DataSource? Regards Darren ...more >>

ASP to continue processing.
Posted by Sam at 9/22/2004 1:50:39 PM
i'm writing a VB.NET component that gets called from an ASP page. i want the component to continue to process while it sent back a response to the asp page that it's ok. how do i declare that the component to conintue to process and the asp page can go on? i'm sending out emails and i don't n...more >>

Listview,checkbox problem
Posted by Andy at 9/21/2004 10:19:05 PM
I want to place a checkbox in a listview's subitem? but no way, how can i do it?...more >>

Datagrid, dataview refresh issue
Posted by zdrakec NO[at]SPAM yahoo.com at 9/21/2004 10:40:38 AM
Hello all: I have a datagrid bound to a dataview. When my user enters a new row, and selects an Update option, the new row is inserted and the new ID for the row should be displayed. However, although the insert is occuring correctly, the grid is not refreshing to display the new ID (which is...more >>

Form Inheritance: Specified Cast Is Not Valid?
Posted by James at 9/20/2004 6:19:37 PM
I have the above problem with an inherited form, which was working previously. I have a base form, frmBase which is inherited by my user forms. When I try to 'design' either frmBase or a user form, I get either the 'Specified Cast Is Not Valid' error, or the 'Ambiguous Match' error. Both...more >>

Find data on access database
Posted by Booster at 9/20/2004 7:54:38 AM
Hi I am a beginner working with VB.net Ho to: find data in another column using the index number "ParamID", also the possibility to updata the data in "ParamVal". This is a Parameter table "tblParameter" in an access BE-database ParamID ParamDescr ParamVal 1 User xxxxxx ...more >>

Reference page object from User Control
Posted by Sammy at 9/19/2004 12:58:07 AM
Hi, how can i reference page object from a user control i am trying to use RegisterClientScriptBlock in a .ascx.vb file? Thanks ...more >>

DataGrid Combo Box problem
Posted by Ron L at 9/17/2004 9:45:59 AM
I have a dataset whose source is a SQL 2k stored procedure that I am trying to display in a datagrid. This datasource has 4 columns that I am interested in here, a text column and 3 value columns corresponding to permissions to certain data classes. I want to put the permission values in c...more >>

"Windows Forms" Toolbox vanished
Posted by Jerry Spence1 at 9/17/2004 12:17:20 AM
I haven't got a "Windows Forms" tab in my toolbox. I think I accidentally right clicked and deleted it. How do I get it back? -Jerry ...more >>

Building context menu on the fly
Posted by Sameh Ahmed at 9/16/2004 2:19:11 PM
Hello there Need to create a context menu in runtime, everything is ok except that I need to check if a menuitem called "whatever" already exists in the context menu. Below is the code I use that gives an "Object reference not set to an instance of an object" error Any ideas how I can do that....more >>

Problems setting up datagrid
Posted by Ron L at 9/16/2004 12:26:22 PM
I am attempting to set up a datagrid that will 1) display a subset of data from a SQL Stored Procedure in a different order form how SQL returns it, and 2) display 3 of the columns using pulldowns. I have gotten code for both from the www.syncfusion.com site, but am having trouble making them w...more >>

Custom Date Control
Posted by SQLScott at 9/16/2004 5:43:04 AM
Can someone point me to an article or a good source of information on how to create a custom date control? Using the datetime picker control in our app is not an option, so I'd like to create a custom control based on the text box that accepts valid dates (such as thru a mask) or whatever. ...more >>

custom border using WM_NCPAINT for textbox on a tranaparent form problem
Posted by Sk at 9/15/2004 12:37:58 PM
Hello, I have a text box with custom border, I am attaching the code for my control below. Basically my derived control draws custom border in WM_NCPAINT message. This control works fine when placed on a .net form. But when i change the opacity of the form to anything other than 100...more >>

Menu Item Show Short Cut Property
Posted by Norton at 9/15/2004 10:18:05 AM
Hi All , I would like to use define a short cut for my menu item like "&File" (like the steps illustrated in http://www.developerfusion.com/show/1770/5/) I set the showshortcut property to "True" but i wanna want the underscore "F" shown whenever the user load the form, instead of pressing "A...more >>

Can anyone convert this code to vb.net?
Posted by Sammy at 9/13/2004 9:19:08 PM
Hi, can anyone convert this C# code to vb.net? private void Page_Load(object sender, System.EventArgs e) { Control c = this.FindControl ("myBody"); c.Attributes["onresize"]="resizeHeights()"; c.Attributes["onfocus"]="IsAlertNeeded()"; ...more >>

Please help
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 9/13/2004 12:03:55 AM
hi all i have one problem at a time of using foldernameeditor.folderbrowser in vb.net 1.0. At a time of opening browseforfolder dialog i have to set default path to some folder say "C:\\test". but i haven't found any property or method to set directory path at a time of opening browseforfolder...more >>

Paste HTML content to RichTextBox issue! Please help!!
Posted by Larry Cheung at 9/10/2004 10:02:39 PM
Hi all, When I copy the web content from a browser (IE) and then paste it to a RichTextBox control, the content pasted is totally a messy. All images disappeared and formatting is gone! However, if I paste it to a Microsoft Word document, the outcome is very good. Image and formatting ar...more >>

How to MultiSelect Rows in a DBGrid?
Posted by John Rugo at 9/9/2004 4:34:37 PM
Hi All, How can I select multiple rows in a DBGrid? I have the grid set up so that the entire row is selected when clicked on, and the cells are not editable. I am only able to Select Multiple rows if I click on the Left Column Boarder; but, I have that hidden and it's not practicle. Any...more >>

Catch a second webpage.
Posted by Eric Dreksler at 9/9/2004 3:03:32 PM
Hi, I'm putting together an app that has the COM Microsoft Web Browser embedded into it. The point is I have to download and parse through a few webpages that contain data that needs to be extracted, there are several of these pages and the users don't want to have to save each one then open ...more >>

How to refrence a form from another form?
Posted by John Rugo at 9/9/2004 10:12:41 AM
Hi All, I need some help. I have a form that is called, and can be called in multiple instances. For instance, I have the following procedure: Private Sub OpenForm() DIM NewForm as New frmTest NewForm.Show End Sub From this form "NewForm", I can open another form "FRM2" that all...more >>

vb.net browser refreshing
Posted by hdeniz NO[at]SPAM mail.endicott.edu at 9/9/2004 9:23:17 AM
Hi I wrote a vb.net program which basically works as an internet browser. I have two last things i need to do but i almost tried and searched for everything did not have a good answer. My browser works as a live web chat client that keeps refreshing itself from the internet page assigned. I...more >>

presenting html file in richtextbox
Posted by Larry Cheung at 9/9/2004 7:54:36 AM
Hi, Is ther anyway I can present a html file on a win form? I have tried richtextbox. However, it can only accept text or richtext file format. I would like to use this feature to, for example, present a html email in a form, may allow user to some editing as well. Any help is higly app...more >>

Treeview Sample Code
Posted by Sean at 9/9/2004 3:21:31 AM
Cound anyone provide me with some URLs for the use of treeview control (with checkboxes)? Specially on how to dump the tree to an xml file. Thanks, Shenc -- ...more >>

Problems with Installed Crystal Reports Controls
Posted by Atley at 9/8/2004 1:50:02 PM
I have written a couple of applications that use the Crystal Reports that comes with my Visual Studio Ent Arch 2003. The applications work beautifully on the development machine. I made install programs and tried to install the applications on a few different machines. The applications all c...more >>

DataGrid Binding Boolean Property of Custom Objects
Posted by ngspamshield NO[at]SPAM yahoo.com at 9/8/2004 11:52:23 AM
I am experimenting with binding collections of custom objects to a DataGrid. I am having problems with the DataGridBoolColumn style that I am mapping to my boolean properties: I cannot turn off the tri-state behavior. Setting AllowNulls = false does not work. I also get an error "Cannot Winen fr...more >>

Overwhelmed by the DataGrid
Posted by Rob Richardson at 9/6/2004 5:47:41 PM
Greetings! I am trying to figure out how to work with the DataGrid control. I am able to bind it to a SQL Server view by loading the view into a DataTable and setting the grid's DataSource property to that DataTable. The grid shows the contents of the view and sorts them very nicely. But wh...more >>

LimitToList in VB.Net
Posted by Atley at 9/3/2004 12:08:37 PM
is there an equivilant to the Limit To List property in VB.net 2003? I can't seem to find it, but I do not want users to be able to type in my comboboxes and try to choose something that isn't in the list. any help would be appreciated. ...more >>

Which control has focus
Posted by starbuck at 9/3/2004 9:44:47 AM
Hi I know there a way of detecting which control has focus on a form in vb.net but I cannot remember it. Can someone jog my memory please. Thanks --- Outgoing mail is certified Virus Free, so am I. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.745 / Virus Da...more >>

The variable is either undeclared or was never assigned in VB.NET
Posted by Viet at 9/3/2004 8:45:35 AM
I am using MS Visual Studio 2002 and I am experiencing this issue with one of my VB.NET applications. This is a complex form and I don't understand why this error message pops up. The program compiles fine but when I try to run it, I get this error message. The strange problem is that on another ...more >>

Why Does This Not Work - DirectCast
Posted by Paul Timmerman at 9/3/2004 8:33:39 AM
Dim CurrentTabPage As Control CurrentTabPage = DirectCast("tcontrol.SelectedTab.Name", Control) MessageBox.Show(CurrentTabPage.Name) I get a SPECIFIED CAST IS NOT VALID Simply described: I want to determine the name of the tabpage that I am on (it is created dynamically) and then ...more >>

What seems like a simple thing...
Posted by Geoff at 9/2/2004 3:00:54 PM
Hi, all, I have a VB .NET (VS 2003) application that has a dropdown list or dropdown combo with checkboxes as a "3rd party control" linked to a ComponentOne TrueDBGrid cell button click event. When the user clicks on the grid cell, a list (either standard list or check combo) drops down wit...more >>

How do I check if printer exists ?
Posted by Dino Buljubasic at 9/1/2004 5:47:02 PM
I use in my code: ConstLeftMargin = PrintDocument1.PrinterSettings.DefaultPageSettings.PaperSize.height\40 to set left margin for my document. However, when printer is uninstalled,it crashes. How do I check if printer exists before accessing PrinterSettings object? Thank you...more >>

Interact With Dynamically Created Control
Posted by Paul Timmerman at 9/1/2004 4:37:04 PM
I am building an app in VB.NET. I have code that dynamically creates a textbox control and populates it based on some values in a dataset. The textbox is disabled upon creation. I am also creating a command button, that when clicked should enable the textbox. However, since I created ...more >>

Third-party controls
Posted by John Dann at 9/1/2004 11:41:18 AM
Is there a .Net newsgroup comparable to m.p.vb.3rdparty dealing with third-party (ie non-MS) controls, both commercial and shareware/freeware? Or would this be the place to ask about such controls? JGD...more >>

Limits on # of entries in a listbox control - .net
Posted by George Sze via .NET 247 at 9/1/2004 8:50:23 AM
I'm working with a COMM app that receives data from a serial= port=2E I display this data into a listbox control using VB =2Enet=2E= Hence, data is "flying" into the listbox for display=2E My= question: Is there a limit on the # of entries for a listbox= control? I believe the limit is ...more >>


DevelopmentNow Blog