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 > june 2004 > threads for wednesday june 9

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

Mapping of network drive does not get recognized by WMI?
Posted by c_johan_asplund NO[at]SPAM hotmail.com at 6/9/2004 11:55:42 PM
My problem is that I want to set file permission on a file on the network using WMI, but the folder might not be mapped which ,as far as I know, WMI needs. So my solution to this would be to map the folder in runtime, but for some reason WMI does not seem to get that I have done the mapping. I s...more >>


File Size
Posted by aussie rules at 6/9/2004 11:16:32 PM
Using a fileopen dialog, my user can select a file. I save this file name into a string value. How can I get the file size, so that I can make sure that the maximum file size they select is 10mb Thanks ...more >>

Adding A Tooltip To A ListView Item
Posted by Dino Buljubasic at 6/9/2004 9:26:36 PM
Is it possible to add tooltip to a listview item? Thanks, Dino...more >>

Problems Generating Random Numbers
Posted by Glenn Wilson at 6/9/2004 6:43:01 PM
I have a quick Question and I Hope some one can help or at least explain. What is happening is that I am trying to use random numbers in an application, as per the sample test code below. When I run this code the random numbers that are displayed are all the same for abot 25 cycles and then rando...more >>

32 bit checksum with VB .Net
Posted by nitinp NO[at]SPAM gmail.com at 6/9/2004 6:24:02 PM
Hi, I want to calculate 32 bit (4 byte) one's complement checksum of a byte array. Does anyone know of any sample source. Please help! Thanks NP...more >>

textbox, datagrid and datatables all not updating
Posted by hra242 NO[at]SPAM hra.co.santa-cruz.ca-dot-us.no-spam.invalid at 6/9/2004 6:22:49 PM
Hi, I'm having a problem getting data into my db using datatable and commandbuilder. The 'cars' table in my sql server holds: employeeID, carID, make, model, year. I have a datagrid with car info in it. The grid is bound to a datatable called dtAutos. The grid includes make, model, year....more >>

Removing NTFS Folder Permissions Using .NET
Posted by Ram at 6/9/2004 6:09:31 PM
Hey, I'v managed to find a way of adding NTFS permissions to a certain folder, But the problem is, the folder has a couple of inherited permissions which I want to delete. How can I remove the folder's NTFS permissions WITHOUT using WMI or special XP features? Thanks ahead! --Ram ...more >>

Mouse Over in Environment
Posted by agarrettb NO[at]SPAM hotmail.com at 6/9/2004 6:03:08 PM
Hi all, I come for a C# background and am trying to learn VB.Net. Normally, in VS.Net when I mouse over an object, the pop-up shows the Assembly.Class.Method (or other member) so that you can tell exactly where an object originates. It doesn't seem to do this in VB.Net for instance: mousing...more >>



vb.net using a .cs class
Posted by William Gower at 6/9/2004 5:17:09 PM
I was given a c# class to use in my vb.net project. What do i have to do other than just placing it in my project for my vb.net classes to be able to use it? Or can I not do that? ...more >>

Default InputBox Behavior
Posted by jcrouse at 6/9/2004 5:13:01 PM
Here is my code: Private Sub cmP1JoyUpLabelSize_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmP1JoyUpLabelSize.Click lblP1JoyUp.Width = InputBox("Enter the Width of the label.") lblP1JoyUp.Height = InputBox("Enter the Height of the label.") End Sub Afte...more >>

strong naming an assembly that has non-strong named references?
Posted by SStory at 6/9/2004 4:23:26 PM
How can I strong name my assembly if it references 3rd part non-strong named dlls? I just want my part strong named--I don't care about their part. Thanks, Shane ...more >>

how to implement skins
Posted by DzemoT. at 6/9/2004 4:14:55 PM
I'm going to use skins in my application for the first time. Which is the best way to implement skins in applications?Any sugestions?Links? Thx ...more >>

If only MSDN examples would actually work!
Posted by Tyson Ackland at 6/9/2004 3:48:42 PM
I'm teaching myself threading in VB.NET 2003 and found this article in MSDN: ms-help://MS.MSDNQTR.2003FEB.1033/cpguide/html/cpcondevelopingmultithreadedw indowsformscontrol.htm I have managed to get it to build in VB.NET 2003 but I did have to make a couple of minor changes before it would r...more >>

