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 > november 2003 > threads for wednesday november 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

Server Explorer and SQL Server
Posted by Tom Leylan at 11/12/2003 11:12:09 PM
Something is messed up... I was using MSDE but I just bought/installed SQL Server instead and stuff has stopped working. I used to be able to connect to the server through VS2002 (and VS2003)'s Server Explorer window and from there I could add/edit databases, tables and stored procedures. ...more >>


What is the equivalent of fread in VB.net
Posted by cab0san NO[at]SPAM hotmail.com at 11/12/2003 10:40:40 PM
Anyone know the equivalent of this in VB.net or c#? dwRead=fread(pWAVBuffer,sizeof(SHORT),dwSamples,pFileIn) i.e. dim dwRead as ? dim pWavBuffer as ? dim dwSamples as ? const itemlen = sizeof(SHORT)=16 ?...more >>

VB SQL Help
Posted by Brett Baisley at 11/12/2003 9:40:51 PM
Its been a while since I used VB and I'm new to VB.net. I set up an sqlConnection, sqlCommand and sqlDataAdapter (by dragging the controls to the form) to query a local database. I set up a text box to display the length of the sqldataadapter by doing this: sqldataadapter.defaultsourcetablename....more >>

HELP - I moved a folder and now my form doesn't work
Posted by Trista at 11/12/2003 9:19:02 PM
I moved my folder to another location on the same drive and now my form's scroll bars don't work. Please help! Thank you....more >>

Password protect a VB Front end
Posted by Trev at 11/12/2003 8:55:05 PM
Hey, I have a complete frontend setup, the first window/form that shows up gives you an option of 3 databases. One of them will only need to be accessed by about 2 - 3 people within our organization. so i want to password protect it. How can i do this? I was think i can just have a fu...more >>

Read data from a web page in VB.Net
Posted by John Bradley at 11/12/2003 8:31:47 PM
Toooo tired to look this one up. I have data that I need to acces in a small program. The data is accessable from an ASP webpage that I created myself. If I need to see data from record #25, I just open http://mydomain.com/datapage.asp?recnum=25. I would like to read this data directly in...more >>

Populate TreeView with Active Directory
Posted by Jan Wrage at 11/12/2003 8:29:09 PM
Hi! I would like to implement a treeview in my existing application. It should show my entire Active-Directory structure, i.e. all Groups, Containers and OUs. Could somebody help me with that. Im trying for about 3 hours but can't get it to work. Thank you! Greetings Jan Wrage ...more >>

How Apply Binary Formatter to Referenced Classes
Posted by andrew at 11/12/2003 8:23:46 PM
I was earlier trying to persist a windows forms control to disk using the binary formatter class. I have devised a workaround, however I have Classes added in as references to my project which still won't serialize properly. I have tested the referenced classes separately as individual...more >>



How Do You Detect A Cell Change In Excel ?
Posted by Gordon at 11/12/2003 8:21:29 PM
Hi there, I have a VB.NET application which opens a new Excel workbook (and obviously worksheet). The cell values in the worksheet depend on certain formulae, therefore the sheet Calculate event is triggered whenever a calculation occurs. My problem is that I can't find a way within this ev...more >>

Setup project problem
Posted by Tony Vitonis at 11/12/2003 8:13:48 PM
In my solution's Setup project, I'm adding a folder to the user's Start Menu, and putting a couple of shortcuts in it. When I use Add/Remove Programs to uninstall the application, the shortcuts are deleted, but the folder stays there. Any thoughts on how I can cause the folder to be delete...more >>

gdi+ drawstring
Posted by jack at 11/12/2003 8:04:53 PM
In using GDI+ drawstring, if the string to be drawn is in rtf format, how do I make GDI+ to recognize the rtf attributes. In other words, how do I draw one string in GDI+ , within which the font size , bold / underline attributes are different....more >>

ArrayList or ?
Posted by Jason Reis at 11/12/2003 8:01:49 PM
I need to keep track of up to 100 values. When the list reaches 100, I'd like the first to be removed and the new item added to the end. My first thought was the Stack class, but I need to be able to update items 0-99 with updated values. The version I ended up with today is an ArrayList, whe...more >>

Why does VS2003 keep compiling
Posted by active at 11/12/2003 7:41:44 PM
Every time I click Debug/Start or Start Without Debug the entire solution (27 projects) gets compiles. Even if I just Built the solution. Or if I run it 3 time in a row with no changes. I've looked for an related option but have not found one. Thanks Cal ...more >>

