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


all groups > vb.net > february 2005 > threads for friday february 4

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

tablet pc
Posted by Michael Sgier at 2/4/2005 11:36:13 PM
Hello how should I proceed for writing a handwritten comment into a database? As if have no clue at the moment about tablet PCs I'm grateful for any help. Thanks and regards Michael...more >>

Convert a VBA to VB.NET
Posted by Mamatha at 2/4/2005 10:54:04 PM
Hi I have a VBA code with forms as Excel,now i want to convert that same code to VB.NET,i need to use this application in VB.NET,so please give me the solution to convert VBA with Excel code into VB.NET like migration. I know through rewriting the code is possible,but i don't have time t...more >>

UDP and File Transfer
Posted by Landley at 2/4/2005 10:31:33 PM
Dear Fellow Coders, I am attempting to send files using UDP. I had no problem sending small files, but when the files were over a certain size an exception was thrown. It was moaning about the packet size. I have since tried to break the file into 16k chunks and send them in sequence. At ...more >>

Word as an MDI child
Posted by peshekeedweller at 2/4/2005 10:06:48 PM
In VB.net, how can I use automation to open a word document in a word window as a child window of an MDI form? Thanks in advance. ...more >>

Flaw in code for dragdrop listviews
Posted by Bernie Yaeger at 2/4/2005 9:43:54 PM
Following is the code for a drag/drop between 2 listviews (smallicon view). It has one serious flaw that I can't seem to solve: it allows either listview to drag and drop inside itself, thus duplicating the item: Private Sub ListView_ItemDrag(ByVal sender As Object, ByVal e As System.Windows....more >>

Reading through ArrayList Objects
Posted by Chrisg at 2/4/2005 9:01:01 PM
Hello, I have some code below that works, but I have to turn option strict off. Basically I am allowing a user to change the IP of an Adapter. Since they may have multiple adapters I read the Description and associated ServiceName from the registry and then bind the arraylist to a combo box...more >>

VB.net PowerPack
Posted by Ulrich Kulle at 2/4/2005 8:51:40 PM
Hi vb folks, I'm using VB.net Standard 2003 and added Visual Basic PowerPack to use the TaskPane control. I installed VB PowerPack but using the TaskPane destroyed the input function for my context menu. The input fields aren't coming up and there is no solution to get it back. Same thin...more >>

enable tabcontrol
Posted by Phil at 2/4/2005 8:43:54 PM
on my form I have a checkbox and a tab control when the checkbox is true I wish to enable the controls on a single page of the tab control, is this possible or do I need to enable each control on the tab control page. if you could supply and example of code it would be much appreciated thanks ...more >>



Form won't load
Posted by Lespaul36 at 2/4/2005 8:24:47 PM
I need a form to load on connection to a soket, but it hits the show and does nothing..doesn't crash, just hangs. Here is the code for the TCPListerner that I have set up. Private Sub DoListen() SocketChatS = New TcpListener(IPAddress.Any, MYPORT) SocketChatS.Start() ...more >>

Why does a query count (with GROUP BY) indicate more records than there are??
Posted by Hyphessobricon at 2/4/2005 7:20:49 PM
Hallo, Indeed, a count of a query with a group by function gives more records than there are and so for-next structures don't function. How is this to be mended. Anyone? Everyone in fact. Answers are greatly appreciated. -- mvg Hyphessobrycon ...more >>

set a datetimepicker.value to nothing?
Posted by Maria at 2/4/2005 6:18:51 PM
I've tried to search for a way to set a datetimepicker.value to nothing. I would like it to display nothing until the user select a value.. I know you can use a checkbox to disable the control - but I would like it to display nothing instead.. Is this possible? ...more >>

.Net Library to expose events.
Posted by OxyGen at 2/4/2005 5:10:13 PM
can i create an .Net Library wich expose events to all the aplications connected to it? ...more >>

Generating combo box items from a SQL database
Posted by TS at 2/4/2005 5:09:02 PM
Hi all, From my windows form, I opened a connection to a SQL database. Now I need to generate a combo box from a SELECT statement pointing to the last name column in the SQL tables. I am stuck with the code I should use to generate this combo box. I used to use ADO to open a connection to SQL...more >>

how to: instantiate object if only its name (e.g. "foo") is known
Posted by TR at 2/4/2005 4:19:36 PM
At runtime, I'd like to instantiate an object (e.g. myInvoice) when all I know is the name of the class that has to instantiated (e.g. "Invoice"). Dim DesiredClass as String = "Invoice" '// now create an instance of the desired class ??? Can this be done? I hope the question is clear. T...more >>

