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 > april 2005 > threads for friday april 22

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

Moving data between Access mdb's
Posted by genojoe at 4/22/2005 10:46:01 PM
I have tried everything I can think of to move records from one Access database to another. It should not be that hard. Read on.... I have identical access mdb's. One contains data; one contains empty tables. From an earlier posting, I was able to move the data by first exporting XML fi...more >>

how to "see" click event from a usercontrol
Posted by JohnR at 4/22/2005 10:15:51 PM
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based on some initialization information obtained elsewhere. Basically, I'm going to create my own d...more >>

(dumb) Question about naming variables
Posted by netloss at 4/22/2005 8:52:10 PM
I have a question so basic that I suspect everyone takes it for granted, as i cannot google the answer. Anyone here can probably answer it! I want to create a bunch of variable at runtime, but I don't know beforehand how many. When the program has calculated the number of variables (N) that I...more >>

What's wrong with this registry code
Posted by Just Me at 4/22/2005 8:14:13 PM
Public Shared Function GetValue(ByVal keyName As String, ByVal valueName As String, Optional ByVal badKey As Object = "") As Object Dim UserKey As RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\JUNK\ keyName) If Not UserKey Is Nothing Then GetValue = CType(UserK...more >>

NUnit
Posted by Justin D. Fisher at 4/22/2005 7:39:42 PM
Anyone out there use NUnit for unit level testing on VB.Net? I see lots of C# documentation out there but very little for VB.Net? Can anyone suggest some books or web sites that address this? ...more >>

UI Text Spacing
Posted by Bradley at 4/22/2005 3:07:24 PM
I'm developing an application where I'm representing ASCII encrypted Hex values as a string displayed by the UI. In the line above each of the data strings, I want to have a string that contains the name of the data content and I'd like it to be in alignment. The problems I'm having is that ...more >>

Capture whole child form in VB.Net
Posted by jxiang at 4/22/2005 2:59:05 PM
I created a child form that is much bigger than the MDI form in VB.Net. I am trying to capture the whole child form and save as an image or sent to printer. I tried to use BitBlt to capture the child form but I can only capture the visible part of the child form whatever you scroll to any part...more >>

Threading error with 2005 com port
Posted by Gary Kahrau at 4/22/2005 2:07:45 PM
I hope this is a simple question for threading people. VB 2005 Beta2 has a new SerialPort control. I can read the data that I want just fine. However when I try to display the text, I get a threading error. See event code and error message below. How do I get around this threading error??? ...more >>



Using a Credit Card Reader
Posted by Jerry Camel at 4/22/2005 1:29:00 PM
Not sure if this is a good place to post this... I'm writing and ASP.net app using vb .net. I need to interact with a credit card reader. I have one that sits inline with the keyboard. Works great, except for the fact that no matter what field the user is in on the transaction page (Name, Ad...more >>

Getting Name of Class Instance (VB 6 & VB 2005)
Posted by Michael D. Ober at 4/22/2005 1:09:32 PM
Is there a way in VB 6 (and VB 2005) to get the instance name from a class. For example class MyClass 'some methods and properties public property get VarName() as string VarName = somefunction(me) end property end class dim myVar as MyClass Set myVar = new MyClass debug.print ...more >>

WebBrowser Control
Posted by Steve at 4/22/2005 1:09:05 PM
I would like to use a WebBrowser Control in a Windows Form & pass information to the loaded pages... ie user name & password type information... is this possible? I know how to load the web page...but I'm not sure how to pass values to the fields within the loaded web page. Steve. ...more >>

send signal across network(LAN)
Posted by Jon at 4/22/2005 12:44:08 PM
Hi, in my program, i want to send a signal to other computer on the network (LAN). so that when other recieves this signal, it will do something... What Class should I use for sending the signal? Is there any example code i can find? thankyou very much in advance!...more >>

Bitmap to Icon
Posted by Dennis at 4/22/2005 12:19:14 PM
I have created a bitmap and set the transparency color to black; mybitmap.MakeTransparent(Color.Black) myicon = Icon.FromHandle(bm.GetHicon) This creates the icon ok but the background color black is not transparent. How do I create an Icon from this bitmap that has also the color black ...more >>

Singleton Form
Posted by ECathell at 4/22/2005 11:48:06 AM
I have a windows form that I only want one instance of. it currently is = a child mdi form which may be changing as the project progresses. I have = made it a singleton object by making the Sub new constructor private = then using this code to call it: Private Shared m_instance As ShippingOrde...more >>

Taking Focus off datagrid
Posted by kenglish_hi NO[at]SPAM yahoo.com at 4/22/2005 11:45:40 AM
hello, I have a form with a datagrid and combo box. When the form loads up, i want the focus to be on the combo box. however, whenever it loads up, the focus is always on the datagrid. in the Form.Load, i tried both combo.focus() and combo.select(), neither of them will take the focus away f...more >>

DataGrid Sorting
Posted by Cybertoast at 4/22/2005 11:40:04 AM
How do I select programically select a row in a WinForm DataGrid after sorting it? thx in advance Rui Pedro Nascimento...more >>

VB.net, launch procedure, close form, the whole APP is deactivated
Posted by dwilliamjoe at 4/22/2005 11:31:05 AM
VB.net, launch procedure, close form, the whole APP is deactivated. When I say deactivated, other applications (Wind Explorer, My computer, Ect...) come to the foreground and my app goes to the back ground. The easiest way to reactivate the application, is selecting it from the taskbar. ...more >>

Fastest way to search a dataset.
Posted by UJ at 4/22/2005 10:31:53 AM
I have a dataset that will have say 10000 records in it with the names of files that are used by the system. I then have a large directory of files that correspond to that list of files and want to find any files that are in the directory but not referenced anymore (trying to do cleanup.) I kn...more >>

How to select all in textbox?
Posted by Brett at 4/22/2005 10:12:29 AM
I have a textbox with width of 504 and height 248. It gets filled with much content so there is a vertical scroll bar present. When I click into this box and do Ctrl + A, it should highlight everything. However, nothing happens. I have to click into the box, hold down Shift and page down t...more >>

how to keep my program alive
Posted by Bolo at 4/22/2005 9:31:01 AM
hi There, How do i do this. I would like my program to display a message ( a message box with the time) every hour for example, my program it's running and when it's 4:00 i would like the program to display it's 4:00 and do the same when it's 5:00 without anyone presssing any button. ...more >>

Databind multidimensional string array
Posted by IGotNothin at 4/22/2005 9:12:53 AM
Seems like this should be simple, but I'm new to vb.net. I've created a array of strings. I want to bind them to a dropdown list. I was able to do this with a one dimensional array with no problem, but with a separate column for text and value, I can't find how to tell it which columns to use...more >>

Moving object creation from COM to .NET
Posted by Steve Long at 4/22/2005 9:05:33 AM
Hello, I'm trying to create an object at runtime. The way I used to do this in the COM (vb6) world was to use the ProgID such as: PublicWorksPlugin.PWPlug I kind of know how to do this in .NET but the missing piece is the location of the assembly. So, in the COM world the following would work...more >>

Problem Drawing Strings
Posted by brix_zx2 at 4/22/2005 8:49:05 AM
vb.net 2k3: I have this code that doesn't work unless I take out the g.DrawString statements. If anyone can look over the code and tell me why I'd appreciate it. Dim g As Graphics Dim LabelText As String LabelText = "--" ...more >>

XMLTextReader - Issue with sepcial characters &,<,>
Posted by RJN at 4/22/2005 8:30:43 AM
Hi I'm using XMLTextReader to parse the contents of XML. I have issues when the xml content itself has some special characters like & ,> etc. <CompanyName>Johnson & Jhonson</CompanyName> <EmployeeStrength>> 1000</EmployeeStrength> When I do a Xmltextreader.read() and then check the conten...more >>

Knowing if application is "alive"
Posted by arfinmail NO[at]SPAM yahoo.com at 4/22/2005 8:26:10 AM
I have 4 applications which are supposed to run 24/7. How can I make a monitor application to know if they're running fine? The best I can come up with is making them update a file/DB every X amount of time and have the monitor app check that mark. If the mark haven't updated then it means the...more >>

Overloads Question
Posted by Gary Paris at 4/22/2005 7:27:50 AM
Why would you use an Overloads routine instead of just putting the code in the default routine? Private Overloads Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress Dim isKey As Boolean = e.KeyChar.IsDig...more >>

Befuddled
Posted by Mark at 4/22/2005 6:00:01 AM
Not sure if this is the correct place for this question, but I'm kind of grasping for straws at this point. I get an error message when deleting rows from a table in Access database. The original vb.net code is included below. It is running in an Asp.Net structure. My understanding i...more >>

When NOT to Reflection
Posted by jack at 4/22/2005 5:52:17 AM
Hello, I found a reply by Peter Huang to a previous post quite valuable with regard to referencing controls on a form by name using reflection. It made me wonder when I would not use Reflection for this task (or any other similar task). So, I thought I'd ask the question ... when is Reflect...more >>

Date conversion pb
Posted by Franck at 4/22/2005 4:43:58 AM
Hi, 'm gettin mad about date conversion. Here is the point. Got and add-in for Excel which call functions from a web service (on a remote server) The remote server has regional settings set to "en-UK" and date to dd/MM/yyyy. (I'can't change it !) One of my function get a string as param...more >>

Character conversion to upper when press key
Posted by MS at 4/22/2005 4:03:11 AM
Hi, How can I convert a character from lower to upper when user press a key in C#, in control, other than TextBox? Thank you User submitted from AEWNET (http://www.aewnet.com/)...more >>

Opening a form with a command button
Posted by George Medlock at 4/22/2005 3:43:21 AM
What is the code to open a form at the click of a command button? ...more >>

How To Scan A Folder Continuously For New Files
Posted by batballs2002 NO[at]SPAM hotmail.com at 4/22/2005 3:23:58 AM
I am very new to VB.Net and I have been asked to write an application that scans for new files in a certain network folder and then process the file. I need some help with getting the code started. The steps invovved are: 1/ Files are deposited on a network folder throughout the day. 2/ Th...more >>

formatting System.TimeSpan.
Posted by poppy at 4/22/2005 2:07:38 AM
I have something of type System.TimeSpan. The problem I am having is that it displays as Days:Hours:Minutes:Seconds e.g. 1:17:03:56 and I want it to display the days as hours. e.g. 41:03:56. I have been trying for an hour now and am brain dead. Any takers ?...more >>

Framework Version Compatibility
Posted by Jeff at 4/22/2005 1:57:03 AM
Hi - I have a VB.NET Windows Forms application that I developed using MS Visual Studio .NET Professional 2003. I'd like the app to be able to run with either 1.1 or 1.0 of the .NET Framework. It runs fine with .NET Framework 1.1. When I try to run it on a machine with .NET Framework 1.0 i...more >>

Need to control a navigate event from different form
Posted by Marcos Beccar Varela at 4/22/2005 1:17:07 AM
Hola, necesito solulcionar un tema que creo que tiene que ver con el manejo de calses. Hello to all, I need to make a button in a form , that when pressed, it oppens a new form, which contains a Webbrowser control, and it passes an url as a string, then, the new windows starts to navigate! Al...more >>

How to change the database of the subreport
Posted by Ray at 4/22/2005 12:00:00 AM
Dear all, By using the following code, I can change the database name of the crystal report .... Dim ReportTemp As New ReportDocument ReportTemp.Load(_report) For Each table In ReportTemp.Database.Tables pPrintSetting.OriDataBase = table.Loc...more >>

Consuming WebService from vbscript
Posted by mzam at 4/22/2005 12:00:00 AM
Hi everyone, I have a vbscript which is consuming WebMethods from a WebService. Whenever the WebMethod returns a string or integer then no problem but when the WebMethod returns a DataSet then the following error appears: Error: Attachment:Maximum retry on the connection exceeded. HRESULT=0...more >>


DevelopmentNow Blog