Rounding up
Posted by W. Adam at 11/12/2003 7:39:30 PM
How do round up to nearest dollar in VB.Net.(to the next dollar price). If i get 9.46 or 9.65, i need to round up to 10.00 Thanks in Advance ...more >>

Copying an array
Posted by Tony Vitonis at 11/12/2003 7:35:12 PM
I want to create a copy of a String array. Is this the best way to do it? CopyOfArray = CType(Array.CreateInstance(GetType(String), _ UBound(OriginalArray) + 1), String()) OriginalArray.CopyTo(CopyOfArray, 0) Thanks....more >>

HOWTO - generate a alphanumeric string of a given length
Posted by Crirus at 11/12/2003 6:31:08 PM
Is there a function that return some random ID like string alphanumeric? Like this: A35sDsd1dSGsH Thanks Crirus ...more >>

Using Farpoint Spread 2.5 DLL
Posted by Kim Johnson at 11/12/2003 6:30:54 PM
Anyone? Has anyone successfully used P/Invoke to create and use Spread2.5? If so, how did you create the Spread control/window? Kim Johnson ...more >>

Dynamic Radio Button Problem
Posted by JM at 11/12/2003 5:52:00 PM
I have created an ASP.Net page that adds radio buttons dynamically to a table. All works fine and they display and work correctly. I also have a server side button, when I click this how do I detect which radio button has been checked. The problem is that the name of the radio button only exists...more >>

How Do I Persist Windows Controls To Disk?
Posted by andrew at 11/12/2003 4:24:26 PM
I am trying to save data to disk. I intend using the Binary Formatter Class. I have an arraylist populated with custom class objects. Several of these custom classes contain button controls as properties. i.e Public Class MyCustomClass Property Button As System.Windows.Forms.B...more >>

HTML file handling/modification in Visual Basic .NET application
Posted by Jay Kim at 11/12/2003 3:54:12 PM
Hi, We're implementing a Windows application using Visual Basic .NET. One of the key features we need to implement is that we should be able to get the accurate byte offset of user selected text in the file. We've been trying to use the RichTextBox control to load a file, and get t...more >>

AddHandler/RemoveHandler Clarification (Dynamically created controls)
Posted by mls NO[at]SPAM bitstream.net at 11/12/2003 3:51:23 PM
The documentation on dynamic handlers comes across as abiguous. Perhaps somebody could help set me straight? I have a situation where I need to dynamically create several usercontrols of the same type within a form. This usercontrol has some events associated with it. For example: Pri...more >>

Hard Drive
Posted by scorpion53061 at 11/12/2003 3:48:15 PM
There is a unique identifying number of each hard drive. There is suppose to be a way of picking up that number. Does anyone hear remeber how to do that? ...more >>

provider strings?
Posted by T Perkins at 11/12/2003 3:28:01 PM
anyone know or know of a good place to get connection strings to an as/400? thanks in advance tony ...more >>

richtextbox
Posted by MFH at 11/12/2003 3:01:37 PM
hi all, i want to change the color of keywords while entering in a richtextbox. like vs.net environment. any ideas? thanks in advance ...more >>

Besides ADO .NET
Posted by Alan at 11/12/2003 2:41:04 PM
I am new to VB .NET and always hear database access using ADO .NET, is there any things besides ADO .NET can access database ? ...more >>

AndAlso/OrElse usage
Posted by Mike Hale at 11/12/2003 1:13:12 PM
Is it better to use AndAlso and OrElse by default rather than the regual And & Or? MikeH ...more >>

Graphics Chart Component
Posted by larry mckay at 11/12/2003 12:52:14 PM
is there a chart component or chart tool with .net that I can use to create bar graphs, pie charts, or other kinds of charts? does anyone have any sample code on how to print the created chart to paper? thanks *** Sent via Developersdex http://www.developersdex.com *** Don't just parti...more >>

A list of all types that are collections of another types
Posted by Crirus at 11/12/2003 12:41:51 PM
Where can I find such a list of all types (classes) that are collections of another types..arrays included -- Ceers, Crirus ------------------------------ If work were a good thing, the boss would take it all from you ------------------------------ ...more >>