Establishing relationship
Posted by gaffar at 2/4/2005 3:55:10 PM
Sir, Below code(vb.net source code) is used to create a ms access database, tables and assigning primary keys. now i want the code to establish relationship between the tables. waiting for ur reply Thanking u sir. 'creating tables in the database ' ' This...more >>

String Array
Posted by C CORDON at 2/4/2005 3:32:15 PM
Is there a way to declare AND in the same line assign values to a string array? TIA ...more >>

check type of controls
Posted by Stefan at 2/4/2005 3:30:08 PM
Hi, i'm using code below to check if control is a button how can i check for more types of controls(like checkbox,...) in one 'nice piece" of code I tried to make a select case with 'typeof...is' but i didn't get it = work If Not TypeOf ctr Is Button Then AddHandler ctr.LostFocus, Address...more >>

Q: Getting a directory
Posted by Geoff Jones at 2/4/2005 3:23:30 PM
Hiya I have written a small application which I've then generated a setup project to install the application on other computers. How can I determine, from the application, where the program has been installed to? Thanks in advance Geoff ...more >>

Currency in class
Posted by C CORDON at 2/4/2005 3:14:26 PM
I am creating a windows Class library Project, but it won't let me declare any var as Currency! Why is this? TIA! :) ...more >>

Adding Rectangle/Box Around External Window
Posted by Alex Pierson at 2/4/2005 2:30:43 PM
I searched the VB and VB.net groups endlessly and cannot find any code to help me do this. What I'm trying to do is to draw a highlighted rectangle around a child window from another application. I have the handle for the other application window and can control it, but I cannot figure out ho...more >>

reading an xml file for a value
Posted by rodchar at 2/4/2005 2:23:05 PM
hey all, all i'm trying to do is retrieve text value from a particular node. and i can get it the way shown below but was wondering if there was a cleaner way. Because right now i'm looping thru the xml file looking for a particular node and when it finds it i go ahead and read one more tim...more >>

Pixel Plotting
Posted by Jacky Luk at 2/4/2005 2:20:08 PM
Hi PSet with VB6 seems obsolete. What is the replacement for .NET 2002? Thanks a lot Jack ...more >>

Focus issue
Posted by Tom at 2/4/2005 2:04:52 PM
Another question relating to focus: Is it possible to set the focus to another program's window and send it keystrokes, YET still keep my VB program in the foreground (i.e. showing on the screen)? For instance, I want to monitor another program's window and send keytstrokes to it, yet I want my ...more >>

Help with RunTime Form Issue
Posted by Chris Calzaretta at 2/4/2005 1:45:46 PM
I need to create a form from this web service http://24.163.239.122/wsprojecttrackerobjects/wsprojecttrackerobjects.asmx if you call getloginscreen there is a field called screendescription that field screendescription has the form code I am trying to create at runtime the code that is in the...more >>

InStr vs .IndexOf
Posted by PJSimon at 2/4/2005 1:29:02 PM
Let's say I want to find the occurance of SearchString in MyString, but I want to search without regard to case ... Which is better and why in VB.Net? Index = Instr(MyString, SearchString) - 1 or Index = MyString.ToUpper.IndexOf(SearchString.ToUpper)...more >>

custom title bar
Posted by Furer Ramon at 2/4/2005 1:23:18 PM
hi every one please i need know how to create a custom title bar like writing on title bar and change the look of maximize button and close button and so on using ..net framework Greets R. Furer ...more >>

problem with textbox in a user control
Posted by twnety0ne NO[at]SPAM yahoo.com at 2/4/2005 1:17:04 PM
Hi there, This is my problem: I developed a user control which contains a textbox. When the user control is a part of the main form, it should capture the enter button(i.e., respond to enter button). I tried using control_keyup event, but it doesnt fire., any ideas or suggestions. thanks in ...more >>

Date/Time Data Type
Posted by Tom at 2/4/2005 1:13:02 PM
In a JET db using ACCESS, I specify a field Data Type as Date/Time and the Format as Short Date. These dates appear as 1/3/2003, 3/31/2003 ..... in Access which is fine since I don't want the time. Yet in a VB.NET program, where I display the same data from the JET db in a textbox, they appear...more >>

