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
all groups > vb.net > march 2006 > threads for thursday march 30

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

How can I get caption of all open windows??
Posted by M O J O at 3/30/2006 11:58:03 PM
Hi, I need to to get the caption of all open windows. Not only for my application, but for all running programs. I know it has something to do with Win32 EnumWindows, but I've tried some examples, but can't make it work. I need the sample code .... please! :o) Thank you in advance! ...more >>


"AutoScroll event" in Panel
Posted by Tom Bianchi at 3/30/2006 11:28:40 PM
Hi, I have a Panel with the AutoScroll property set to True and many TextBoxes into it, with only some of them positioned in the visible portion of the panel. Is there a Panel event that I can handle when I tab from textbox to textbox and the panel has to scroll *automatically* from the cu...more >>

VB.NET A simple question
Posted by anilkoli NO[at]SPAM gmail.com at 3/30/2006 11:21:18 PM
Whether all VB.NET applications are implemented using layered approach e.g. GUI,Business layer, Data Access layer and Back-end. I come to know that at professional level, some projects are implemented by using more than four layers, in that case how application are written and what type of OO ...more >>

VB.NET Alternative solution for serialization
Posted by anilkoli NO[at]SPAM gmail.com at 3/30/2006 10:51:38 PM
When object are serialized they are stored physically in a file(e.g. XML). But if I want to deal with remote computers I have to provide details about file where object is serialized or send that file physically. Instead of serializing an object to a file I want alternative and I have followi...more >>

How do I detect a form being opened already
Posted by RichG at 3/30/2006 9:10:02 PM
In VB 5 I could have a form named frmTest and open it with frmTest.Show Now in VB.net I have to Dim frm as New frmTest frm.show The problem is I only want one instance of frmTest open, not a new one each time. Is there a way to prevent this, or test for the form being open already? T...more >>

.Net and Windows 98
Posted by Devlei at 3/30/2006 8:20:48 PM
Can anyone point me to articles that detail how to correct deployment problems to Windows 98? For example, how do I know what is supported and what is not. Any assistance will be greatly appreciated!! Dave ...more >>

Send raw packet
Posted by Stanley at 3/30/2006 8:14:17 PM
Hi all, is it possible to send raw packet in vb.net like the following: 00 50 DA B8 A2 E4 00 08 75 00 00 54 88 64 11 00 00 19 00 12 C0 21 05 07 00 10 6F ED 58 BA 00 3C CD 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 It's not a TCP/IP packet, it'...more >>

PERFORMANCE QUESTION
Posted by Savas Ates at 3/30/2006 7:51:08 PM
I want to built a web page which is gonna have multiple languages. Which one is the best way ? Using a Xml file to store languages and their corresponding fields or Using a MS-SQL Database ? What do you recommend me to have best performance about multilanguage web-sites? ...more >>



VB 2005 variable declaration syntax
Posted by Mark Berry at 3/30/2006 5:53:51 PM
Hi, I'm moving from VB6 to VB 2005. Two questions: 1. One book I'm using has syntax like Dim testConnection as SqlConnection = New SqlConnection(connectionString) However, the Help for the Dim statement says, "If you use New, you do not use an initializer expression. Instead, you ...more >>

Print any doc ( .doc, .xls, .pdf, .jpg, .etc )
Posted by MSDN at 3/30/2006 5:25:18 PM
Hi, I have a folder with many different document types ( .doc, .xls, .pdf, .jpg, ..etc ) how do I print them all? I need to do this loop print next document endloop what are the ways of programmatically telling, M.S. Word for example, to open the document and print it. I can op...more >>

Check Mapped Drive is Connected
Posted by Ben at 3/30/2006 4:35:48 PM
Hi I need to check that a mapped drive is connected before continuing some code. How can i do this? Many thanks B ...more >>

Recast an exception to its original type
Posted by Jonas at 3/30/2006 4:12:12 PM
Hi! I have a general error logging routine that takes a parameter of type Exception. But if I send in a SqlException, I loose all the Sql-specific information as the variable is casted to an ordinary Exception. How do I recast it to its original type without having to hard-code all differen...more >>

Select TWAIN Source (VB.NET 2005)
Posted by Dustin Davis at 3/30/2006 4:01:23 PM
I'm hoping there is a TWAIN expert lurking here somewhere :) I'm writing a very customized application. The software will be set up in multiple location and will always have two types of scanners attached to the computer. The scanners are microfilm/fiche and a flatbed. So I've created a sc...more >>

Saving binary to varbinary(max) data column in SQLserver 05
Posted by Bill Nguyen at 3/30/2006 3:41:32 PM
I need sample code to insert binary file (mappoint map file) into a varbinary column using VB.NET. Please help! Thanks Bill ...more >>