UserControl: Hide Children
Posted by Michael Maes at 6/9/2004 3:00:26 PM
Hi, I have a UserControl with some "Children" (e.g. one ComboBox & one = Label). I add the UserControl on a Form. If I perform a recursive scan through that Form's Control-Collection the = ..HasChildren-Method scans the Controls within the UserControl. This is a behavior I want to ommit....more >>

Can't run my exe from a network share!
Posted by Lars Netzel at 6/9/2004 2:09:59 PM
I get an error message if I try to run my exe from the network, what can I do to get this working? Best Regards /Lars Netzel ...more >>

Type.GetType with Two Project in one Solution
Posted by Mike NO[at]SPAM walterscentral.com at 6/9/2004 2:06:25 PM
I have Two Project in one Solution. I am trying to use Type.GetType("string") to pass the "Type" to a Sub. Project one is MWDNav. Project two is MWDBilling. MWDNav is my exe. MWDBing is a Class Library that holds my forms. I am reference MWDBilling and I can create a "new" instance of my MWDBil...more >>

Default value for structures
Posted by FOP at 6/9/2004 2:01:02 PM
Hi I've got a problem, I have a structure named mStruc but when I create a variable of that type I need to initialize all of its members otherwise I get an exception System.NullReferenceException when I make reference to the variable (that's obvious) Is there a way to set default values for the ...more >>

Creating Design-time properties in a WebForm
Posted by AG at 6/9/2004 1:58:57 PM
Is it possible to create properties in a webform that can be accessed via the Properties window at design-time? I have tried creating properties with attributes such as Bindable, Browsable, DesignOnly, DesignerSerializationVisibility , EditorBrowsable and so and so on but none work. Any ...more >>

class-name & method that called currently executing code
Posted by John A Grandy at 6/9/2004 1:12:21 PM
somewhere in the .net framework libs , is the following intrinsically supplied 1. class-name & method that called the currently executing code 2. for overriden methods within a multi-generation class hierarchy, the class-name ultimate caller ...more >>