Type Is Not Defined Error
Posted by Michael Erlewine at 2/4/2005 1:05:05 PM
I am getting BUILD ERRORS like"Type 'Introduction' is not Defined." 'Introduction is the name of a form I am using. I am trying to load this form from the main form. The code looks like this: Dim f3 As New Introduction() F3.ShowDialog() f3.dispose() I am getting BUILD ERRORS lik...more >>

Adjusting a services "CanStop" on the fly?
Posted by gregory_may at 2/4/2005 12:37:16 PM
According to this article, I cant change "CanStop" on the fly!!! http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemserviceprocessservicebaseclasscanstoptopic.asp So, how can I enable/disable the ability for a user to kill my service (Via Task Manager) on ...more >>

MS Please help.. Urgent problem with ListBox or TabControl
Posted by Alien2_51 at 2/4/2005 12:09:07 PM
I have a problem with a ListBox control that is on a TabControl, it seems to be forgetting which items are selected in the list when I tab off the current tab, here's my winform code... I even added a click event handler that resets the selected items based on whats in the collection it is dat...more >>

Is It Possible?
Posted by Chris Calzaretta at 2/4/2005 12:08:15 PM
From: "Chris Calzaretta" <ccalzaretta@hotmail.com> Subject: Re: Is It Possible? Date: Friday, February 04, 2005 11:44 AM Ok i am posting the code I need to create a form from this web service http://24.163.239.122/wsprojecttrackerobjects/wsprojecttrackerobjects.asmx if you call getloginscr...more >>

changing text in the form title bar....compile and runtime error
Posted by joisey NO[at]SPAM mindspring.com at 2/4/2005 11:54:55 AM
The last line in my Main() section is: form1.ShowDialog() The form appears, using the tile bar set in the properties window of the form designer. In the middle of form1, in one of my subs, I wish to change the tile bar or the form. I was using this line without problems: 'Form.Ac...more >>

How to override a method in usercontrol?
Posted by Tee at 2/4/2005 11:53:06 AM
Hi, I have a usercontrol with a overridable/virtual method. On the usercontrol onload, it will call this method. Now I have a form that have a few of this usercontrol. And I want to override the method in each usercontrol, how do I accomplish this? Thanks, Tee ...more >>

Colors in datagrid
Posted by Starbuck at 2/4/2005 11:39:48 AM
HI In a previous versino of one of our apps we would store numeric values such as 16777088 which we used to set the grid colors of a job on a TrueGrid grid in VB6. Now in VB.Net we are using the DataGrid and cannot convert these integer values to System.Drawing.Brush values. We have...more >>

Access COM port
Posted by James Wong at 2/4/2005 11:10:35 AM
Hi everybody, I'm planning to upgrade a VB6 application to VB.NET 2003. In which, some modules need to communicate with COM port to detect high/low bit signal and also send signal to COM port. In VB6 application, MSComm control is used. However, I can't find it or other related control in VB...more >>

Capture picture
Posted by Brian at 2/4/2005 10:39:02 AM
Hello, I need to write a program to capture a picture from a digital camera. I asked the question about a week ago and got some good responses. I found another problem though. The video card is RGB format and must stay that way to meet govt. standards. I have tried some of the sample c...more >>

Get reference to usercontrol's parent
Posted by Tom at 2/4/2005 10:11:47 AM
This seems like a dumb question, but here goes: In my own VB.NET user control, how do I gain access to the user controls parent? (i.e. the form that is hosting the user control) For instance, in the control I want to set the focus back to the main form that has the user control. Most other class...more >>

Restore screen in MDIForm
Posted by jaYPee at 2/4/2005 10:09:38 AM
I have an MDIForm and two child form. My problem is when I open the first child form the windows state is normal and then open the 2nd child form from this child form. When the 2nd child form is already open the windows state is maximized. now when I close this 2nd child form the 1st child form ...more >>

Is It Possible?
Posted by Chris Calzaretta at 2/4/2005 10:05:59 AM
What I am trying to do I have an application that I am trying to create forms at runtime. I have the code for that application being served out of a web service hitting sql database. It seems that I can not create the form at runtime. I am getting an error every time un...more >>

ADO.NET Sucks
Posted by Adam Clark at 2/4/2005 9:31:44 AM
I am having problems with ADO.NET I need a constant connection between my VB application and my sql database... can I use anything else other than legacy ADO? Does anyone know if microsoft is going to change ADO.NET so we can go back to realtime access to the database and not use datasets? ...more >>

