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 2004 > threads for monday april 12

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

going class crazy, is this the right way?
Posted by Zack at 4/12/2004 11:17:36 PM
I am writing an app using FileSystemWatcher and just went a little class crazy. I have the following classes Server MasterServer inherits server SlaveServer inherits server SiblingServer inherits server I also have the following collections ServerCollection MasterServerCollection Slave...more >>


System Tray Example - Modify
Posted by rdi at 4/12/2004 11:01:30 PM
I was able to get my utility to work using parts of the system tray example. If you right click on "Show Form" my form pops up--but only if that form is not already open. What I'd like to figure out how to do next is have a button on my form that not only closes the form--but closes the prog...more >>

Custom format on Clipboard
Posted by fred at 4/12/2004 9:56:09 PM
I am trying to Copy and paste using a custom format but I canot retrieve the data. In the main Form's class I have declared: Dim myDocmanFormat as DataFormats.Format then in the New Sub of the main form I have: myDocmanFormat = DataFormats.GetFormat("DocmanFormat") In the Copy ...more >>

opening form from menu problem
Posted by Alan McIntosh at 4/12/2004 9:41:04 PM
i'm very new to VB.net (started today 13/4/2004) Simple question : how do I have a form open after pressing a button on me menu I can create menu, and a form where I want to gather some login/config data for the app, How do I get it to focus when I press the 'Login' menu choice I've double click...more >>

Adding a reference
Posted by cwertman NO[at]SPAM yahoo.com at 4/12/2004 9:28:52 PM
I am rustier than I thought when it comes to Visual Studio and VB.NET for the last year I have been writing only ASP.NET pages in inline code and well I kinda forget how to add a reference , well sort of..... I am trying to add System.Net but it dosent show up when I right click and try to se...more >>

Very quick questions re Datagrid
Posted by edwinah NO[at]SPAM customercare.com.au at 4/12/2004 8:58:19 PM
Hi Everyone, 1. how can i STOP the datagrid from presenting data in a hierachical manner, all i want is a PLAIN spreadsheet view, not something the users have to click on to get the results. 2. make the datagrid read only? 3. get the cell data out of it? in flexgrid could use textmatrix...more >>

variable interpreting in VB.NET
Posted by Fred Nelson at 4/12/2004 8:03:39 PM
I'm new to VB.NET and I have a situation in which I would like to interpret a varialble - this may have another name in vb so I will explain what I mean. In FoxPro you can "interpret" a variable and get its value For example: dim vara as string = "1234" dim varb as string = '5678...more >>

Learn VB.NET
Posted by Penny at 4/12/2004 6:46:02 PM
Hello all I have NO programming experience and would like to learn VB.NET. What would be the best way to teach myself Thanks Penn ...more >>



Any way to extract certain bytes from the remote file?
Posted by joe NO[at]SPAM doprocess-dot-com.no-spam.invalid at 4/12/2004 6:31:23 PM
I posted this question, but I pressed 'post' and it disappeared. So once again: Problem: I need to go to lets say www.site.com/page.html Imagine that this html code is 6 mb long. I need to extract information between bytes 5000 and 5020. So, obviously problem is, that I do not want...more >>

Listview.selectedindices?
Posted by rdi at 4/12/2004 6:00:19 PM
the LV's multSelect prop is set to FALSE the LV currently contains 2 items. When I run it through the debugger I watch the SELECTEDINDICES property of the LV. When I select the first item in the LV, SELECTEDINDICES.Count is 1 and SELECTEDINDICES.IndicesArray(0) is 0 Then when I select ...more >>

How to Prevent Mouse Movement and Clicks From Reaching Control
Posted by Charles Law at 4/12/2004 5:46:58 PM
Sorry for reposting this question, but I did not get a single answer last time, and I'm sure you guys must have some thoughts on the matter. I have a user control which can be dragged and dropped onto a form in my application when it is running. I allow it to be clicked and dragged to a new lo...more >>