Pointers
Posted by OS at 6/9/2004 1:06:05 PM
Is it possible (in vb.net) to pass the address of a variable into a function, assign a pointer to the variable that was passed as a parameter, and change the pointer so that the variable will be changed in the calling function? Here is an example in C++ void changer(char &b char *c = &b c[0...more >>

Porperty checking in the Set Procedure
Posted by DotNetJunkies User at 6/9/2004 1:03:37 PM
Is there a good way to handle property checking the set procedure if the value being set does not meet the standard criteria? Right now I just throw an error, and hope the user can handle it. Which works OK in a class, but it causes problems when I use it Custom Controls. eg Public Prope...more >>

Adressing an Embedded Crystal Report from VB code?
Posted by Lars Netzel at 6/9/2004 12:16:53 PM
I'm asking here since I hardly ever get answers on CR questions in the CR NewGroup. Although this question is also posted there. I have a working solution with Crystal Reports but the reports are external, that means I address them as filenames when I open them in the Reportviewer. I need to c...more >>

Creating and using databases under vb.net
Posted by John Dann at 6/9/2004 12:10:44 PM
Apologies if this isn't the best group - maybe someone can suggest a more appropriate one - I can't immediately see anything on ado.net. I need to store a significant amount of data (say 1-10MB) in a database that will be created and accessed under vb.net purely on a local PC from a Windows Fo...more >>

OT: I'm comming back
Posted by OHM at 6/9/2004 11:41:22 AM
Hi Guys, For those of you who remember me, I'm coming back very soon as my contract seems to have taken an unexpeted turn for the worse. See You All In The Groups Soon - OHM ...more >>

OutOfMemoryException
Posted by Fredrik Melin at 6/9/2004 11:21:18 AM
In the following code I get an OutOfMemoryException when trying to store a 16.7 MB file. (16773738 bytes) The error is raised on the code: Dim b(fs.length-1) as Byte Is there a limit on how large byte array you can declare? If so, How can I store the file in the database? Regards Fredr...more >>

Close and Open MDI
Posted by Joachim at 6/9/2004 11:21:01 AM
1. I am sure there is a way to close the ChildForm from ParentForm Example I have several (song) albums. Each album has several songs So.... Album is my ParentForm and each song has each ChildForm (6 songs = 6 ChildForm) (Album = Directory, Song = file) When I change the album (to albumX), I ...more >>

Running executable from Network
Posted by Parveen at 6/9/2004 10:59:01 AM
When I try to deploy my windows application, the installer puts the program executable on the user's local machine...I would rather have the executable run from a folder on the network...this way it would be easier to manage updates... I know that this is NOT possible by default...I get a violati...more >>

Running Executable from Network Folder
Posted by Parveen at 6/9/2004 10:52:01 AM
I have an application that I need to deploy to users...the installer puts the program executable onto the user's local machine...but I would rather have this executable out on the network...this way it would be much easier to manage updates... I know that by default this is not possible...I get a...more >>

Week date
Posted by simon at 6/9/2004 10:48:22 AM
If I have week number for example: 24 how can I get start(monday) and end(sunday) date? Thank you, Simon ...more >>

Control arrays or collections on Web Forms
Posted by Fred at 6/9/2004 10:37:33 AM
I have items that are variable in number that I wish to display on a web form. And I would like to be able to specify or access the contents of item(x) by referenced the x elements of that array/collection. I have tried something like the following on the form load event but though I receive ...more >>

Using managed code in Office 2003
Posted by Thilaka at 6/9/2004 9:54:27 AM
Some time back i learnt that Office 2003 will be built to be able to use managed code (instead of the classic VBA). Is this true. Can someone please, give me a link where i could learn about this (a few samples perhaps). (preferably Word or Excel 2003). Regards, Thilaka ...more >>

Hidden data addition
Posted by Eric Dreksler at 6/9/2004 9:15:14 AM
Hello, I was wondering if anyone could tell me a good way to add data to a datagrid (or it's dataset) when the user edits/adds a record in a datagrid. Basically, I want to be able to add a username / timestamp to a record, I'm sure there are plenty of ways to do this, but I'm sure it's been...more >>

System.Web.Mail
Posted by Brian Henry at 6/9/2004 8:53:13 AM
To use the SMTP mail service from System.Web.Mail do you have to have IIS installed on the client machien? I wanted my app to email any errors that may of occured to me on the clients machines in the application but now it is popping up with CDO errors (even on the machine it was working on orig...more >>

scrollable viewport control creation
Posted by Brian Henry at 6/9/2004 8:48:12 AM
Hello, I want to make a control that has a scrollable Gantt type display (not really one but will look similar to one) this is going to be custom drawn (i already have the drawing procedure completed for the overriden onpaint event) but the problem is this can be a very long scrollable viewpo...more >>

Wierd Codes in My TextBoxes
Posted by cemich NO[at]SPAM chesapeakebay.net at 6/9/2004 8:38:48 AM
I've written a VB 6.0 program that uses Access as a back-end. Things work pretty well, but I often retrieve data into large text fields that contains formatting codes like this, for example: {\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}} Somehow these codes get written into ...more >>

Custom Control Text Paint
Posted by Nathan Carroll at 6/9/2004 8:22:37 AM
The following works but would it make any sense to paint within the TextChanged procedure instead and if how do I get at control graphics from there? Protected Overrides Sub OnPaint(ByVal pe As System.Windows.Forms.PaintEventArgs) MyBase.OnPaint(pe) ControlPaint.DrawBorder3D( _ pe...more >>

Distinct groupid
Posted by frazer at 6/9/2004 8:14:06 AM
hi The following code is in c# but the same problem occrus even for vb.net. any suggestions are welcome. i have the following 2 typed datasets. 1."SecurityGroupMembership" LoginName GroupId 2."Users" LoginName Password Fname Sample data loginname groupid user2 8 user1...more >>

Form Background Image Disappears
Posted by jcrouse at 6/9/2004 8:06:02 AM
I am using the following code to get a background image for my form Private Sub mnuBgroundImage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuBgroundImage.Clic If OpenFileDialog1.ShowDialog() = DialogResult.OK The Dim sr As New System.IO.Str...more >>

InvalidCastException with VB .NET 2003 using Outlook 2003
Posted by George McCullen at 6/9/2004 7:56:02 AM
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in oItems" loop. After about 250 contacts, the program gives an InvalidCastException Error on the for e...more >>

HELP - How to dump an XML string into IE???
Posted by Edward Lee at 6/9/2004 7:52:49 AM
Hi, I have a string of XML in VB dot net. What I want to do is simply dump this string programatically into an IE browser so I can view it as its raw data form... Is there any way to do this in VB Dot Net WITHOUT first saving the file to disk? I don't want to do an XSLT, it's unnecessary f...more >>

timeout exception
Posted by pmcguire at 6/9/2004 7:36:03 AM
I have a vb.NET solution with a Windows Application project that contains my user interface and a Class Library project that contains (among other things) a class I call DataAccessComponent. This class inherits from System.ComponentModel.Component and contains a single SQLConnection object and a bu...more >>

Getting macros
Posted by Doug at 6/9/2004 7:11:02 AM
Does anybody know how to get a list of macros in an access database from VB.net?...more >>

How to list all global groups in AD
Posted by Matt at 6/9/2004 6:42:01 AM
I need to list all my global groups in my Active Directory into a list box. Does anyone know an easy way to do this? I really appreciate any help I can get. Thanks!...more >>

when scrolling a form vertically the "y" coords of a picturebox are reset!
Posted by scottmacebay NO[at]SPAM tiscali.co.uk at 6/9/2004 6:31:27 AM
Hi, I am writing a small game that is using a form 800 * 600. The form can be scrolled vertically up to a height of 1200 (basically the form can be scrolled down one screen vertically). The user controls a picturebox (my sprite) with the cursor keys When the sprite hits the y value of 60...more >>

How to derive colour components of a solid image
Posted by Ric at 6/9/2004 6:26:03 AM
Hello, I need to be able to derive which colours, and their percentages, that make up a solid color image (a square) for a chemical analysis application I am writing. For example, a pink square. I need to be able to determine which colors are being used (red and white in this case) and which perce...more >>

Panel Bordercolor
Posted by Jeff S at 6/9/2004 5:36:02 AM
Hello I am having an issue with changing the bordercolor of the panel control I have got to a point where I have created my own control and inherited the Panel control, then in the Overrides Sub OnPaint I draw a rectangle. My code below The problem I am having is when the new control is resized...more >>

Invoke Email Client
Posted by Wayne Wengert at 6/9/2004 5:20:50 AM
I have a Windows application in which users can select one or more individuals and an email message is created which they then complete and send. I currently use MAPI for this but I want to change the code to invoke whatever email client the users has as the default. Any pointers to some informa...more >>

Can a Property be an array?
Posted by FOP at 6/9/2004 5:11:03 AM
Hi I'd like to know if a property can be a array of a structure in VB.NET I have a structure called sListItem and I need a property to be an array of that type, something like Public Property ListItems()(10) As sListItem ....that I'd call as myClass.ListIems(i).an I am new in VB.NET and ...more >>

Run only once
Posted by Luis Mendes at 6/9/2004 2:36:02 AM
Hello I want to make an aplication that runs only one time Let me explain better, each time I click on 'calculator' icon, it will open several 'calculators' What I want to do is to make a aplication that, if I click is icon it will open the aplication, if the aplication is already open it will...more >>

How to transfer values bewteen Integer and UInt32 types in VB.NET?
Posted by steellock at 6/9/2004 2:06:01 AM
The below code always get compile error, "Can not change Integer to UInt32". Then how can I set BackColor property With txtob .Name = "txtProductCode .SetText("Apple" .BackColor = 8 ' BackColor is UInt32 typ End Wit ...more >>

How to transfer values between Integer and UInt32 Type?
Posted by steellock at 6/9/2004 1:56:02 AM
The below code always get compile error, "Can not change Interger to UInt32". Then How to set the BackColor property With TextObjec .Name = "txtProductCode .SetText("Apple" .BackColor = 8 ' BackColor is UInt32 typ End Wit...more >>

Setting file persmissions with WMI using a UNC path
Posted by c_johan_asplund NO[at]SPAM hotmail.com at 6/9/2004 1:55:55 AM
Hi all I'm trying to set the permissions of a file using WMI, and since i'm writing a windows service i want to use UNC paths doing this because the destination might not be a mapped path. I'we been looking around here at google and gotten the impression that it is not possible to use UNC pat...more >>

setting a dataset date value to null
Posted by David Batt at 6/9/2004 1:31:04 AM
Hello, I wish to set a date in a datarow to dbNull. the column fixeddate does allow nulls in the dataset Whenever I try and set the value to dbNull or "" I get an invalid cast error, is there any way tha I can get Dim drCurrentProj as dataro Call MyDataAccess.LoadDataset(GblC...more >>

replacing text data in a binary file
Posted by Adam J. Schaff at 6/9/2004 12:15:56 AM
I am writing a quick program to edit a binary file that contains file paths (amongst other things). If I look at the files in notepad, they look like: <gibberish>file//g:\pathtofile1<gibberish>file//g:\pathtofile2<gibberish> etc. I want to remove the "g:\" from the file paths. I wrote a cons...more >>


DevelopmentNow Blog