Adjusting output to a rich text box
Posted by dbo at 3/30/2006 3:12:35 PM
I'm looking to output text to a rich text box. The number of characters and lines will always be different. I need the output to fill the whole rich text box everytime. How can I do this? Thanks Dan ...more >>

A question on Types coming from a Database
Posted by pamelafluente NO[at]SPAM libero.it at 3/30/2006 2:27:50 PM
Hi, While for the various NET types: Boolean, Decimal, ... , String, Char, BYTE [] , I have seen them sometines appear as a result of a SELECT from a Database, I would like to ask, given a generical OLEDB connection to a database, is it ever *possible* that the data would be rendered in one o...more >>

Remembering Sort Order on WinForms DataGrid
Posted by Joseph Ferris at 3/30/2006 2:09:47 PM
Hello, Is it possible to retrieve and set the sort order for a DataGrid control on a WinForm? I had a user request this functionality, and I can't seem to find a place to set and retrieve it from. Am I missing something, or is this something that is more difficult to do than is worth the ti...more >>

memory stream, xmltextwriter issue
Posted by hharry at 3/30/2006 1:48:33 PM
hi all i have the following class: <Serializable()> _ Public Class MVR_Inputs Public FirstName As String Public MiddleName As String Public LastName As String Public Suffix As String Public Dob As String Public Ssn As String Public Gender As String Publ...more >>

Viewing Word Docs in Tabs
Posted by aolson NO[at]SPAM phoeintl.com at 3/30/2006 1:39:17 PM
First of all i am pretty new to VB .NET as a whole so my answer may be silly as may my questions. Here is what i would like to do. I would like to open potentially multiple word documents for viewing only in a tab control. Each Word document should open in its own tab. Sometimes there may be ...more >>

Sorting an excel spreadsheet
Posted by Dwight at 3/30/2006 12:01:33 PM
The place I'm working for has a need to sort an excel spread sheet the contains data from bill of materials. The spreadsheets can be up to 60,000 records. We had a process that did it in a macro but didn't do it correctly. Another developer wrote a program in VB.net and did a recursive hieart...more >>

DataGridView DataBinding
Posted by helpful sql at 3/30/2006 12:00:07 PM
Hi all, I have a DataGridView control in my Windows Forms application. I am binding it to a DataTable in another assembly. The name of the assembly is ActivityListDALC. I want to bind my grid to ActivityListDataSet.ActivityListDataTable in this assembly. I selected this DataTable in t...more >>

Please help!?! OutOfMemoryException
Posted by juvi at 3/30/2006 11:43:02 AM
Dim myGraphics As System.Drawing.Graphics Dim buffer As Bitmap Dim fr_bm As Bitmap Dim to_bm As Bitmap Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick pbxclock.Refresh() pbxclock.Image.Dispose() ...more >>

Function returns two values
Posted by Brian Cahill at 3/30/2006 11:17:46 AM
Hello, I am trying to write a function that returns two values but I can't figure out the syntax or if it's even possible. Private Function CTXScanner(ByVal mfSvr As String, ByVal xmlstr As String, ByVal xslstr As String) Try For Each HotfixItem In M...more >>

