Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > august 2003

Filter by week: 1 2 3 4 5

Thread sync problem
Posted by Gordon Knote at 8/31/2003 11:38:49 PM
Hi I'm currently writing a VB.NET service that uses external Dlls, like this: Private Declare Function ReadSettings Lib "mydll.dll" () Now, how can I protect this function (ReadSettings) from being called more then once a time? I tried to use System.Threading.Monitor.Enter(ReadSett...more >>

Add leading Zeros to number
Posted by jack at 8/31/2003 9:15:27 PM
Hello, I have a number that is 6 places long. I would like: "16" to be "000016" "116" to be "000116" and so on. Any help whould be great!! Thanks, Jack ...more >>

Dataform Wizard - Add button does not work
Posted by msmcg at 8/31/2003 8:36:20 PM
I built a dataform using the VB.net wizard. I have two tables, with one relation, Parent to Child, linked on one common key. The dataform loads the data fine, and when I click on the Add button, it appears to add a record (the record count goes up) but unlike single table dataforms, the fo...more >>

Uninitialized variables
Posted by Tim Anderson at 8/31/2003 8:34:26 PM
Is this expected behavior? Winform with button and listbox: Dim i As Integer For i = 0 To 50 Dim s As String If i = 1 Then s = "Only once?" End If Me.ListBox1.Items.Add("Test " & s) Next If I run this code I find that the value of s remains at "Only once?" throug...more >>

SQL Debugging Not working as it should
Posted by Alex Clark at 8/31/2003 8:20:20 PM
Hi All, My system: WinXP Pro, VS.NET 2003, SQL Server Personal Edition. I'm having problems with my old favourite demon, SQL Debugging from within VS.NET. I have to say I've found this particular feature to be one of the most useful and (sadly) unreliable/fragile features in VS.NET, it see...more >>

Fake a Assembly
Posted by Armin at 8/31/2003 8:10:10 PM
Hello I have a DLL A which accessing an other DLL B. In my Application I use DLL A. DLL B has a Strongname. DLL A not. I have no access to the sourcecode of DLL A. And no Access to the sourcecode of DLL B. Now I want to replace the DLL B by my own new DLL C. I create the exactly sam...more >>

