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 > april 2004 > threads for tuesday april 13

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

Retrieving Users and Groups from AD in chunks??
Posted by c_johan_asplund NO[at]SPAM hotmail.com at 4/13/2004 11:50:39 PM
Here is my problem and I hope there is someone out-there who can help me. I want to search my domain for all users and groups. And since there are lot of them I want to read them back in chunks of 50, how do I do that? I have tried to use the property SizeLimit of the Directory searcher a...more >>


new project problem
Posted by SAI at 4/13/2004 11:07:57 PM
I have already install .net for vb programming. I choose "New Application" for vb project but it prompts "Automation server can't creeate object". No form can be created. What's the problem? I use XP pro. Thanks. ...more >>

Multiuser Problem
Posted by Prabhat at 4/13/2004 9:29:03 PM
How do I lock a particular record that one user has opened for editing? If I use the pessimistic type, can other users view the record (but not edit it) and return a message telling that another person is editing the record, or does this type lock the record such that it is unavailable until t...more >>

Registering .dll from Windows Control Library
Posted by Brian Mitchell at 4/13/2004 8:48:43 PM
Please forgive the newbie question, but I created a Windows Control Library project and I am wondering how I go about registering the .dll so I can reference it in my other applications? (So it will show up in the references) Thanks!! ...more >>

Regular Expressions
Posted by Mark at 4/13/2004 8:36:02 PM
I'm having trouble creating a regular expression to parse bits of data from a string and was hoping someone could lead me in the right direction. Consider the following string 423456 Victor Frankenstein, M.D. 04/04/200 I want to construct a new string to look like this 04/04/2004-423456-Fran...more >>

Date format in datagrid
Posted by Niclas Lindblom at 4/13/2004 8:28:14 PM
Hi, I have a bound column in a datagrid. The value in the database is using the SQL datetime format which gives both date and time. How do I configure the datagrid cell to only display the date in the format DD/MM/YYYY ? I have tried colDateCompleted.DataFormatString = "{0:d}" but thi...more >>

Basic questions on Classes - before I develop bad habits
Posted by Paul Bromley at 4/13/2004 8:07:01 PM
I have written a similar enquiry to this newsgroup, but had no responses - hence I will rephrase it with the hope that someone will answer. I am new to using Classes, but trying hard to get the basics at the present time, and seem to be winning. Presently I am developing a Usercontrol for us...more >>

ByRef parameters for objects / reference types
Posted by tinman at 4/13/2004 8:02:59 PM
Hi.... Assume Function A in an application calls Function GetSomeData in another assembly..... which then is the prefered method to return the SqlDatareader object back to Function A (and why ?). Does the prefered option apply to all reference types ? Option 1 ******* Public Function Ge...more >>



Conversion issue with option strict
Posted by John at 4/13/2004 7:02:23 PM
Hi I am getting conversion errors in the below code on the lines highlighted in red. Would appreciate any tips on how to fix these errors. Thanks Regards dim Company_ID As String dim Temp As String dim WordApp As Word.Application company_id = "xxxx1" temp = "c:\......more >>

Create a paramter that will accept both Textbox and Richtextbox control
Posted by Ed at 4/13/2004 6:51:03 PM
how can I make a parameter accept etiher richtextbox or textbox controls? currently My parameter is (ByVal txtBox as system.windows.form.textbox). This creates an error if the txtBox is of type RichTextBox....more >>

Locating objects???
Posted by Radith at 4/13/2004 6:21:02 PM
TO ALL Remember in VB 6.0 we could do slight location adjustments using our arrow keys in the keyboard. How come you can’t do that in VB.NET; do you seriously have to specify pixel values in the location property or is there an option to enable us to use the arrow keys when locating objects Th...more >>

MS Access Interop
Posted by masoodadnan NO[at]SPAM hotmail.com at 4/13/2004 5:23:11 PM
I am using access interop (object 10.0) in my application. It works fine on my machine but when I test it on some machine which has an old version of access then it fails. This is how I am declareing my variable. Dim oAccess As Access.Application How do I resolve the issue so that it does...more >>

Richtextbox basic vb.net 2003
Posted by Sam at 4/13/2004 5:11:04 PM
I need some help...pleas Can someone tell me how, using the richtextbox's Lines\String[]Array property, I can add text, line after individual line, at run time, to a richtextbox I have search all of msdn and the KB and there is no example, good explanation of using the Lines\String[]Array propert ...more >>

User Control Events
Posted by Erencan at 4/13/2004 5:06:03 PM
I have a user control and it has a textbox. I added it to form. But i can't use the textbox's events on form. How can i do it? Pls help me....more >>

Direct Sound
Posted by Bill English at 4/13/2004 4:21:02 PM
I want to use a trackbar to show progress of a sound file currently being played. So what I thought I would do is this Have the trackbar's maximum value equal 1. On my timer's tick event, I would have the trackbar's value equal the current play position divided by the lenght of the buffer. I ca...more >>

