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 > march 2004 > threads for thursday march 25

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 31

Help loading a DataGrid?
Posted by Terry Olsen at 3/25/2004 10:30:18 PM
I'm working on converting a VB6 App with a MSFlexGrid to .NET. I need to load a DataGrid from a 3-field CSV file. Actually, several 3-field CSV files, but I want each file to be collapsable into a header bar with the name of the CSV file. Is this possible? Is there example code available? ...more >>

Problem with MyGrid.RenderControl(hw) when many data
Posted by anniech2000 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/25/2004 9:53:42 PM
I want to export the datagrid to an excel file using htmltextwriter. My coding are as follows: Response.ContentType = "application/vnd.ms-excel" Response.AppendHeader("Content-Disposition", "attachment;filename=xxx.xls;") Response.Charset = "" Response.Buffer...more >>

Add Files to Project
Posted by Julia Sats at 3/25/2004 8:50:49 PM
Hi, I have files that I use in many projects. If I add file to project - .Net will copy the file to the project directory. If I change something at such file the changes will be only for current project. How can I (if I can ) to use the global files for many projects and if one of them update...more >>

instance object path
Posted by Ron Dahl at 3/25/2004 8:08:12 PM
After I create a new instance of Word, how do I get the CurDir of that instance of Word? Thanks in advance for any help. Ron Dahl ...more >>

increasing a text box value
Posted by Alfred at 3/25/2004 7:42:43 PM
Hi I am trying to change over from access to vb.net. If I want to increase a value I used the following in Access. How can I change it to vb.net. Example if I press the up arrow the value in the control must increase by one. Public Sub UpDownKey(KeyCode As Integer, Shift As Integer) Select...more >>

issue with xml serialization of a custom class
Posted by Craig Buchanan at 3/25/2004 6:45:56 PM
I am trying to serialize a class that implements ienumerable. it has a private arraylist that contains instances of a custom class. At this point the xml resembles: <PropertyInfos><anyType xsi:type="PropertyInfo"></anyType></PropertyInfos>" I would like the xml to resemble: <PropertyInfos>...more >>

VB.net and ActiveX Controls
Posted by mgarg NO[at]SPAM syssol.com.au at 3/25/2004 5:40:36 PM
Hi All, In VB6, if i create an ActiveX Control, I can add this control to my Toolbox and can just use it like any other Conrols say for example "TextBox" bu dragging and dropping on the from. If I want to do the similar kind of thing in VB.net how do i do it. I created a "Windows Control Libr...more >>

Automation object wants a safe array of DWORDS?
Posted by Robin Tucker at 3/25/2004 4:04:32 PM
My automation object (COM) wants a safe array of DWORDS passed into it, but VB.NET tells me what I'm passing in is invalid. I assumed all basic arrays in .NET were implicitly System.Array's and that the marshaller would automatically convert it to the required SAFEARRAY. This appears not to be ...more >>



Checkbox Problem
Posted by source at 3/25/2004 4:01:02 PM
Is there a event / delegate I can create which will allow me to pop a messagebox asking me "Do you want to check the checkbox?" when a user tries to check a checkbox. If the user says Yes I want a check to be appeared on the checkbox if the user says no, the checkbox should not be checked. ...more >>

Visual Basic.NET or Visual Studio.NET
Posted by Bigfoot at 3/25/2004 3:52:43 PM
Hi, I want to make a conference booking webapplication that "talks" with our Microsoft Exchange server. Example: someone wants to book a conference room via an internetbrowser, he fills in a webform and on submition the system merges the time and date information into the calendar of the Micro...more >>

open app from sub main - app quits
Posted by Abda at 3/25/2004 3:39:46 PM
Yeah, if I open my app from sub main Module 1 Sub Main() Dim frm As New Form1 frm.Show() End Sub End Module my app quits. How do I keep it open?...more >>

how to change the paper size in crystal reports?
Posted by jaYPee at 3/25/2004 3:22:15 PM
i have created a report using expert wizard and don't know how to change the paper size into 8 1/2 X 13. anyone know how to work around w/ this problem?...more >>

Really basic forms question (just learning!)
Posted by Rich at 3/25/2004 3:21:06 PM
Hi, I have the following code to open a Windows form: Dim oFrm As New frmEquipmentAdd() oFrm.Show() oFrm = Nothing I don't want the user to be able to open the form multiple times. Can anyone tell me what I can add to this code to check if the form is already open, and if it is, not to...more >>

