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 tuesday march 16

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

Newbie to VB.Net & ADO.Net...
Posted by Andrew Kidd at 3/16/2004 11:31:02 PM
Hi, Sorry if this has been asked before, but I'm stumped. I need to present a table of data on a web page, with the records presented in a random order. My thinking is as follows: 1 - read the records into a data set 2 - add a new column to the data set 3 - iterate through the dataset, a...more >>


How to let screen to be darkled, like shutdown of Windows XP(Null)?
Posted by yxq at 3/16/2004 11:27:54 PM

CallByName - Referenced by a Variable.
Posted by runningdog at 3/16/2004 11:23:04 PM
I'm having difficulty with CallByName. Syntax ask for an ObjectRef as Object. 1. How do I code an ObjectRef so that it can be stored in a variable. 2. Can I reference methods in a module with a CallByName or similar Thanks in advance Steve ...more >>

Silent IE saveas
Posted by Richard Bell at 3/16/2004 11:05:24 PM
I need to do a silent IE saveas a la oTestThread.oIE.ExecWB(OLECMDID.OLECMDID_SAVEAS, _ OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER, _ "junk", "") but IE pops up a dialog box. Searching the net suggest that this is a known behavior, but provides no ...more >>

listbox filling data bound causes selected item to trigger how to stop?
Posted by Brian Henry at 3/16/2004 10:59:02 PM
I thought i saw once something that would cause the selected item changed event from being fired when you set the data source for a list box and it is filled with the data... right now i get exceptions because of it so i set a boolean flag temporarly to check for it filling but isnt there a prope...more >>

Lost spreadsheet control
Posted by Frustrated at 3/16/2004 10:41:06 PM
I have an application that I had embedded the OWC Spreadsheet control into 3 different forms. I did something and now the controls are gone. I must have lost a library somewhere but I do not know which one or where it is. I have readded references to Microsoft Office 10.0 Object Library and Microsof...more >>

setting PictureBox.Image at runtime
Posted by bonkers at 3/16/2004 10:11:54 PM
I have a listView with 10 items (populated from an ImageList). When the user clicks on an item, I want to change the image currently shown in a PictureBox. Using the selectedIndexChanged event... I can get the ListView1.FocusedItem.Index... that's a good way to determine which item the user c...more >>

Performance Regex Replace vs StringBuilder Replace
Posted by paul reed at 3/16/2004 10:05:41 PM
Hi, What is more efficient, using the regex replace capability or the stringbuilder replace capability when replacing sting chunks within a larger string? Regards, Paul ...more >>



Secure Communication over network
Posted by mikec1981 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/16/2004 9:18:31 PM
Hi, I'm new to VB.NET, I previously used VB6. I am trying to write a client / server application and I want to be able to securely send commands between these applications and the client needs to logon to the client via password and commands need to be encrypted. To do this previously I ...more >>

inherited form problem
Posted by Brad Allison at 3/16/2004 8:47:00 PM
I created a dll that has four forms. I want to inherit all four forms and when I include the first form it works fine; but when I try to include other inherited forms I get a disk or network error. Does anyone know what might be going on here or what I might check? Or have I done something wro...more >>