Byte Conversion Problem
Posted by Richard506 at 11/12/2003 12:11:24 PM
If you take this Byte Arra Dim bytes() As Byte = { 207, 224, 135, 161, 253, 233, 111, 110, 99, 111, 100, 105, 110, 103, 32, 69, 120, 97, 109, 112, 108, 101 and write the byte array to disk FileOpen(2, "f:\aaapicture_album\result.txt", OpenMode.Binary FilePut(2, bytes ...more >>

Memory management Question.
Posted by Rob Panosh at 11/12/2003 12:06:47 PM
Hello, I have a small VB.Net application that instantiates many objects (about 200), when I look at task manager the application is using about 50 meg. Now if I minimize the window then restore it the memory usage goes down to about 8 meg then after a while it will go up to about 15 meg. Does...more >>

Average an array help
Posted by info NO[at]SPAM minimoves.com at 11/12/2003 12:01:46 PM
Kind of new at programming/vb.net. I'm doing this junky die roller program. Heres's what is supposed to happen: Roll 2 6-sided dies. Add rolls together put total in rolls(d6total). Display the number of 2 or 12 rolled, then display those numbers and average rolls. I didn't know how t...more >>

form.Show not displaying any of the controls on the Form
Posted by KenR at 11/12/2003 11:56:50 AM
When I create a form (Dim f as New Form1) and try to display it using the f.Show method, the form shows, but no controls do. I have a textbox and a progressbar on the form. It displays fine using f.ShowDialog, but I need the form to be modeless....more >>

Newbie Data Access Question--in VB
Posted by SStory at 11/12/2003 11:55:33 AM
ok. I have a basic understanding of the dataset but still more questions than answers. For example, if you use the Server Explorer to create connections, and then wizards to generate datasets... 1.) What if this is an app that you will redistribute and not a corporate app where these conn...more >>

OOP in VB.NET vs. C# (matching keywords)
Posted by NewbieDev at 11/12/2003 11:38:51 AM
Hi there, I have some experience with Java and C#. But currently I have to work with VB.NET And I was wondering if there is a good SHORT text about OOP features of VB.NET and its matching with C#. Something like: /*** C# class declaration ***/ .... '*** VB Class declaration *** ... Or e...more >>

Getting Checkboxes
Posted by Ruslan Shlain at 11/12/2003 10:48:51 AM
I have a page where I dynamically create checkboxes. When the time comes I need to know if any of them checked and if they are check I need to update DB to reflect the changes on the page. I know the ID's of checkboxes than are on the page but I can not capture them in any way. I tried looping t...more >>

Button3.PerformClick()
Posted by Brian at 11/12/2003 10:48:33 AM
Hello, I am trying to program a button to click with code. I do not want to have to repeat the code that I already have in the project. I figured that I could use the button that is alreay there instead of redoing it. The only thing is that I can't seem to get the button to fire wit...more >>

Listview Keypress
Posted by MattG at 11/12/2003 10:38:15 AM
Is there any way to change the column that the Listview uses for the keypress event? Item 0 is the employee number, Item 1 is the Last name... I want the keypress to scroll through last name. Thanks! Matt ...more >>

crystal report load report faild
Posted by mt at 11/12/2003 10:17:21 AM
Hello everyone: I am using vb.net 2002, msde2000 database, and windows 98,and i set up .net framework 1.1 and MDAC 2.7 and msde2000 ,everything fine but i have a problem,i load a report I see "Load report failed" my code and dialog message down here please help me ----- Dim tbCurrent A...more >>

Reports in VB.Net
Posted by grawsha2000 NO[at]SPAM yahoo.com at 11/12/2003 9:47:52 AM
Hi, How many report tools are there in VB.Net? (other than Crystal Reports) MTIA, Grawsha...more >>

Deleting record gives me dbconcurrency exception
Posted by Chris Thunell at 11/12/2003 9:28:09 AM
I am trying to delete all the records in a table, but I keep getting a system.data.dbconcurrency exception. Is there an easy was to delete all the records in a sql table? Here is my code... i get the error on the dataadapter.update: MessageBox.Show(Me.DataSet11.tblPreReqWorking.Rows.Count) ...more >>

Dropdownlist Web Control - Auto Complete
Posted by Rich Wallace at 11/12/2003 9:20:31 AM
Hi all, Is there a way to configure the Dropdownlist web control to accept user input and perform the auto complete process as VB 6 allowed? -Rich ...more >>

Check if a class member is a collection or array
Posted by Crirus at 11/12/2003 9:08:05 AM
I have some question related to the other post about iteration on a class members. I had found a way to figure out when a member of my class is array so I can pull out it's elements to iterate on that classes members, recursively I designed a Strong type class, inherited from CollectionBase. ...more >>

Extracting data from a DataSet
Posted by Elena at 11/12/2003 9:03:24 AM
I need to extract data from a recordset. I have to find the identifier of the table and add 1 to it. In VB6, I used a recordset, as in the code below: 'get a new item number strsql = "Select * from Action where item_identifier = " & intActionID & " order by action_identifier" Set rsActi...more >>

Windows service user interface
Posted by Gita George at 11/12/2003 8:23:40 AM
What is the best way to provide a user interface to a Windows service? Should I use DDE or remoting? How can I do that? Thanks. ...more >>

Some real time newsgroup...
Posted by Crirus at 11/12/2003 8:16:31 AM
Do you know about some IRC channel concerning VB.NET, kind of a realtime newsgroup? -- Ceers, Crirus ------------------------------ If work were a good thing, the boss would take it all from you ------------------------------ ...more >>

.NET networking
Posted by Satish at 11/12/2003 8:11:03 AM
Hi Friends I am quite familier with .NET also i am working ASP.NET for quite some time. I would like to learn network programming in .NET. I am new to network programming, i did not do any network programming till now. So where i should start from, coz the .NET SDK information expects some kin...more >>

Can you run a .Net App on Windows 95
Posted by Carrie at 11/12/2003 6:51:15 AM
I have a .NET windows application I created on 2000 but all other users will be on Windows 95. An error appears when I try to install "You must install the .NET Framework on this machine." Is this true? Is there a work around? What would I need to include in the build to allow the appl...more >>

Barcode scanning in VB.net \ Keyboard Buffer
Posted by crazedgazzle NO[at]SPAM hotmail.com at 11/12/2003 6:36:18 AM
I have an application that uses a COM port barcode scanner. This uses a listener to notify the application when a barcode has been scanned. The application now needs to be modified to use a Human Interface Device scanner. This means I need to read in the barcode from the keyboard input and notif...more >>

DirectCast with unkown type
Posted by tstauffer NO[at]SPAM commandalkon.com at 11/12/2003 4:49:25 AM
i am attempting to write something which can morph itself to whatever comes in and get the value property from it but i don't know what type it is until runtime. I am therefore trying to use reflection and get the type from there and then cast it to that type so i can use it. When i use Direct...more >>

VB.NET and recordsets ...
Posted by Wim Van der Elst at 11/12/2003 2:19:02 AM
Hello, I want to start working in VB.net but seem to have trouble in understading how I get to an equivalent of a recordset as in VB6. The only examples I find are working with binding, but that is not what I want to do. I want to be able to create a recordset and go forward and backwor...more >>

ho to separate help window?
Posted by Tom Leylan at 11/12/2003 2:17:02 AM
I can't seem to find the setting on VS 2003 but I had it working fine in VS 2002. I like to have the help as a separate window. I don't mean just "undocked" or "floating" but rather the browser for help (in VS 2002) contained the search window, the list of matches and the help pages itself. Th...more >>

web service(pass events)
Posted by jose at 11/12/2003 2:13:50 AM
Hello!! I am trying to declare an event in the service Web to soon be able to use it in the clients but there is no way. In order to declare a function in the service Web it is very simple: < WebMethod() > Public ponHora(ByVal Function hour As Integer, ByVal minute As Integer) As String...more >>

! and spaces added to email when sending email in .net application
Posted by njc_1962 NO[at]SPAM yahoo.co.uk at 11/12/2003 1:37:51 AM
When using the NewMail.Body object, ! and spaces are being added into the email after the email has been sent. Has anyone else had this problem or even better a solution??...more >>

where the code should put?
Posted by Zarowich at 11/12/2003 1:03:41 AM
Hello, I am new in VB and also VB.Net What event should I put the code in VB.Net if I want to start the application with a form (I need the benefis of form to do all the process) and then shut down by itself? Thanks Zarowich ...more >>

webupdate
Posted by HamuNaptra at 11/12/2003 12:10:51 AM
Hi I have an existing app, and I would like to incorporate a web update facility, At first I would only give a message, but at second stage I would like to update the .exe itself with the update. Now what I have to do is go online and check for an updated version of the .exe in some way, ma...more >>


DevelopmentNow Blog