Remove BackgroundImage from Form?
Posted by Michael Erlewine at 2/4/2005 9:16:07 AM
I loaded a background image onto a form, but now would like to remove it and have a blank form, so I can see to add contgrols. How does one do this? Thanks, Michael Erlewine ...more >>

Read pixels from other apps windows
Posted by Stacey at 2/4/2005 9:07:23 AM
I've been trying for the last couple of days to read some pixel values from a window of an independent application, but, even though I got close, I just can't figure the last part out. I am able to read the coordinates (GetWindowRect), but the GetPixel always returns some weird incremental val...more >>

Nammed Arguments in VB.NET??
Posted by Hanika at 2/4/2005 8:33:10 AM
Hello All, I onced used a very efficient method in VBScript to retrive nammed arguments passed on the commanline using: WScript.Arguments.Named.Item ("ArgumenName"). That is, the call to the script would be somthing like: script.wsf /ArgName:"Value of argument" Does anyone ...more >>

Q: Charts
Posted by Geoff Jones at 2/4/2005 8:31:24 AM
Hi Could anybody give me advice on which charting package I should buy i.e. which packages available are the best in your opinion? Ones I have heard of are: chartfx, dundas chart and componentone chart. Thanks in advance Geoff ...more >>

use C# code in vb.net project
Posted by mike w. at 2/4/2005 7:31:01 AM
I found some C# code on the web that I want to use in my vb.net project. How can I do this without translating the C# to VB.net? It's pretty nasty looking or I'd translate it myself stuff like #region COM Interop for IShellFolder [ComImportAttribute()] [GuidAttribute("000214E6-0000-0000-...more >>

casting an object
Posted by rodchar at 2/4/2005 6:51:01 AM
hey all, given: working with the outlook object model. Private Sub _oItems_ItemAdd(ByVal Item As Object) Handles _oItems.ItemAdd MessageBox.Show("You've got mail.") If TypeOf Item Is Outlook.MailItem Then _oMsg = DirectCast(Item, Outlook.MailItem) ...more >>

PictureBox fading effect
Posted by Not Aaron at 2/4/2005 6:45:09 AM
I am wanting to have a couple small images "fade in" a couple seconds after a form loads. Didn't find an opacity feature for the picture box, any ideas? thx ...more >>

arrange arrays in increasing order
Posted by nafri at 2/4/2005 4:45:03 AM
I have array of arrays. I need to arrange them in an increased order of their element 0 Here is what i want. dim InputArray()() = {{2,0,0},{1,0,0},{6,0,0},{3,0,0}} and this is the output outputArray()() = {{1,0,0},{2,0,0},{3,0,0},{6,0,0}} Has any body got any idea how to it. TIA na...more >>

How can we access .pst file information in VB.NET
Posted by Mamatha at 2/4/2005 4:04:48 AM
Hi I have a doubt,how to know the information of .pst file? I want to display the information of pst file (which is maintained by the outlook express) in VB.NET form.When i click a button in VB.NET then i want to display all information like,how emails sent,how many emails received and ...more >>

VB 6 LOAD form to VB.NET Question
Posted by Michael Erlewine at 2/4/2005 3:56:10 AM
I am trying to learn VB.Net and can't figure out how to call a from from another form. In VB6, I just issue a Load FormX, and an Unload FormX... and Show the form and there it is. I am sure it is obvious, but I can't see how to do that in VB.net. Does someone have a piece of code that will ...more >>

webclient problem
Posted by Cc at 2/4/2005 3:28:06 AM
i try to download a file using web client but keep getting exception on receive WebClient1.DownloadFile("http://www.testing.net/cgi-bin/test/test.pl?action=download", "c:\\aa.txt") ...more >>

complex control creation
Posted by Bernie Yaeger at 2/4/2005 1:34:58 AM
I'm trying to create a custom control that has 2 listviews, in view smallicon. I'm using these with code that makes them drag/drop controls, so what I am after is a control that does drag/drop automatically between these 2 listviews. However, I'm running into difficulty - when I add the cont...more >>

Build Solution vs. ReBuild Solution
Posted by joisey NO[at]SPAM mindspring.com at 2/4/2005 1:12:08 AM
I have not been able to see any difference between what happens when I use Build>Build Solution or Build>ReBuild Solution. Is there any reason to use one or the other at any time? Thanx......joisey ...more >>


DevelopmentNow Blog