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 > november 2003 > threads for friday november 14

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

restricting data that you can put into box?
Posted by W. Adam at 11/14/2003 11:30:44 PM
I have a form which displays info. On top of it there is a text box for input box which lets you put number from 1 thu 112.I need to verify that the number entered by the user is within the range of 1-12. If it isn't, notify the user and set the focus back to the text box. Do not allow process...more >>


Ole Container
Posted by scorpion53061 at 11/14/2003 10:17:15 PM
Does anyone know of a compareable Ole Container that will allow read/write so that I could host say a word document within my vb.net app? I realize the vb6 version is dead. I looked to see if I could download it but couldnt find it anywhere just to see if I could make it work.... Would the w...more >>

How to Package
Posted by Noman at 11/14/2003 9:31:40 PM
how should i make and deploye the package using VB 6.0 and MS Access200 as wellas Crystal report 9.2 to my client so that he cant give the project's exe to anyother....more >>

Slow Speed
Posted by Noman at 11/14/2003 9:24:43 PM
i am developing a system using VB 6 and Ms Access 2000. overall the system is working fine but at few instances the program get stuck for few minutes like 2 to 3 minutes i.e it is very slow. the accasions where it gets slow exists when number of records exceeeds 10,000 records. Main Ocasi...more >>

I'm getting crazy overhere....$#$#%$
Posted by EMW at 11/14/2003 8:13:55 PM
The MSDN is a great source of information for programmers of .NET applications, but not for the simple things!!!! I have been searching for a few days now, my desk is filled with printouts from books, help pages and web pages, but still cannot find what I'm looking for. I'm trying to write ...more >>

using vbnull
Posted by AussieRules at 11/14/2003 8:07:37 PM
Hi, I have a sql table with a integer col that is null. When I assign this to a int value in my vb app with the following code, it set the intValue to be 0. This means when I set my text box.text to the value, it displayes 0 rather than a blank text box. How do I get around this one ? ...more >>

Vb.net and MS Word
Posted by scorpion53061 at 11/14/2003 6:54:09 PM
Is it possible and if so how can I open Microsoft Word to have it exist within my application? ...more >>