infinity loop in PrintPreviewDialog
Posted by Kwok at 8/31/2003 8:10:03 PM
Hi, I want to print some record(s) from dataset.table(tbname) using PrintPreviewDailog and PrintDocument. But It has a infinity loop error. I use a class to control the print procedure. Here is my code. Public Sub New(ByVal dbset As DataSet) jobFont = New Font("Times New Roman", 12...more >>

Bandwidth Test
Posted by Scott Davies at 8/31/2003 7:35:13 PM
Hi, Does anyone know whether there is a way to test the download speed in a VB.NET application. I want to be able to download a web page (which I've managed to do), but now I want to measure how long it takes to download. Anyone have any pointers on how I can achieve this? Thanks Scott ...more >>



Empty parameters in a asp .net (vb) page query string
Posted by Paul M. at 8/31/2003 7:01:22 PM
Hi, I am trying to populate 3 paramters in an asp .net (vb) page redirect, the first one is ok ok and gets populated by the other two get inserted into the url for the redirect as empty strings! Anyone got any clues?? The code is below and I have checked that the variables beginning with "g_...more >>

post data via inet
Posted by QT at 8/31/2003 5:09:15 PM
Dear Sirs, I was posting data via inet with vb 6 but after updating vb.net I can not post my data, I am trying to send following data to one URL "u=test&p=soku" I was using following text to convert data; aPostData = StrConv(strBody, vbFromUnicode) After uptading vb.net, it change my...more >>

Manipulating Javascript and .asp Web pages
Posted by Michael Sherwood at 8/31/2003 5:09:04 PM
I want to use VB .NET to fill in forms and submit a response to a remote Web server which uses Javascript and .asp. It seems to me that I need some type of Java interpreter within my VB code which I can use to move the cursor, enter text and submit. The alternative may be to use axWebBro...more >>

How can I determine the status of the default printer
Posted by Raymond Martin at 8/31/2003 3:06:03 PM
How do I find out if the default printer is offline or online (or has a paper jam)? ...more >>

Blank pages when calling printReport multiple times
Posted by Raul Medina at 8/31/2003 2:47:57 PM
I am trying to print the same visual basic report multiple times in my VB 6.0 application using the command <reportObject>.printReport False, rptRangeAllPages. The only thing that differs between each report is a label that get modified. The result is only the last report processed is pr...more >>

enumate processors with WMI managed classes
Posted by Tom Spink at 8/31/2003 1:33:51 PM
Your date/time/timezone is seriously wrong. Please fix it. -- HTH, -- Tom Spink, Über Geek Please respond to the newsgroup, so all can benefit "Maybe it's a game called 'Punish the User'" ...more >>

How do I determine Num Lock status?
Posted by CK at 8/31/2003 1:18:34 PM
How do I determine the Num Lock status, on or off, and display it on a status bar? TIA...more >>

switching the usual order of things
Posted by AllenL at 8/31/2003 1:04:22 PM
Ever since I've been using objects with VB I've instantiated the business object from the form; the business object then creates/destroys data access layer objects as needed. The business object also maintains state for the form variables. The form unload / closing event destroys the business ob...more >>

Embedding an image in an RTF control
Posted by Jason Sobell at 8/31/2003 12:56:17 PM
I'm trying to embed an image in an RTF control, but the only working method I can find is to do so via the clipboard and use myRTF.paste(). The problem here is that it obviously destroys the existing clipboard contents. Does anyone know if there is a way to call the RTF control directly (such a...more >>

Help with option Strict
Posted by Cor at 8/31/2003 12:10:44 PM
Hi Option Strict gurus, Because of the so much given advises here to use Option Strict I did try to use that. But it gives an error and I don't know how to resolve that. The message is that Option Strict disallowes late binding. So how to do it then? The statement is from an example somewhere ...more >>

a ver
Posted by 111 at 8/31/2003 12:09:11 PM
123456...more >>

DataGrid
Posted by One at 8/31/2003 11:35:49 AM
Hi. How to have combobox in a datagrid as add combobox item from a table column . is there an easiest way to do it.. Is there any activex available to do this easily....more >>

How to List all Fonts on a system by VB usable name?
Posted by jack at 8/31/2003 11:34:49 AM
Hello, I need to be able to list all the fonts on a system in a way I can then use the names to format my vb app. text. Thanks for any help, Jack ...more >>

What newsgroup?
Posted by Bob Graham at 8/31/2003 11:08:28 AM
I was posting Q&A at microsoft.public.dotnet.vb.general from outlook express, but that group seeems to have disappeared off the face of the earth. Why are there so many similarly targeted newsgroups and is this the main one that vb.net developers are using? Confused. Bob...more >>

Control Development
Posted by The_Boss at 8/31/2003 8:46:46 AM
I developed a control and a component. My control uses my component. I have a test application and when I add my control to a form in the test application, my control's dll is automatically added to my test projects references list. But I need to add my component's dll to be added to reference l...more >>

SaveAs
Posted by Hayman at 8/31/2003 7:16:02 AM
Hello, How to overwrite an existing file without asking the user if he wants to overwrite it or not? Hayman ...more >>

Email Excel
Posted by Hayman at 8/31/2003 7:02:18 AM
Hello I was wondering if there is a way to send and excel sheet as an attached file without sending this file to outlook Hayman ...more >>

Excel
Posted by Hayman at 8/31/2003 7:00:31 AM
Hello, I'd like to insert a jpg file in an excel sheet Can you help me please in that? Hayman ...more >>

How do I read interspersed blank lines (CrLf) using streams?
Posted by Larry Woods at 8/31/2003 5:29:39 AM
I have a seq. file with some blank lines (CrLf only) in it. When the line is read, I get a value of "Nothing" returned, which give me an "End of File" condition, so I terminate my procedure. How do you get around interspersed blank lines? TIA, Larry Woods ...more >>

Convert MS Access data to XML programmatically
Posted by Thu at 8/31/2003 4:42:56 AM
I store me reporting data in MS Access table, and I need to programmatically generate XML file (in text) that loads these data, include all these data with appropriate definition, i.e. root, elements, entities, and sends these data to another party on daily basis. Does anyone know the ea...more >>

Drag & Drop
Posted by Goldwind at 8/31/2003 1:52:37 AM
Hi, I"m trying to use drag & drop of text from one text box to another but without suceess. Microsoft presented an example in "101 code samples" BUT in this example the code select and drag all the text in the TextBox, wether the user wants or not. I need to drag only the selected text (c...more >>

load XML file with a pathname.
Posted by Tracey at 8/30/2003 11:54:22 PM
Can someone tell me how to load a xml file into a xmldocument object by pathname of the xml file? Thanks in advance!...more >>

Methods vs functions
Posted by Stefan at 8/30/2003 11:53:58 PM
Could someone please explain if there is a difference between when one should use the word method or function. Do they have the same meaning? ...more >>

add more than one member to listbox
Posted by QT at 8/30/2003 10:17:48 PM
Dear Sirs, I am using following scripts to add data members to listbox, but I can only add one fiels. Any idea how can I add more than one data fields to listbox? Me.cmbGurup.DataSource = dv Me.cmbGurup.DisplayMember = "Gurup" ...more >>

Strongly Type Dataset
Posted by Jim Heavey at 8/30/2003 8:40:39 PM
Hello I turned Option Strict on and after I did, I am getting an error of "Option Explicit does not allow late binding". OK great, now it is time to learn how to create a strongly typed dataset. The "tables" I am actually working with are just flat files, but I thought I would go ahead and c...more >>

Post Event/Function
Posted by Laurensius Handra at 8/30/2003 6:49:24 PM
Did anyone know how to call event or function but application did not run immediately to that event/function, the application put that event/function in queue ... for example : 1 event Clicked() 1 funtion PostClicked() in event Clicked() there is a script to call funtion event Clicked() ...more >>

Inheritance/Event Firing
Posted by crk2 at 8/30/2003 4:51:01 PM
Here a simple one. (At least I think it is?) and any help would be truly appreciated. I have an inherited textbox on my form based on a custom texbox control. It looks something like this (I'll keep it simple) Base Class: Protected Overrides Sub OnTextChanged(ByVal e As System.EventArgs) ...more >>

TypeOF
Posted by Jim Heavey at 8/30/2003 3:16:04 PM
I want to know if the type of data of one object is the same type as another object. The "TypeOf" function let's me find out it the object is integer or string or.... but it does not seem to allow me to compare the types of 2 object to see if the are of the same type. How do I do this? dim...more >>

how can i change the screen resulation from vb.net
Posted by XenofeX at 8/30/2003 2:11:43 PM
Thanks a lot ...more >>

regex problem
Posted by bob lambert at 8/30/2003 1:58:05 PM
Hi, Here is another problem I am having, after discovering regular expressions are available in vb.net std 2002. I have a line read from file that produces the following string: inputln = "1.0 kt 1.6878099 ft/sec" I tried this (below) and it does not work, and I cannot figure out ...more >>

vb.net debugger - view source
Posted by bob lambert at 8/30/2003 11:11:22 AM
Help, I have vb.net std 2002, have a windows forms app and am debugging code behind it. I think I am viewing the source, I set the project to debug (as opposed to release), I start the debugger, it stops at a breakpoint. But as I step through, it stops on what appear to be comment lin...more >>

Selectable sort
Posted by Gary Owsiany at 8/30/2003 10:25:29 AM
Ok, the silence is deafening. I posted my selectable sort application to show that you can use the IComparable Interface just as effectively as the IComparer Interface and the feedback has been, well, there hasn't been any feedback. Does that mean I have silenced my critics? Are you so ...more >>

ListView - Finding/Setting The selected Item
Posted by Jim Heavey at 8/30/2003 10:12:02 AM
Hello. When you use the ListView1.Item(0).Selected = true, this addis the item to items which show up int the ListView1.SelectedItems collection, but the item is not highlighted in the control. How to you get the item highlighted and how to you identify the specific element which is highlight...more >>

Why doesn't this regular expression work?
Posted by Chris W. at 8/30/2003 5:22:54 AM
I'm having a problem and it's driving me crazy. This code does not work when run under VB.NET, but it works in 2 regular expression evaluators. Am I missing something here? Chris ----------- Sub test() Dim testString As String = "Me.Button1.Name = 'Button1'" Dim regVars As N...more >>

VB.Net COM Add-in for MS Wors 2003 Beta problem
Posted by Jitender Singh Rawat at 8/30/2003 5:07:02 AM
Hi All, I am currently working on a project, which involves creating a COM Add-in using VB.Net, for MS Word 2003. As usual, I am creating few custom menu buttons under the File and Tool menus. These menu buttons are being created in the OnStartupComplete event and removed in the OnBe...more >>

Getting info from a control on another form (Newbie question)
Posted by Failure at 8/30/2003 4:58:45 AM
I know it's best to use objects instead of pulling info directly from a control, but just for my understanding, please help me figure this out: It seems to me that if I create a textbox on Form1 and make it Public, I should then be able to put a label on Form2 and make it display the contents...more >>

Want to Create a differently-shaped GroupBox (or the illusion of such...)
Posted by Failure at 8/30/2003 4:52:03 AM
As far as I know, Groupboxes only come in one shape, a rectangle. But on one of my forms, it would be best if I could have a groupbox that's shaped like this: _______ | | _________| | | | | ...more >>

date/time computation in an expression column
Posted by Reney at 8/30/2003 4:37:30 AM
I am using Access in my project. In one of the forms, I am calling two tables, and two of the columns have date/time type, namely "ClockIn" and "ClockOut". I created a dataset and filled the dataset already. But I need to add another column which should calculate the difference between these two...more >>

Automating Excel from VB .NET
Posted by Howard Kaikow at 8/30/2003 2:08:18 AM
There's a significant problem in automating Excel from VB .NET. Reminds me of a problem I encountered almost 3 years ago that was caused by the Norton Auntie Virus Office plug-in. Can anybody reproduce the behavior described below? For this example, I am using Excel 2002 and VS .NET 2002 and ...more >>

Format string help
Posted by kuya789 NO[at]SPAM yahoo.com at 8/30/2003 1:32:32 AM
I need some help with formatting this string. Input: asfbsdfsd<time>June 12, 2003</time>blah blah I need to filter out everything outside the tags. so the output would be. output:June 12, 2003 can someone help me write a function? thanks in advance Aaron...more >>

Inheriting from CollectionBase
Posted by Shayne H at 8/30/2003 12:53:36 AM
I wanted to create a type-safe collection by inheriting from CollectionBase. Public Class MyCollection : Inherits CollectionBase I found that IList.Add did not allow the setting of a "key" to identify an object added to the collection. So to implement a "key" similar to the parameter allowed...more >>

Advice please on best method
Posted by allancammish NO[at]SPAM hotmail.com at 8/30/2003 12:21:04 AM
I am looking for advice on the best method of producing a piece of software written in Visual Basic or Visual Basic.NET that will control another standard windows program such as ‘Notepad' using ole automation. The system will be produced as a stand-alone EXE which will run on a single PC onc...more >>


DevelopmentNow Blog