Can execute a query with multiple parameters
Posted by mrmagoo at 3/30/2006 10:16:39 AM
Dim cn As SqlConnection = New SqlConnection("<ConnStr>") cn.Open() Dim cmd As SqlCommand = New SqlCommand("scsp_Stored_Proc", cn) cmd.CommandType = CommandType.StoredProcedure Dim pc As SqlParameterCollection = cmd.Parameters pc.Add("@Param1", P...more >>

Do properties return byref or byval?
Posted by Monty at 3/30/2006 9:31:10 AM
Silly question: If I return an object from a property, is it returned ByRef or ByVal? Is there a way to specify one way or the other? For instance, will the code that calls the MyObject() property below get a cMyObject as ByRef or ByVal? Thanks. Public ReadOnly Property MyObject() As c...more >>

Serilization of custom object
Posted by Squigge NO[at]SPAM gmail.com at 3/30/2006 9:09:12 AM
Hello, I've been trying to serialize a custom object for transfer to a web services and I'm running into a lot of problems. First of all, I'm wanting to serialize the entire object, both private and public properties. It seems as though when I try to accomplish this using the XmlSerializer objec...more >>

Form size ???
Posted by Galen Somerville at 3/30/2006 8:36:15 AM
My current screen resolution is set to 1024 x 768. My form size always comes up as 1032 x 748. I have tried the help sample ' Retrieve the working rectangle from the Screen class ' using the PrimaryScreen and the WorkingArea properties. Dim workingRectangle As System....more >>

.vbprog not installed! VB 2005 - URGENT
Posted by Bill Nguyen at 3/30/2006 8:30:18 AM
I converted a VB 03 app to VB 05 app successfully. It worked fine on my machine at home. I made a complete copy of the folder, copied to the machine at work and loaded the solution .SLN. I got the error "The application for project whatever.vbprog is not installed...." I checked and whatever...more >>

select text in textbox
Posted by cj at 3/30/2006 8:27:32 AM
I asked this question a couple of days ago but am just now looking at it again. I used to use the textbox gotfoucs event to have all the text in the textbox selected when it gotfocus. That doesn't seem to work in .net when the textbox receives focus via a mouse click. Jeffrey and Shane ...more >>

New entry in combox
Posted by George at 3/30/2006 7:11:04 AM
Hi all, I currently have a combobox that is filled with names and that works great. I am using the SelectedIndexChanged event to see when the user clicks/selects an existing entry in the combobox. When that happens, a sub is called to pull the related data from a database and display on t...more >>

programmatically setting form size
Posted by campbellbrian2001 NO[at]SPAM yahoo.com at 3/30/2006 5:25:02 AM
Thanks in advance to anyone who can tell me how to programmatically keep a user from changing a form size. I need to do this in code rather than from the properties menu. Thanks! ...more >>

Operators do not work in VB.NET with a C# referenced assembly
Posted by mkeggen NO[at]SPAM hotmail.com at 3/30/2006 5:23:14 AM
Unfortunately due to project constraints I have to code in VB.NET of which I have little experience with. I have a C# assembly referenced which contains an object where the + and - operators have been successfully overridden and in my other C# projects the following code (changed for posting) c...more >>

call method on passed form
Posted by Tim at 3/30/2006 4:34:32 AM
hi all If I pass a form to a sub as a parameter: eg call mysub(me) how can I call methods on that form? eg sub mysub(FRM as system.windows.forms.form) x=FRM.getxvalue() end sub I can get generic stuff like FRM.controls, or FRM.name, but nothing that I have created my self. Any...more >>

Easily upgrade B to VB.NET
Posted by hulkko123 NO[at]SPAM yahoo.com at 3/30/2006 3:46:54 AM
Hello people! I got a nice task, upgrading a VB 6.0 project to VB.NET. I opened VB 6.0 project file with VS.NET 2003 and a new project was created. But, of cource there were tons on errors or warnings. You might quess my question: What is the easiest way to correct those errors and warnings...more >>

Noise
Posted by philip at 3/30/2006 1:42:40 AM
I use a WebControl on my form, and I write some Html Code to show some data of my Access Database. I prefer use WebControl than FlowLayoutPanel, because the first is faster. After writing HTML string, I send the string to the property DocumentText of the WebControl. BUT, each time I change...more >>

3rd party grid control in Visual Basic.net 2005
Posted by Stanley Sin at 3/30/2006 1:07:28 AM
Dear all , Could anyone suggest some good 3rd party grid control of visual basic.net 2005? Any free? Thanks in advance. BR, Stanley ...more >>

Convert IsMissing, IsNull, VBempty to vb.net
Posted by briancfk NO[at]SPAM gmail.com at 3/30/2006 12:54:21 AM
I now converting vb6 code to vb.net code Let me descrip my problem first i got a Function e.g. Public Function Method1(Byval ar as object, Optional ByVal strWHFrom As String, Optional ByVal strWHTo As String) as string ........ If IsMissing(strWHFrom) And IsMissing(strWHTo) Then ...more >>

VB .Net with ADSI problem
Posted by Jonathan Smith at 3/30/2006 12:38:02 AM
I am trying to develop an app using ADSI. I have the following code: Dim ADSUser As IADsUser ADSUser = GetObject("LDAP://CN=jonsmith,CN=users,DC=domain,DC=com") MessageBox.Show(ADSUser.EmailAddress) When i try and run the program, i get the following error: Cannot ...more >>

Basic Question - Working with forms
Posted by Chris Strug at 3/30/2006 12:00:00 AM
Hi there, Possibly something of a simple question but I was wondering is anyone could provide a few pointers or links. Given that I have two forms, a main (frmMain) and a child (frmChild). From frmMain, I create an instance of frmChild and show() it. The child form contains a property ca...more >>

System Volume Information
Posted by TyBreaker at 3/30/2006 12:00:00 AM
Hi, I'm iterating through the folders on my system and am getting an exception with "System Volume Information". Obviously it's a region I'm not supposed to access so I'm trying to filter it out by checking for the folder name before trying to use it: If Folder.Name <> "System Volume Infor...more >>

Agent Application
Posted by Richy at 3/30/2006 12:00:00 AM
Hi All, I am trying to create and application that when launched appears on the power bar with out launching a dialoge box. When double clicked it produces a dialogue box. I can't seem to find away to launch it just on the power bar without first loading a form ? Also i would like to us...more >>


DevelopmentNow Blog