Dock my form on the desktop??
Posted by M O J O at 11/14/2003 6:00:31 PM
Hi, In the buttom of my mesktop, I have the processbar (hope that it's called processbar, because I translated it from Danish). If I maximize an application, the processbar is always visible. Now I want to make my form act like the processbar and dock to the left side of the desktop, so...more >>



Default Value for Date
Posted by Enosh Chang at 11/14/2003 5:11:42 PM
Hi all, I have a question about optional parameter. If I use optional parameter, it ask me to set default value for it. How can I set default value for Date parameter? Thanks! Best Regards ...more >>

Missing Dialog Box
Posted by Tom McLaughlin at 11/14/2003 4:51:55 PM
I am having problems locating the "Find and Replace Dialog Boxes". My toolbox shows other Dialog Boxes. The Customize Toolbox dialog box displays a list of all .NET Framework components available on my machine and the Find and Replace Dialog Boxes do not appear. The documentation that came with...more >>

using ext_cm_Solution - never fires
Posted by seeni at 11/14/2003 4:41:30 PM
I have tried to add a new command for a visual studio add-in. This command should be added when the user loads any solution into the IDE(not at startup). The command should disappears when the user closes the solution. The MSDN says that ext_cm_Solution 4 The Add-in was loaded when a user load...more >>

Windows Service with a Windows Form
Posted by Mr Utkal Ranjan Pradhan at 11/14/2003 4:32:19 PM
Hi Friends I want to develop a windows service application, which will open a port on the machine and constantly it will listen from that port. And when any data comes to that port I want to display a Form with the data that has been receieved by the port. So plz guide me to do that. Can it b...more >>

Form Loading Question
Posted by Bart Lynn at 11/14/2003 4:05:22 PM
Is it possible, to have 3 forms, (Form1, Form2 and Form3) that based on user input, loads the select form as a particular varaible name? Here is what I mean I want the loaded form to be referenced as frmOpdisplay, independent of which form is loaded. Dim frmOpdisplay as new ("selected for...more >>

Deserialize problem
Posted by Pavel Pavel at 11/14/2003 3:37:55 PM
I have 2 solution to deserialize ArrayList which contains objects I am using for this MemoryStream, but MemoryStream is not functional - I receive always error #End of Stream encountered before parsing was completed.# The second solution is functionall - I am using in this solution FileStream...more >>

Passing a variable to a sql query?
Posted by SCA Analyst at 11/14/2003 3:34:42 PM
How might I pass a variable's value into a sql query? simple example: Select * from tbl_person where age >= <variable from form> ...more >>

Calling a function from a string
Posted by GB at 11/14/2003 3:33:15 PM
Is there a way to call a function from a string instead of calling the function explictly? For example: dim fooStr as string fooStr = "foo1" ' The question: ' Can I call foo1 by passing the string value contained in fooStr? function foo1() as string return "foo1's value" end f...more >>

Paging in a dg - current row?
Posted by Marc Miller at 11/14/2003 3:26:10 PM
Hello, I have a datagrid in which I change the color of the row, based on a value in a particular column. My problem is that I need to know the current row number in the data set after I page from the first page. I see the error in my ways here, since I am constantly referring to rows 0 t...more >>

can i useing api to control volume?
Posted by jjfy at 11/14/2003 3:14:45 PM
i am worry to it now . hope anyone can help me ! ...more >>

Is it possible to get the IP address of a client in a web session?
Posted by David Beaven at 11/14/2003 3:12:57 PM
Is it possible to programmatically obtain the IP address of a visitor to a aspnet web page. Reason: We want to track users to prevent them from posting similar information twice (or twenty times!). If they turn off cookies how else can we track them? I appreciate that they might get a new IP f...more >>

string.concat
Posted by Doug Stiers at 11/14/2003 3:11:52 PM
Is there a downside to using string.concat? Other than a little overhead? str1 = string.concat(str1,str2) vs. str1 &= str2 It seems to me like the string class should be optimized to do this functionality. Thanks in advance. DougS ...more >>

Strange thing for combobx
Posted by qe_Cui at 11/14/2003 3:09:03 PM
Hello Everyone: I am using vb.net 2003 / SqlServer 2000 / Windows2000 Professional OS. I put a combobox in a form in my application, it works well in my own pc. But when I relase it to a client pc(with .Net FrameWork 1.1 and Win98 os), I found that the combobox could not accept a selected it...more >>

Using the Zip Classes in VB
Posted by Neal at 11/14/2003 3:07:52 PM
Hi, I would like to be able to use the unzip utililty from my VB project. I am very new to VB .Net and have no experience with J#. I found a document on MSDN called "Using the Zip Classes in the J# Class Libraries too Compress files and data with C#". I have added the reference and I can s...more >>

Automatic drop down
Posted by Marco Roberto at 11/14/2003 3:07:14 PM
Hi, does anybody know how to automatically open a combobox when it gets the focus? Tks, Marco ...more >>

changing mouse cursor
Posted by larry mckay at 11/14/2003 2:25:03 PM
does anyone have a code sample that changes the mouse cursor to an hourglass or waitcursor ? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Finding the DPI size for items in VB.NET
Posted by Jason at 11/14/2003 2:06:50 PM
Hi everyone, there is some text in one of my VB.NET programs (on a form of course) that looks outwright silly if the users system is changed to 120 DPI. (This particular setting is modified if you go to your Display Properties, then select the Settings Tab, then select Advanced, then in t...more >>

FileSystemWatcher (WaitForChanged)
Posted by Megan at 11/14/2003 1:56:10 PM
I have a windows service that monitors a folder. I have a routine to process XML files whenever a new file gets created (in the folder that the Filesystemwatcher is monitoring.) Since the files are large, before the copy process is completed the Created event fires first, and I get errors ...more >>

How to Store Many Files in only ONE blob field (sql db)
Posted by Nicolas at 11/14/2003 1:19:56 PM
How to store multiple files in only one sql blod field in sql database Like I got a record for a house: ID Name addresss price attachments The field "attachments" may contains documents (pictures, word file for specification, autocad file for the plan etc.) We don't know in advance on many ...more >>

showdialog and return values
Posted by Joerg Trumpfheller at 11/14/2003 1:18:36 PM
Hi folks, Don't know how to get info about the second dialog which appears after clicking a button of the first dialog. following situation: Dim saveMode As Boolean Dim saveFileDialog1 As New SaveFileDialog() ' if I clicking the ok button, set value true, pdfreport will be created I...more >>

Error Trapping in VB.NET Web Application
Posted by Fred Nelson at 11/14/2003 1:10:12 PM
I'm devloping a VB.NET web application and I'm having a problem with trapping errors and logging the cause of them. In my web.config file I have the line: <customErrors ... defaultredirect="errorpage.aspx"> In my global.asax file I have: sub application_error server.transfer("e...more >>

Color coded listbox
Posted by Brent Hoskisson at 11/14/2003 1:03:06 PM
Does anyone know where I can find a listbox control for VB.NET where the items in the can be color coded. Thanks Brent...more >>

Compiling DLL's using .Net Standard 2003
Posted by Simon Osborn at 11/14/2003 12:20:05 PM
Hi, I'm having the same problem to those people who want to create a class and produce a dll file. I was wondering if anyone had a sample piece of code that I could have (nothing strenuous) that can then be compiled via the command line into a dll. You help would be much appreciated! ...more >>

Null date
Posted by GB at 11/14/2003 12:06:00 PM
Is there a function to set a null date in vb.net? Normally, I create a const NULLDATE = "1/1/1900", but that becomes a drag at times. Especially, handling a nulldate from SQL into a dataset. Thank you, Gary ...more >>

Translating code from VB6
Posted by zurg at 11/14/2003 12:02:45 PM
Hi! I translated code from VB6 (worked there) to VB.Net and not it doesn't work... It has problems with RasEnumConnections function... Probably I have to add initialize but how should it look like? I tried tInfo.Initialize but still not working.... Please help!!! That's code from ...more >>

how can I call other project form when I run my start project?
Posted by Tony Dong at 11/14/2003 11:45:49 AM
Hi There I have two vb.net window projects made by vb.net, when I run one project and click a button in this project window form, how can I call other project window form ? Thanks Tony ...more >>

Data table class is multi-threaded, but is it stable?
Posted by Steve Stover at 11/14/2003 11:45:10 AM
I want to use the caching API in .net to store data. The data would be stored in a data table class that has approx. 10 columns and 71 rows. What I need to know is this: According to Microsoft's MSDN the data table class is multi-threaded. I trust that it is but I am still leery about its pe...more >>

Random numbers
Posted by GB at 11/14/2003 11:41:33 AM
How can I create a random number in a set range without using the follwoing code: Randomize Return cint(int((5*rnd()) + 0) I am looking for something more random than the above as the result seem to be predictable for small ranges. Thanks, Gary ...more >>

Slow MDE Close
Posted by GB at 11/14/2003 11:33:10 AM
Is there a way to speed the closing of a .Net application? ...more >>

Windows Forms No-Touch Deployment problems using DAO on User-Level Secured Access DB to access groups
Posted by smooges1 NO[at]SPAM yahoo.com at 11/14/2003 11:27:55 AM
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as ma...more >>

Web Forms Single Record Data Navigation
Posted by Trevor Fairchild at 11/14/2003 11:17:43 AM
Hello all - I've been working in VB6 for about a year and now I've moved "up" to VB.NET. I think I would have fewer problems in learning vb.net if I knew nothing about previous versions of vb... I have spent a long time now trying to figure out how to move from one record to another in a...more >>

How to obtain the public IP address of a machine outside the firewall
Posted by Ed Willis at 11/14/2003 11:12:11 AM
We have several offices that have a DSL or Cable modem where the IP address is dynamic and changes often. I created a VB app that obtains the IP address but it obtains the IP address within the firewall and we need the public IP address of the machine outside the firewall so we can use Remote Des...more >>

Problem binding to CheckBox
Posted by Rodney Lane at 11/14/2003 10:26:55 AM
Hi, I am using an oledb data adapter to connect to an MSAccess 2003 database. I use bindings on my windows forms to bind fields to the controls and for text boxes and grids it has been fine. I am having problems with binding to a check box. It works fine until I attempt to add a new record ...more >>

How to print in text mode in vb.net?
Posted by piotrkowalski NO[at]SPAM poczta.onet.pl at 11/14/2003 10:06:09 AM
Or how to send a string directly do LPT? Thanks in advance for help. Regards Piotr...more >>

forms
Posted by Simon Morris at 11/14/2003 9:56:14 AM
If I click Button1, form2 show, then I click Button2 I get. "An unhandled exception of type 'System.NullReferenceException' occurred in WindowsApplication13.exe Additional information: Object reference not set to an instance of an object." Why does ff = Nothing Code o...more >>

ListView
Posted by Massimo Zaccarin at 11/14/2003 9:54:31 AM
I have a ListView with MultiSelect=True, how can I know witch Item has been clicked, without looping on each Item? I need to process only the last clicked Item, but the "Click" event doesn't tell me anithing about the clicked Item. I don't want to use the checks (in this case I would trap the ...more >>

DataSet
Posted by ElenaR at 11/14/2003 9:16:26 AM
Hi Cor, I got that code, but now I get an error when I fill the dataset. Elena ...more >>

Windows Service with Form
Posted by Mr Utkal Ranjan Pradhan at 11/14/2003 9:05:48 AM
Hi Friends I want to develop a windows service application, which will open a port on the machine and constantly it will listen from that port. And when any data comes to that port I want to display a Form with the data that has been receieved by the port. So plz guide me to do that. Can it b...more >>

How to create a class library in VB.NET?
Posted by Jos at 11/14/2003 9:04:13 AM
Maybe this subject is off-topic in this newsgroup, but I can't find a group about Visual Basic Standard Edition. My training book instructs me to create a new class library inside my solution (in order to create a remoting object). But in Visual Basic Standard Edition, there is no "Class Lib...more >>

finding CPU time for a specific process
Posted by Chris at 11/14/2003 8:49:00 AM
I have a form with a textbox and i want to populate the textbox with the CPU time for a program called program.exe How do i specify showing only the CPU time for the one executable I want?...more >>

Table in Dataset?
Posted by Elena at 11/14/2003 8:41:47 AM
I am trying to get a number from the last row in a table. When I get to the line of code to get the count, I get an error: An Unhandled exception of type 'System.IndexOutOfRangeException' occured in system.data.dll Additional Information: Cannot find table 0 The code is below: 'ge...more >>

Mulitthreading Blues!
Posted by John Shelley at 11/14/2003 8:18:58 AM
All these years of programming without multithreading, sure puts me at a disadvantage here...Now I'm thrust into a big VB.NET project with multi-threading all over the place, and I'm trying to sort it all out... Two types of threads, right? A process thread (create a new thread object and cal...more >>

Runtime error
Posted by Bob at 11/14/2003 7:49:10 AM
I installed the Flight Simulator 2004 and now I get the following error from Visual Basic -Runtime error "5" - invalid procedure or argument. This occurs using office 2000, works and when I shut down for the night. Anyone know the solution? Thanks...more >>

how to determin is the selected printer a dot-matrix
Posted by Tancev Sasa at 11/14/2003 7:42:01 AM
I am interesting how to determin is the selected printer a dot-matrix printer or is it a laser printer What property is relevant to detrmin what type is selected printer ...more >>

Source code macros in VB.NET
Posted by Chris Edgington at 11/14/2003 7:21:41 AM
I'm a C/C++ programmer diving into VB.NET. Is there a VB.NET equivalent to a C/C++ #define macro? For example, I have 15 variables that I need to do the same thing to .... in C, I'd do the following: #define VALIDATE_AND_INIT(zMember, zNew) \ if (zNew == NULL) \ strcpy(zMember, "");...more >>

vb dot net com+ long data type parameter and VBS
Posted by stuart dee at 11/14/2003 6:39:48 AM
Hi, I have a com+ component written in vb dot net with a property defined as long. When i call it for a vbs file. i get invalid datatype not supported Any ideas TIA Stu...more >>

Comparing two strings and returning the differences.
Posted by Rob Panosh at 11/14/2003 6:04:20 AM
Hello, I am looking for a routine that would compare the following: sTest1 = "This is a test" sTest2 = "This is a long test" and return the differences between the two: long Thanks, Rob Panosh ...more >>

Structures Send in Binary Form
Posted by Zahid at 11/14/2003 4:57:45 AM
Hi, I have a number of structures that I want to send using UDP protocol. How do I convert the structure into bytes/array of bytes? Using UDP protocol is a MUST - a Client Requirement. Am I doing it all wrong? Should I create Classes instead of these objects- if so how does that help?...more >>

Question on Using Partial Types with ASP.NET via J.I.T.
Posted by nospam at 11/14/2003 3:56:28 AM
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the User first hits Internet Explorer 6.0 on your browser. MY QUESTION to the Microsoft ASP.NET and C...more >>

how get the dos "net View" in a ListBOX?
Posted by Martin at 11/14/2003 3:10:55 AM
how to use Net View dos command with vb.Net? i want to bacame a string or array or some thing else! Im new so plz. help me with this Problem. thx for your help and Ideas thx Martin...more >>

Add in
Posted by Xavier at 11/14/2003 2:18:50 AM
Hello I want to create an add-in for Internet Explorer using VB.NET ... I try to develop a dll but I fail to make it ... I need some help Thanks have a nice day Xavier...more >>

Microsoft System Date Format
Posted by Indrajit Guha at 11/14/2003 1:53:54 AM
How will I find out the system date format of Windows OS through VB....more >>

Jeffrey Tan, Peter Huang, Yan-Hong Huang "quoting" question
Posted by Tom Leylan at 11/14/2003 1:19:59 AM
Did you notice that the replies from the three people mentioned here include the entire header of the newsgroup message. This is fairly "atypical" and I guess there must a switch somewhere or they are using an odd newsreader... Would you guys check your settings... the entire Path is printed, ...more >>

Toolbox like VB.NET
Posted by Marques at 11/14/2003 1:10:37 AM
Hi everyone! Can you tell me the best way of having in a MDI interface a toolbox looked like the one we have on VB.NET? Thanks everyone!...more >>

copying an asp page to excel
Posted by Hakan at 11/14/2003 12:36:05 AM
I am regularly downloading an asp web page and what I want to do is to do it automatically The web page consists of one main page and many linked pages to it. Firstly I am selecting the whole page and copying it to an excel worksheet afterwards I click on each (there are many) link on the web page...more >>

Hide my windows services from processes in Task manager
Posted by Mat at 11/14/2003 12:35:50 AM
How to do it? ...more >>


DevelopmentNow Blog