how to "take" data from html on web with VB.NET?
Posted by DzemoT. at 3/16/2004 7:29:33 PM
i want to "take" data from table from html document on internet (examlpe from http://111.111.111.111/page.html) to string any example? thx ...more >>

SQL String
Posted by Felipe Blin at 3/16/2004 5:45:16 PM
I usually use command to that. But how do you create a sqlserver store procedure to do that (a result set with that): (These columns are not a fixed number of columns so sometimes are 3 col , sometimes 9 or whatever because I dont know in advance) city ford volkswagen renault mazda .........more >>

VB.NET IDE Bug - IF..THEN
Posted by Don at 3/16/2004 5:38:48 PM
I have discovered a bug in the Current Statement highlighting in the VB.NET IDE that occurs under a specific set of circumstances. This is the specific set of circumstances : - You have a Try..Catch..Finally or Try..Finally block in your code - The Finally section has one or more single-line I...more >>

Passing arrays
Posted by Mike Fellows at 3/16/2004 5:13:02 PM
i have a function that returns an array i have 6 items of data in the datagrid and i am setting them like this MyArray.SetValue(1,0) so im placing 1 in position 0 of my array when i return my array using return MyArray when i call my function i use dim MyNewArray as array MyN...more >>

DataAccess Block issue
Posted by Craig Buchanan at 3/16/2004 4:55:59 PM
I'm using the SQLHelper class from Microsoft's DataAccess block in my code. Recently, I've been getting an error when I try to use the class' ExecuteReader method. The error reads: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurre...more >>

String functions
Posted by Vik at 3/16/2004 4:32:53 PM
In a Windows Application, VS.NET does nor recognize Right function. I have to use it with full specification: Microsoft.VisualBasic.Right("123", 2) Adding Imports Microsoft.VisualBasic, Microsoft.VisualBasic.Strings does not help. In a Web Application, Right("123", 2) works without Import...more >>

Get attachement of Selected Email (VB.NET)
Posted by DraguVaso at 3/16/2004 4:23:42 PM
Hi, I want to be able to copy the Attachement of a the selected e-mail in Outlook to a given location. Does anybody knows how to do this? I know how to use outlook-items etc, but knowing which mail is the currently selected one I'm not able to find. Thanks in advance, Pieter ...more >>

HTML Help and VB.Net
Posted by jason NO[at]SPAM no-spam.dive-master.org at 3/16/2004 4:03:48 PM
I know that this might not be the correct group to post this but the HTMLHelp group doesn't appear to have any messages in it. I am trying to incorporate HTML help into my VB app. but I am having some difficulty. I can load the .chm file that I have compiled but I don't know how to have it o...more >>

How to properly syncronize a SortedList?
Posted by gregory_may at 3/16/2004 3:58:00 PM
I keep getting an error: Collection was modified; enumeration operation may not execute. Error from the following code. I cant seem to get it to properly syncronize the Clients object (Its a sorted list). Any suggestions: Private Sub SendToClients(ByVal strMessage As String, ByVal sender A...more >>

Capture a system messgae
Posted by Adam Maltby at 3/16/2004 3:30:43 PM
Hi, Is it possible to capture a system message and answer it for the user? e.g, The system brings up a msg box asking if the window is ok to be = closed, and we want to select yes for the user so they don;t have the = chance to say no? Cheers Adam...more >>

IDownloadManager in VB.NET?
Posted by .:: MaStErDoN ::. at 3/16/2004 3:15:33 PM
Hi, i'm working on a download manager project but now i need to associate it with the internet explorer, i known i have to associate a dll component to a registry key called "DownloadUI". But the problem is I don't know how to build that DLL which finally will call my exe program giving it the ...more >>

Assembly
Posted by CJ Taylor at 3/16/2004 2:46:42 PM
How do I get the version of an assembly using System.Reflection.Assembly class? Thanks, cJ ...more >>

Extended Properties
Posted by VJ at 3/16/2004 2:44:59 PM
I have a few controls that I am adding at Run-time to my Windows Forms... I set the controls Name, Value.. etc to the appropriate properties for the control. Apart from these I want to associate a bunch of values to the control, that don't have a corresponding property. How do I store these with...more >>

Template
Posted by Ruslan Shlain at 3/16/2004 2:42:18 PM
I have been trying to find something online to get me started with this, but so far no result. I figured id try news groups. I need to be able to define a template and then based on the data that I get from the database, I need to display a printable format.(HTML, WORD, PDF). Is there a source t...more >>

TreeView Binding To Datagrid
Posted by WStoreyII at 3/16/2004 2:31:51 PM
I have a table with that holds customer info and has a one to many relationship with another table that contains sales and is linked by a customer code. how do i bind the treeview control so that the nodes in the tree show the customer code and when i click on the customer code it brings up th...more >>

DataGrid Question
Posted by WStoreyII at 3/16/2004 1:52:35 PM
Do you need a pre made database in order to populate a datagrid? or is there a way to make a datagrid with user defined columns and queries ect and then save this info to a new database or an existing database if desired? WSToreyII ...more >>

how to reference DLL in VBA?
Posted by Meir Rotfleisch at 3/16/2004 1:31:02 PM
HI I have a DLL that references another DLL both writen in DotNet (one VB the other C#) how can I reference the DLL so that I can use it in Office 2003 VBA? I added an reference to the TLB file but I keep getting can't create objct error in the VBA class module Suggestions? What am I missi...more >>

Class localization
Posted by Kate at 3/16/2004 1:03:09 PM
Hello, If you want to make a VB.NET class truely 'portable' and usable in multiple cultures then I'm guessing that the class will need to have a resource file associated with it to contain localized error messages etc. Does anyone have any examples of such a class or know of references to d...more >>

me.cursor v me.parent.cursor
Posted by Bernie Yaeger at 3/16/2004 12:54:39 PM
In an MDI app, is it safe to say that all references to me.cursor would better be made me.parent.cursor, thus having the hourglass (when using waitcursor) on the entire app, which, in almost all instances in my apps, is appropriate? Is there any reason not to do this (except, of course, when th...more >>

Control Focus
Posted by Merlin at 3/16/2004 12:49:21 PM
Hi, This is starting to bug me - I have a form with a control, this control has a field, what I want is when the form loads the field in the control gets the focus. I've tried setting the focus in the control load event but no luck, should I place it in another event? Thanks. Merlin ...more >>

System.Timers.Timer running certain hours of the day
Posted by Bob Day at 3/16/2004 12:48:03 PM
Using VS 2003, VB Net, MSDE... Is there a way to cause a System.Timers.Timer to only execute between 7AM and 10PM and essentially go to sleep otherwise? I don't see any. Please advise. Thanks! Bob ...more >>

How do I access a control on a Tab Page from a Tab Control?
Posted by Sean at 3/16/2004 12:36:06 PM
I have a reference to a TabControl and I want to access the methods (Clear in this case) of a control on one of the Tab Pages. How do I do it I thought it was tcTabControl.TabPages(0).Controls(0),Clear( But that doesn't work. Help....more >>

Container with Shadow
Posted by Merlin at 3/16/2004 12:32:49 PM
Hi, Has anyone ever seen a control that produces a true shadow in .NET? I'm after creating just a square shape control with a true shadow (not a grey square underneath)? Thanks. Merlin ...more >>

New Game -- Help Requested
Posted by apierce NO[at]SPAM kilstock.com at 3/16/2004 12:31:28 PM
Hello Everyone, I need some help. I am an amateur VB.net programmer and have an idea for a new game. Please forgive my naive While it is not necessary to describe all of the details of the game, here are the key points. 1. The game will be played over the internet. 2. It will be a ...more >>

Convert Byte
Posted by João Santa Bárbara at 3/16/2004 12:23:32 PM
hi all i have this code in C# how can i convert it to VB.NET thks private byte[] m_byBuff = new byte[50]; ...more >>

Convert Byte
Posted by João Santa Bárbara at 3/16/2004 12:23:17 PM
hi all i have this code in C# how can i convert it to VB.NET thks private byte[] m_byBuff = new byte[50]; ...more >>

just a question
Posted by Mike at 3/16/2004 12:02:20 PM
I have a VB6 client/server application that we would like to convert to a web app using .NET technologies. My question is, is it possible to convert the app to .NET and a WEB app without loosing any functionality or the look and feel of the application as it looks and works now? ...more >>

Security policies to allow app run on network drive
Posted by Brian Henry at 3/16/2004 11:32:12 AM
(yes we do want to do this for anyone who will question why do you want to run it on a network drive) How can i update my domains group policy to allow .net apps run on a network drive (untrusted source i think its called), right now it throws a security exception.. I remember someone saying...more >>

Form inheritance
Posted by Frank Rizzo at 3/16/2004 11:23:56 AM
I am just starting out with winforms (though have some experience with asp.net), so this maybe a simple question. I want to build a form that has some extra entries in the form's system menu. And I want to be able to respond (obviously) to those menu items. Finally, I'd like all my other ...more >>

ComboBox Drawing Problem
Posted by Tom at 3/16/2004 11:05:57 AM
Hi I have inherited a ComboBox that i am using to list all the available SystemColors with a little rectangle painted to the left of the name in the correct color. The ComboBox is set to OwnerDrawVariable and i am implementing the MeasureItem and DrawItem events: Private Sub ColorDr...more >>

IDE: ClassName Combo SortOrder?
Posted by James Goodman at 3/16/2004 10:53:13 AM
In the IDE apparently, depending on the .NET framework version, the Class Names are listed in two orders: Framework 1.0 - The order in which they are instantiated. Framework 1.1 - Alphabetically. I have both the 1.0 & 1.1 frameworks installed. I believe this is completely normal. This leads...more >>

Moveable Container
Posted by Merlin at 3/16/2004 10:39:35 AM
Hi, I wish to create or use an existing container control that at runtime can be moved (maybe froma title bar) and can also be resized at runtime. I want this so I can popup a pick list of items to a user and allow them to expand the size of the list or move it around the screen. Any ideas?...more >>

Sound Recognize
Posted by Serdar at 3/16/2004 10:06:08 AM
How Can I Do it? When I or Anyone Talk Computer Must Understand Voice and Must do A jo Please Send Emai ...more >>

How to write long string sentences
Posted by Felipe Blin at 3/16/2004 10:01:10 AM
Hi, Sorry for this newbie question. I usually have to write long string sentence like this: strSQL= " select ........." _ + " from ......." _ + " where ....." _ + " and....." _ + " and ..." _ + " group by..." etc.... (Note: I can not use store procedure) This kind of sent...more >>

create components like activeX dlls in vb.net?
Posted by Rich at 3/16/2004 9:17:28 AM
When I open up visual studio I don't see a selecion for creating dlls or activeX apps, OCXs, etc. I apologize in advance for my ignorance on this. But does vb.net support any versions of stuff like this like VB6? For example, I have created several ActiveX dlls in VB6 for passing argume...more >>

Development Techniques, questionnaire. HELP PLEASE
Posted by ben NO[at]SPAM redbed.com at 3/16/2004 9:13:17 AM
Hello, I'm a student in my last year at uni in the UK. I'm currently looking at the comparisons between proprietary and open source software. I'd be grateful if any software developers would answer my online questionnaire. http://www.AdvancedSurvey.com/default.asp?SurveyID=11645 Than...more >>

DLL instead of EXE
Posted by Brad Allison at 3/16/2004 9:06:10 AM
How do I create a DLL file instead of the usual EXE? Thanks for the information. Brad ...more >>

Help with Array(s)
Posted by Rich Wallace at 3/16/2004 8:30:56 AM
Hi all, I've scanned over previous posts but I'm still not feeling comfortable with making a decision on using an Array or a Structure for what I need to do. If someone can point me in the right direction, I would truly appreciate it. I have a RecordSet from third-party solution which querie...more >>

Adding XML files to a build
Posted by Kris Rockwell at 3/16/2004 8:30:14 AM
Hello, I have added an XML file to my project. When I build the project I want the XML file to be placed next to the exe file in the Bin folder. This is important as I am updating the XML file as needed to affect the actual application (it acts as a config file). How can I get the file to buil...more >>

Parenting troubles
Posted by Mike Hildner at 3/16/2004 8:18:13 AM
I have an MDI parent as my main form. Created a class library with a component. This component waits for a UDP message, my plan was to pop up a window showing the message when it arrives. The component raises an event in response to the message - the MDI parent handles this event. When this ha...more >>

How to Iterate through WebControls And Build Dynamic Query
Posted by Mona Syed at 3/16/2004 7:11:23 AM
Hello, I have a Web Form with Labels, Textboxes etc. where the user enters information to specify which fields to include in a sql search query. The questions I have are: Q1. How do I iterate through all the controls on my form (Textboxes only) to pick out the search arguments the user pr...more >>

Help With Datagrid...
Posted by Bernardo at 3/16/2004 7:01:08 AM
Hi I have a datagrid in a Windows Aplication. The user can Insert, delete or change any value, and I want to store that information in a array (or other variable) How can I now if a new column was created How can I read all rows of the datagrid to my array Thanks for your help Bernardo...more >>

Printing using IP Address
Posted by teddysnips NO[at]SPAM hotmail.com at 3/16/2004 6:57:42 AM
My client wishes to be able to print her Crystal Reports using various printers' IP addresses. Does anyone have any sample code for how this might be achieved? She is anxious to avoid using the normal File, Print menu/dialog box methods, but to have a drop-down list of available printers and h...more >>

Help with FileSystemWatcherService
Posted by Kerberos at 3/16/2004 5:05:35 AM
Hope someone has some helpful insight... I've searched the groups for a answer for these problems, but I have not found anything definitive. I've created a windows service (see code below) that monitors a directory and processes an ASCII file using a third party command line tool. 1.) H...more >>


DevelopmentNow Blog