DataGrid Colum Names
Posted by Fred Nelson at 4/12/2004 5:40:33 PM
I have an application in which it would be VERY beneficial if I could obtain the names of the colums in a datagrid. For example dim datagrid1 as new datagrid datagrid1.datasource = (stored procedure that loads datagrid) datagrid1.databind() I am able to obtain the data in the datagrid by...more >>

AddRange method for CheckedListBox
Posted by David Morris at 4/12/2004 5:36:02 PM
Hi I want to add multiple items (about 20) to a checked list box control at run time, but do not know how to use the AddRange method of the Items collection. Currently, I am using the Add method, which works fine, but since I'm dealing with 20 items, this means I have 20 lines of code because the...more >>

Date / Time format question to finish and deliver web site. Thank You.
Posted by Miguel Dias Moura at 4/12/2004 4:34:18 PM
Hello, when i preview an ASP.net web site i am creating to a client Date and Time show as follow: Date: dd-mm-yyyy Time: hh-mm (24 hour clock. Ex: 21:45) Both Date and Time use 2 digits format. Ex: 02-02-2004 and 02:05 When i preview the web site in the hosting company server the...more >>

My post disappeared - date format problem
Posted by Coleen at 4/12/2004 4:17:02 PM
Hi all :-) My post on weird date formatting disappeared from my list, so if this a duplicate post, I apologize. I'm having trouble getting a date to format as just "MM/dd" I don't care what the year is, I get that information first, then need to format the data as MM/dd to look for the Mont...more >>

Access Specific Mailbox on Exchange
Posted by Jason MacKenzie at 4/12/2004 4:01:42 PM
We are running Exhange 2003. Basically, I need to access a specific mailbox for items with a specific phrase in the subject and open a text attachment and work with it. Is this even possible? If so, any help is appreciated. Thanks, Jason MacKenzei ...more >>

Dynamic Expression Evaluation
Posted by Narayanan Sankaranarayanan at 4/12/2004 3:58:12 PM
Hi All, How do I dynamically evaluate expressions in VB.Net? Thanks in advance Narayanan Sankaranarayanan ...more >>

Redirect Method
Posted by ruca at 4/12/2004 3:41:14 PM
Hi Can I set the target of a page in Response.Redirect???? Like this: I have a page that have 2 frames: contens and main (this are the names) When I click in one button I want that the result page appears in one or another page. For example in a Login page: When I click in Login button I wa...more >>

Problems with ImageList.. need help
Posted by David at 4/12/2004 3:36:04 PM
I have a problem that just cropped up with using an ImageList in my project I am using VB .NET 200 Problem: I have existing Form with 2 Image List controls. ImageList16 (for 16x16 Images) and ImageList24 (for 24x24). I have inserted images in each and it has worked fine for months... The System...more >>

Convert FoxPro to VB / VB.NET?
Posted by Bug at 4/12/2004 3:30:58 PM
Hello, Is it possible to convert a FoxPro application to VB? The source code / documentation are unavailable. Bug...more >>