A question about NotFiniteNumberException
Posted by Brent Hill at 4/13/2004 4:19:44 PM
Hello All! I just have a quick little question that I have not been able to solve myself. Within a program being developed in VS.NET, I have written a private function with the following code: Private Function FmaxTest() Dim varianceHi, varianceLo, Fmax As Double ........ (In this p...more >>

MD5 checksum of Visual Studio 2k5 preview
Posted by Gary Hunt at 4/13/2004 4:19:26 PM
I know this is slightly off topic but could someone do me the MD5 checksum of the Visual Studio 2k5 preview from MSDN Subscribers Download. I've downloaded all 2.7GB of it only to find that I think it may be corrupted as it is having problems with DS20.exe. If someone can MD5 it for me I wil...more >>

Change properties of a child form through a parent form
Posted by Susan_Sullivan NO[at]SPAM dell-dot-com.no-spam.invalid at 4/13/2004 3:06:46 PM
How can I change properties of a child form through a parent form? I have a child form with a rich text box. I want to control font properties of the rich text box through a menu on the parent form. How do I get the two to talk to each other? ...more >>

How to "double post" ???
Posted by Assaf at 4/13/2004 2:56:55 PM
Hi all, My client is using an online service provider that processes survey responses. After a user fills survey.aspx and presses the OK button, 2 things need to happen: 1. the data has to be posted behind the scenes to the provider's URL (e.g., http://www.surveyprocessingprovider.com/srvy...more >>

Valid URL
Posted by Tony at 4/13/2004 2:56:46 PM
VB.net XP Pro VS I would prefer to use win forms but doesn't matter if I have to use web forms. Whichever is better. How can I determine if a URL is valid? meaning it does exist and displays a page? Thanks Tony ...more >>

Webbrowser Control Question
Posted by GG at 4/13/2004 2:09:32 PM
VB.net Standard 2003, Win2kPro Hello, I have the webbrowser control in a project. I want to have a button that would disable/enable scripting (the 3 scripting radio buttons under the security settings). I would prefer not drilling down through the options using the Internet Tools tab. Al...more >>

Passing Variables
Posted by Matt at 4/13/2004 1:46:02 PM
I was wondering how I could pass variables between forms? Thanks in advance...more >>

VS.Net 2003: Where is the .config file?
Posted by feng at 4/13/2004 12:38:42 PM
Hi, We just converted our VB.Net Windows exe project from VS.Net 2002 to VS.Net 2003 and ran into a problem. the MyApp.exe.config file that we use for our customized configuration settings is removed when the conversion is done. It won't work even if I menully copy the file back. The se...more >>

Catching An Error
Posted by Charles A. Lackman at 4/13/2004 11:44:03 AM
Hello, I have made an application that has a Shock Control on it. I have two applications one in VB.NET and the other in VB 6.0. If Shock is installed on the Install Computer the application runs great, But if it does not I receive the following error: Cannot Load Custom Control. What I am...more >>

Converting String Value to a Formula for calculation?
Posted by SiewSa at 4/13/2004 11:31:29 AM
I have come to a situation that I need to use the result of a string variable as a formula for performing calculation. As an example below: Dim X As Integer Dim Y As Integer Dim Result As Integer Dim Formula As String = "X + Y" X = 3 Y = 5 Result = Formula MessageBox.Show...more >>

Checking if running
Posted by MadCrazyNewbie at 4/13/2004 10:19:56 AM
Hey Group, How would I check if my Application is running on a local PC and if it is throw a message to say its already running and quit the the second instance? Many Thanks MCN ...more >>

arraylist - childmdifrm.Activate - how?
Posted by Adda at 4/13/2004 9:32:15 AM
In a Parent mdi form I have a datagrid. I select a record from the grid and then invoke a childmdi form. I add the childmdi to an arraylist to keep track of it. If a user has selected multiple records from the grid and has multiple childmdi forms open and then re-selects a previously se...more >>

Telling what type an object is and checking type
Posted by Brian Henry at 4/13/2004 9:28:44 AM
I know i read this somewhere before... If I have an object of unknown type how can I say is this a datarow? or is this an integer? then do something based on that... i thought IS worked for that but it doesnt seem to want to do it correctly... ...more >>

2 ways to close a connection
Posted by Eric Sabine at 4/13/2004 9:23:01 AM
In my Finally block, I was using cn.close (where cn is an ADO.NET connection object, SQLConnection to be exact) and then I came across the following in some microsoft code. If Not cn Is Nothing Then CType(cn, IDisposable).Dispose() End If I have to admit, I'm not sure what happens her...more >>

Basic data processing question
Posted by Danny A. at 4/13/2004 9:16:02 AM
I am in the process of writing the middle tier for an application. This application will grab records, runn them through a process and save them in a table. In going through this process I'll have a staging table from where I grab the records before they are analized and saved into the history tab...more >>

Two combo boxes tied together on data set
Posted by Brian Henry at 4/13/2004 8:58:39 AM
If I have two tables in a data set say like this Table1 ====== ItemID Name Table2 ======= SubItemID ParentItemID Name and they are referenced together on the dataset table2.parentitemid = table1.itemID if I have a list of all the items in table 1 listed in cboTable1 and that is...more >>

reducing some array lines of code
Posted by Eric Sabine at 4/13/2004 8:47:05 AM
Below is a sub I have which contains 4 lines of code. I would like to reduce it to 1. My problem is that it takes 3 lines to create the array to hold the sql parameter and since there's only one dimension in the array, I'd like to do something more like what's at the bottom of this post, but a ...more >>

Screen scraping and regular expressions
Posted by Chris Wertman at 4/13/2004 8:14:13 AM
Hello, I posted a slightly different version of theis to dotnet.general where it was suggested I post it here. Well I have to say Im getting exicted about my app , its almost there, I have added a button to IE and am calling the current instance of IE and grabbing th URL out just fine. Im u...more >>

scrollbar.scroll event occuring twice
Posted by johnperkins at 4/13/2004 8:11:02 AM
I am curious as to why the scrollbar.scroll event gets called twice Here is an example of my code Private Sub vsbMoveCar_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles vsbMoveCar.Scrol 'Position the up and down movemen 'Use...more >>

Help with Graphics primitives
Posted by amr6 NO[at]SPAM msstate.edu at 4/13/2004 6:56:29 AM
Please help this vb.net newbie! I would like to draw a graphics primitive. For example, a line, and have that line be it's own object (so that I can have a collection of lines) and have that line be clickable by the user. Can anyone help?!?! I can create a graphics object and have that graphics ...more >>

Setting button image ?
Posted by Ram at 4/13/2004 6:16:55 AM
how to set the background image for a command button in its clicked event ? thanks Ram ...more >>

Reflection: Determining a Method's Attributes from within the Method
Posted by Good Enchiladas at 4/13/2004 4:44:50 AM
Is it possible to determine a method's own attributes from within the method without hardcoding the name of the method as a constant within the method? Please tell me if it is possible and how it is done. Thank you, Kelly ...more >>

Microsoft Office Document Image Writer & Vb.Net
Posted by Paul Bromley at 4/13/2004 4:05:02 AM
Does anyone know if the filename can be set programatically and the 'Save as ' dialogue box suppressed? I presently use a 3rd party control and as all of the machines that I ma using have Microsoft Office Document Image Writer instlled, this would be an easier solution. Best wishes Paul Bro...more >>

How can I unload a COM DLL?
Posted by spacejay NO[at]SPAM bluewin.ch at 4/13/2004 3:13:46 AM
I'm programming an VB.NET application wich is using a third-party COM-DLL-module. The Module is only loaded if needed. And now my problem: My Application doesn't end correct and hang up itself. After I have closed my application, i can see in the task manager a CPU Load about over 95%. I could v...more >>

Convert Type Richtextbox to Textbox
Posted by Ed at 4/13/2004 2:46:06 AM
Is there a way to convert a richt text box to a textbox? My code lloks like this Dim txtBox as System.Windows.Forms.TextBo dim richTxtBox as System.Windows.Forms.RichTextBo txtBox=ctype(richTxtBox,System.Windows.Forms.TextBox I get an error message: An unhandled expression of type System.Inva...more >>

WORKAROUND: Screen.PrimaryScreen.WorkingArea
Posted by Arcer P at 4/13/2004 1:43:04 AM
Situation 1 (erroneous): TaskBar changes Screen.PrimaryScreen.WorkingArea still returns the old rectangle Situation 2 (OK) TaskBar changes Form Quits and Reloads Screen.PrimaryScreen.WorkingArea returns the new rectangle How to correct the 1st situation? ...more >>

GetForeGroundWindow
Posted by sneffe at 4/13/2004 12:51:06 AM
Hi, when i try to run this code: "Dim hWnd As IntPtr = GetForeGroundWindow()" i get this error message "Unable to find an entry point named GetForeGroundWindow in DLL user32." The function is declared as this "Declare Auto Function GetForeGroundWindow Lib "user32" () As System.IntPtr Can anyone ...more >>

vb.net vs visual studio
Posted by db at 4/13/2004 12:26:02 AM
i'm trying to find out what I lose in VB.net stadard compared to getting full Visual Studi Im only interested in porgramming in VB...more >>

swf files
Posted by DzemoT. at 4/13/2004 12:05:42 AM
how to show swf (flash) files in vb in picturebox, image, etc. thx ...more >>

How to create a dll file?
Posted by Roy at 4/13/2004 12:01:03 AM
If i write a VB script, how can i create a dll file of that script Thanks...more >>


DevelopmentNow Blog