finding controls on a window.
Posted by BDW at 3/25/2004 2:46:07 PM
hi, i'm using API functional calls from VB.net to find a window and send keystrokes to controls on the window, in this case a <next> button. what functions will help me send a keystore to that button if I have a handle to the window? I can use winfo to class info, text, ect. for that button, but I n...more >>

Changing the ForeColor of an individual item in a CheckListBox??
Posted by Michael Horton at 3/25/2004 2:17:40 PM
First a little background: The school were I work needed the ability to test real-time reporting students by playing specific audio files over the computer and I've written an app that populates a checklistbox from a datatable with the computer names. One of the instructors has asked me if it...more >>

Daily Calendar
Posted by Andree at 3/25/2004 1:55:36 PM
Hello. I'm writing My graduation Theses and I'm makeing program similar as Office 2003, And in this program I must make Daily Calendar/ Scheule/ with tasks in different hours. Can anybody help me, How can I do it? Or could on Internet find any Source code? Or least manual How Can I do It. Tha...more >>

Conversion from VBA code (XP) to VB.NET (2002 Standard Edition)
Posted by Ronald Dodge at 3/25/2004 1:36:43 PM
How much effort would it take to convert VBA code into VB.Net code? I realize some of the code that I have in my Access VBA will no longer be needed (such as my custom validation code to address a mouse user friendliness issue in Access, which VB6 and beyond has resolved with the CausesValidati...more >>

managed code from vbs?
Posted by Paul S at 3/25/2004 1:22:03 PM
Can you execute managed code from visual basic script? Could I instantiate a .net class from vbs? Yes, the client has the framework loaded. ...more >>

MYSQL ODBC Connection
Posted by James Proctor at 3/25/2004 12:49:29 PM
Hi there, im having problems connecting to a MYSQL database and think there must be something up with my connection string. I wondered if anyone could help me out. Im using an ODBC connection. It currently looks something like this. DBStr = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;...more >>

"Selected Items", drag and drop and owner draw ListBox.
Posted by Robin Tucker at 3/25/2004 12:39:21 PM
Trouble up mill - My owner draw list box allows me to multiple-select. Once the items have been selected, clicking one of them in order to drag and drop all those selected, selects the item I click on the "mouse down" event (oddly enough), so only the first item shows as being selected for th...more >>

Set target in a table
Posted by ruca at 3/25/2004 12:17:58 PM
I have a table that rigth column have a link items menu. Can I set the left column of that table as target of that links? How? Or have I construct new pages for each item? -- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca ...more >>

Description on class items
Posted by Brian Henry at 3/25/2004 11:40:53 AM
When you are using intelli sense and looking at the member list of a class, sometimes ith as a description there also. How do you add a description to your members of classes like that? ...more >>

PrintPreviewDialog printing bug
Posted by Jim Perry at 3/25/2004 11:26:10 AM
I can display multiple pages in a PrintPreviewDialog with no problem but clicking the Print button on the dialog only prints the first page. Anyone else come across this problem This is on Win2K, not Win98. I've seen that there's a bug with printing in Win98. Anyone has some info on that?...more >>

Lost controls
Posted by hugh at 3/25/2004 11:24:51 AM
Hi, I copied a exsisting window form and code to a new form, and some controls are not visible on the new form. But I can see from the code that the events associated with the controls are still there. I even could not add the new controls with the same name, which means that the control...more >>

EventLog Message Files
Posted by Paul at 3/25/2004 11:10:55 AM
Hi. Can anyone point me to a VB.NET article on how to create EventLog Message files for Custom Event ID's/Categories. Thanks Paul ...more >>

A Way to use .Net dll in VB6
Posted by Eric Levy at 3/25/2004 11:10:20 AM
I am having problems with MS getting rid of MS J++... I have a large application that uses MS J++ code as a back-end data retrieval mechanism into a VB application. I am not ready to port my VB app to .Net, but appearently I have to port my MS J++ code to J#.Net because of the discontinued supp...more >>

Devenv Access Violation
Posted by Alex Shirshov at 3/25/2004 11:03:09 AM
Hello, All! When the VB.NET projects grows up to the several thousand lines of code, every 5 minutes i catch the av from devenv.exe. Unhandled exception at 0x52a82a9d (msvb7.dll) in devenv.exe: 0xC0000005: Access violation writing location 0x00000000. Here is disassemply [code] 52A82A87 ...more >>

Interact with Outlook 2002/2003?
Posted by M O J O at 3/25/2004 10:42:37 AM
Hi' (using vb.net) I need to interact with Outlook. In the "New Message" form, I want to add a textbox where I can type in a customer name, have some vb.net code search for the Customer ID, save the message in my sql database and then send it. Is this possible to "interact"/addon to ...more >>

Changing application name
Posted by Santosh Pradhan at 3/25/2004 10:18:37 AM
Hi All, Our client did not decide the name for the application until the development was over. Now we need to deploy application using different name for the application and the virtual directory on IIS. After I changed the project name and installed it in different virtual directory .NET d...more >>

Microsoft.ApplicationBlocks.Data dll Reference question
Posted by Chris Lane at 3/25/2004 10:01:06 AM
Hi I have a silly question where would be the best place to put the Microsoft.ApplicationBlocks.Data dll before referencing it I thought about putting it my application directory. Does it matter where, is there a certain folder I should place it inside of my application directory Thanks Chri...more >>

Storing all the data of a binary file into a string
Posted by Jason Roozee at 3/25/2004 9:55:09 AM
I have submited previous posts about this but still have not come toa conclustion. I have a crystal report file which is obviously not a text file, it's a binary file. I want to open the file and store every single byte of it's data in to a string variable. In my attempts using a BinaryReader ob...more >>

Printing items in a listbox in VB.NET
Posted by carlob NO[at]SPAM global.co.za at 3/25/2004 9:48:21 AM
From the answer below I am now not getting an error! Great! But it is now printing the items one on top of each other. Any ideas? Thanks Hi I'm trying to print the items in a listbox with the code below but when I click on print I get "An unhandled exception of type 'System.ArgumentOutO...more >>

Dynamicly create object at runtime....
Posted by Doug Swanson at 3/25/2004 9:46:57 AM
We have a standard product that we deploy at multiple different client sites. The problem is that we're getting to the point where some of the clients want some "custom" code for specific business functionality. I would like to be able to (and I have done this with clients but with custom UI ....more >>

How can I get the database name from the bakup file
Posted by Bruce Lee at 3/25/2004 9:45:49 AM
I want to get the backup set name from a database backup file. How can I do? Thanks, Bruce ...more >>

Could I have written this better?
Posted by klj_mcsd NO[at]SPAM hotmail.com at 3/25/2004 8:57:46 AM
Let's say you have a string of "0101010" Each position represents a day of the week? ArrDS = strDS.ToCharArray() If ArrDS(0) = "1" Then strDSDays = strDSDays & "Sun, " If ArrDS(1) = "1" Then strDSDays = strDSDays & "Mon, " If ArrDS(2) = "1" Then strDSDays = strDSDays & "Tues, "...more >>

Addressing ComponentTray Objects
Posted by Michael Maes at 3/25/2004 8:42:46 AM
Hello, I wan't to address ComponentTray Objects such as Timers, NotifyIcons, = ContextMenus, ..., in short: objects that don't belong to the Forms' = ControlCollection. The trick is I want to do this not knowing (in design-time) whether they = will exist on "a" form, even worse, not knowing...more >>

Mouse Cursors Documentation ****
Posted by rcl58 NO[at]SPAM iglou.com at 3/25/2004 7:35:21 AM
I am trying to find documentation on how to create and implement custom cursors in VB.Net. I need to know the very basics, formats, file types, usage, limitations, etc. I have purchased a cursor drawing program but I'm still in the dark about the whole subject. A book new or old would be grea...more >>

Impersonate With MAPI
Posted by google NO[at]SPAM valleyboy.net at 3/25/2004 6:27:37 AM
I am writing an application that will allow our helpdesk to change and set the Out Of Office message for other users. The problem that I have is the helpdesk will not have access to any of the mailboxes, and we don't want to give it to them. Is there a way that I could create a MAPI.Session for ...more >>

GUI Color same as Desktop
Posted by Brad Markisohn at 3/25/2004 1:38:36 AM
Is there a way to set a Form color to the color, or default color, of the desktop? TIA Brad ...more >>

Asynchronous Message Box
Posted by Li Pang at 3/25/2004 1:11:10 AM
Hi During the execution of my application, I want to pop up a message window to users in an asynchrounous way Do somebody have a sample code Thanks in advance ...more >>

Assembly Security
Posted by Z D at 3/25/2004 12:45:01 AM
Hello, I have a compiled assembly (.dll) that I'd like to protect so that someone can't copy the dll and then reference/use it in their own applications. Is there a way to restrict which assemblies can use this assembly of mine? I was wondering how exactly this would be accomplished? If...more >>

Select a number of rows randomly in a table ?
Posted by Phan Tien at 3/25/2004 12:01:41 AM
How can I select a number of rows randomly in a table in Microsoft Access or SQL Server? I tried with many ways but I can't solve this problem Please help me. Thank you very much ...more >>


DevelopmentNow Blog