DataGrids and obtaining information from them
Posted by Fred Nelson at 4/12/2004 3:27:05 PM
I have a stored procedure that returns a one row with large number of columns (350) to a datagrid "datagrid1" on a web form: datagrid1.datasource = getcase.getcaseinfo(case#) datagrid1.databind() This operation works and it shows the colum name and the value in a table format. Once bound...more >>

Protect from Reverse engineering
Posted by Fabio at 4/12/2004 3:25:16 PM
Hi all, How can I protect my .net code from Reverse engineering??? Please, any help will be useful. Thanks in advance, Fabio ...more >>

What events fire after the form is displayed on the screen?
Posted by Randy Fraser at 4/12/2004 2:57:22 PM
Can anyone tell me what events fire after the form is displayed on the screen? All I want is the form to load and display a message for 2000 ms and close automatically. I don't see an onFocus() method or Open() method that will execute code after the form is displayed. Best Regards Rand...more >>

datetime.addminutes
Posted by Roger Twomey at 4/12/2004 2:56:46 PM
I am doing something wrong here but I cannot see it. I have the following lines of code: datNextNotificationDateTime = Me.RunStartTime.AddMinutes(intContactInterval) WriteLog("NextNotificationDateTime is: " + datNextNotificationDateTime.ToShortDateString) So if I run the code line like th...more >>

Can I draw a rectangle on a form?
Posted by Rob Richardson at 4/12/2004 2:40:05 PM
Greetings! I am creating a form that will contain information that will eventually be on a label. The label has a 2-column table with lines separating the cells. I want my form to resemble the label, so I want to draw a rectangle and lines on my form. I don't want them to have any user inter...more >>

icon in menu
Posted by Brett Sinclair at 4/12/2004 2:37:28 PM
Hello Everybody, Did anybody find an easy way to add icon to menus in VB.net ? Please no third party controls. Thank you ...more >>

adding a dimension to an array
Posted by MattB at 4/12/2004 2:22:37 PM
I have an one dimensional array being created from a delimited list using string.split. Now I'd like to take that array and add another dimension and manually put a value in there based on the contents of the first element. I can loop through my array no problem, but I don't see how (if?) I can a...more >>

Message Queues
Posted by Neil Stevens at 4/12/2004 2:08:36 PM
Hi, I would like to implements a message queue much like i used to in vb6 as below:- dim myMsg as MSG while (PeekMessage(myMsg, hWnd, 0, 0)) if myMsg.Msg = WM_QUIT Then End end if TranslateMessage(myMsg) DispatchMessage(myMsg) wend (I know the syntax probably i...more >>

how to set set var to current instance of object?
Posted by Adda at 4/12/2004 1:45:45 PM
Is it possible to set a variable to a current instance of a running object without using the New keyword? Here is my situation. I have been trying to add a record to a dataset on a Parent Mdi form and refresh a datagrid on this parent at the same time from a childform. I could not make ...more >>

The target error of lnk file
Posted by yxq at 4/12/2004 1:43:31 PM
Hello I use the code(http://www.msjogren.net/dotnet/eng/samples/dotnet_shelllink.asp) to get the LNK file target, but i found some error. If i have installed two OS (A and B, on two partition C:\ D:\), when i login A OS, i want to get the lnk file target(D:\Documents and Settings\MyName\Star...more >>

Finding the Printable area
Posted by Steve Podradchik at 4/12/2004 1:43:00 PM
Hi, Our app likes to print data-rich output that fills the page width of the printer. Unfortunately, we've found that the printable area of each printer is a little different, making it a bit of a guess to set the left/right print margins which seem additive to the printable area start. I do...more >>

Desperate for some help with regular expression pattern
Posted by lisa.bogart NO[at]SPAM eds.com at 4/12/2004 1:37:37 PM
I am trying to take a string and parse it out into multiple strings based on a pattern but am stuck and am hoping someone can give me a clue. My pattern looks like so: sMatch = "\d\d\d\d-\d\d-\d\d\s\d\d:\d\d\sby\s<a class=link href=" & Chr(34) & "javascript:jsOpen[\s\S]*" What I want is to...more >>

Reading access ole fields
Posted by Marco Castro at 4/12/2004 1:36:47 PM
Along time ago I created an access database where I used the ole field type to store images. If I look at the table data it has the work Picture in its field. The image in that field displays properly if I display it from inside of access but I can't figure out how to convert what's in there to...more >>

The target of lnk files error
Posted by yxq at 4/12/2004 1:26:00 PM
Hello I use the code in accessories to get the LNK file target, but i found some error. If i have installed two OS (A and B, on two partition C:\ D:\), when i login A OS, i want to get the lnk file target(D:\Documents and Settings\EngYXQ\Start Menu\Programs\WinRAR\WinRAR.lnk) in the other one ...more >>

Input Box
Posted by Parveen at 4/12/2004 1:01:11 PM
I have a child form that calls an input box to receive information from a user during runtime. The code looks like this: strResult = InputBox("Enter new class code") I am having trouble getting this inputbox to show up on the screen!! It shows up in the taskbar but I can't access it......more >>

Weird date format problem
Posted by Coleen at 4/12/2004 12:15:31 PM
Hi all :-) I have a bit of code that chacks for the last day of the Month, and if it falls on a week-end, sets the due date to the Monday after... I'm trying to get the date to go to the Tuesday afterward, if the last day of the month falls on the week-end and the Monday afterwards is a holida...more >>

Loading a DataSet - Newby
Posted by Fred Nelson at 4/12/2004 12:06:42 PM
I have an applicatioin that I'm writing that uses a "case" file that contains over 350 columns and more may be added in the future. I would like to create a dataset with all the column names and only one case record that is delivered by a stored procedure. (I have a stored procedure that works ...more >>

OT: Documentation
Posted by Brad Allison at 4/12/2004 11:58:47 AM
I just have to say, after writing my first distributable app (a small app), I HATE writing the documentation. Brad ...more >>

DAO in .Net ?
Posted by Phil Hunt at 4/12/2004 11:30:13 AM
I have a VB app that use DAO to connect to Access2K. I am thinking of changing the app to .Net, my question is can I keep the DAO, (mainly because it runs faster). TIA. ...more >>

marie@jamsfam.com
Posted by Mike Labosh at 4/12/2004 11:10:03 AM
(K) -- Peace & happy computing, Mike Labosh, MCSD "SELECT * FROM Users WHERE Clue > 0" ...more >>

Application error when releaseing Excel COM object
Posted by Rich Wallace at 4/12/2004 11:04:16 AM
Hi all, I have a VB app that runs and manages individual XLS files within a single COM object. Upon processing the final fie, I attempt to close out the EXCEL object and release it using System.Runtime.InteropServices.Marshal.ReleaseComObject. I have a Try...Catch in my routine as seen bel...more >>

Attaching debugger in a macro
Posted by Chris Dunaway at 4/12/2004 10:51:48 AM
I am using the following code in a macro to attach to a process: Dim sFilename As String = "progname.exe" Dim proc As EnvDTE.Process For Each proc In DTE.Debugger.LocalProcesses If (Right(proc.Name, sFilename.Length) = sFilename) Then proc.Attach()...more >>

Available SQL Server list
Posted by EvanK at 4/12/2004 10:46:09 AM
Is there a way to access a list of available sql servers in vb and make a dropdown list?...more >>

Printing WebPages from VB.net
Posted by peter NO[at]SPAM mclinn.com at 4/12/2004 10:20:00 AM
I have a couple pages on our intranet that I want to print on a regular basis. The conent is dynamic, and so I want to take snapshots, and send these jobs directly to a printer on the network. Has anyone done this before? I'm looking for some sample code. Thanks, Peter...more >>

ADO question: no built-in server-side load time property?
Posted by Bob at 4/12/2004 10:04:55 AM
Is there a way in ADO.Net to get the (SQL server) time of load of a dataset? I'd rather not have to call a separate stored procedure with SELECT GETDATE() every time I need this information. Bob ...more >>

Expression cannot be evaluated at this time
Posted by Greg at 4/12/2004 9:58:27 AM
I have a dataset that I need to read a value from during debugging but keep getting the error in the title of this message. I'm setting a break point on the line: For c = 0 To dsThreads.Tables("Temp").Rows.Count - 1, but I can't get the value. What's strange is that the table has rows in it but...more >>

How to show form after Splash Screen closes
Posted by Danny J. Lesandrini at 4/12/2004 9:34:00 AM
Ok, this should be really, really easy ... but I can't figure it out. My project is set to load frmSplash first, which runs some housekeeping stuff. When that finishes, I want to open frmMain. This code DOESN'T WORK ... Me.Close() gfrmMain = New frmMain gfrmMain.Show the object variab...more >>

(English) Stream.Ream in Bytearray Problem
Posted by Daniel von Fersen at 4/12/2004 9:02:54 AM
When I want to Read the Bytes 1000-2000 from a Stream into a ByteArray using Stream.Read(byteArray,1000,2000) they are written to the positions 1000-2000 in the byteArray. but my Array is only 1000 items long Array(0-999), and i just want to have the positions 1000-2000 from the stream! ...more >>

Create a dll
Posted by Patrick at 4/12/2004 9:01:09 AM
I am new to .net, but I have been pogramming in VB 6 for 4 years. I am trying to create a dll in VB.net. I have created them in vb6.0 before with the ActiveX DLL. I created a new Class Libary. I wrote the code. Do I just goto Build...Build Solutions and then the dll is under the bin folder? I ...more >>

Stream.Read in Bytearray Problem
Posted by Daniel von Fersen at 4/12/2004 8:59:55 AM
Hallo, Wenn ich mit Stream.Read(buffer,1000,2000) 1000 bytes in ein Bytearray einlesen möchte werden diese Bytes an die positionen 1000-2000 geschrieben! Ich möchte jedoch (da ich nur diesen Teil [1000-2000] auslesen möchte, dass diese Bytes halt an positionen 1000-2000 geschrieben werden, da...more >>

'Class not registered' When application is installed and run on another workstation.
Posted by hughsie1000 NO[at]SPAM hotmail.com at 4/12/2004 7:44:22 AM
Hi I have created an installation package for my app and I have installed the application onto another machine together with the framework and the correct MDAC version. The problem is when I access something in the application that uses one of the required dlls. All the dlls have been in...more >>

Runtime -vs- Designer
Posted by D Miller at 4/12/2004 6:49:52 AM
Is there a way I can tell if the progam is running or if it is being editting in the designer? ...more >>

Textbox truncate
Posted by Ben Gulley at 4/12/2004 6:46:04 AM
I have a small app that is basically a catalog. When the user selects an item from a list box, it updates a description textbox with a description from an access db. Any description over 255 characters is truncated to 255. I have verified the access field is of type memo and the entire string i...more >>

Current Mode
Posted by D Miller at 4/12/2004 6:02:07 AM
Hopefully this will make sence. Here is my problem, I have a form that takes some data from a database in the when "load" procedure is run. The problem is that the database is not available when coding the problem at design time. The load procedure seems to run even at design time. I rememb...more >>

Academic version restrictions
Posted by Slonocode at 4/12/2004 4:50:33 AM
Is it legal to give away an application compiled with the academic version of visual studio? ...more >>

Returning error during service startup
Posted by matt breedlove at 4/12/2004 3:51:30 AM
(x-posted to microsoft.public.dotnet.general and microsoft.public.dotnet.languages.vb) Hello all. I am currently creating a Windows Service using VB.NET and would like to return an error if something goes wrong during startup, IE: parsing a configuration file. The only way I know of is t...more >>

Process cannot access the file
Posted by Stuart Shay at 4/12/2004 2:02:02 AM
Hello All I created a utility that uses the File System Watcher and then once the File is copied to the Watch Directory my utility parses the file then moves the files to a set directory. The Problem is that I am using a Anti-Virus Software on my server since I am coping allot of files ...more >>

Simple Question about ADO error
Posted by sajid_yusuf NO[at]SPAM yahoo.com at 4/12/2004 1:01:03 AM
Hello!, After I drag and drop ODBCDataAdapter on my form and reach the section (during the wizard) where you have the button for Query Builder. Just after clicking the Query Builder button I receive the following error message: ADO error: Multiple-step OLE DB operation generated errors. Che...more >>

Simple Question about ADO error
Posted by sajid_yusuf NO[at]SPAM yahoo.com at 4/12/2004 12:03:34 AM
Hello!, After I drag and drop ODBCDataAdapter on my form and reach the section (during the wizard) where you have the button for Query Builder. Just after clicking the Query Builder button I receive the following error message: ADO error: Multiple-step OLE DB operation generated errors. Che...more >>


DevelopmentNow Blog