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 > january 2004 > threads for tuesday january 6

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

Application Error
Posted by Gabi at 1/6/2004 11:55:36 PM
Hi All, i create an application and its running fine on my machine. when i copy the *.exe file to other machine i got the following error: "The application failed to initialize properly(0xc0000135). click ok to terminate the application" is any body can advice how can i resolve my problem....more >>


ReflectionPermission
Posted by MMJ at 1/6/2004 11:29:03 PM
I just wanted to know if someone can tell me how to use the ReflectionPermission Class. What I am trying to do is I am trying to list out all the Private as well as protected members of the class using Reflection but by default I get only Public member, I think I need to use proper Reflection pe...more >>

reference question
Posted by Hei at 1/6/2004 11:09:23 PM
hi, dim a as objectA = new objectA dim b as objectA b=a ' what the thing in b? is here say b is a reference ? a=b ' what the thing in a? Hei. ...more >>

Using a .dll to display a form
Posted by Bernie Yaeger at 1/6/2004 9:53:07 PM
I have developed a .dll to display a form that controls a simple routine. Oddly, you can't use messagebox.show unless you do one of two things: either use an imports system.windows.forms or system.windows.forms.messagebox.show etc Now this is strange, because the form inherits as below:...more >>

Why are forms painted within controls stretched?
Posted by Dean Slindee at 1/6/2004 9:32:39 PM
In all instances where I show a form inside a control (tabpage, panel), the controls within the shown form are stretched vertically about 5% from the original. That is, if a textbox with an actual height =16 in the original form appears to have a height =~18 when the form is shown within a conta...more >>

Deport H1 B's now. Save your job.
Posted by Daniel Heneghan, GT Solutions at 1/6/2004 7:52:09 PM
There never was a computer programmer shortage, and now with hundreds of thousands of Americans out of work, this damm government is allowing more H1B's to come in and take jobs that Americans need and deserve. Call your sentator, congressman and Demand that this program end immediately. Your ...more >>

Accounting system sample
Posted by andysyy NO[at]SPAM yahoo.com at 1/6/2004 7:47:57 PM
I am looking for a book. How to design a accounting system(General ledger, AR, AP) and include VB.net source code sample. Regards....more >>

Unmanaged code?
Posted by Jarod_24 at 1/6/2004 7:01:07 PM
What is 'Unmanaged Code', and what is 'Managed Code'? ...more >>



Pring Web page?
Posted by Shane at 1/6/2004 6:36:11 PM
I have a program that just looks up 14 web address and i want to be able to print them out.. I have print them now, but sometime they are the page is to big to fit on one page, so i want to be able to do "Fit to Page". Is there away that i can do a "fit to Page" in code? can please give me a e...more >>

Trap event
Posted by Kelly G. at 1/6/2004 6:34:24 PM
This question is regarding the setup, Is it possible to catch the event of the close button in the installation complete windows form dialog control(finished) , I basically need to point to a website(for registeration) after the user clicks the close button. Also is there any alternative...more >>

PAPER TYPE for Printing (object??)
Posted by Vince at 1/6/2004 5:47:49 PM
Through VB6 I asm trying to print to the bottom bin with a paper type of LetterHead on an HP4200tn printer. After much messing around with my bin issue, I finally determined that if I keep the paper TYPE to PLAIN (on the printer itself)... I can get the output to the correct bin. Howev...more >>

Component Problems
Posted by Tom John at 1/6/2004 5:27:07 PM
Hi I am trying to write a group of controls that interact. Basically, these controls are a TreeView, a ListView and a TabControl. By checking items within the TreeViewdifferent results will be displayed on the ListView, selecting an item on the ListViewwill display it as a tab on the TabCon...more >>

Re: Context Menu: specifying the sub to handle the menu selection
Posted by tmaster at 1/6/2004 5:11:15 PM
I am still hung on the syntax. I believe this is correct: Me.mnuTopics.MenuItems.Add("&MenuItem1", AddressOf MenuItem_Click) But, something about this is not: Private Sub MenuItem_Click(ByVal sender As Object, _ ByVal e As System.EventArgs) _ Handles mnuTopics...more >>

StringBuilder Append and StreamReader
Posted by daniel.smith NO[at]SPAM sba.gov at 1/6/2004 5:10:28 PM
I've been struggling with this for a few days now. It worked originally as plain VB-type strings, but for some reason ceased creating the FileNm. I changed the code to use StringBuilder, but only get the file name, not the path. Can someone point out my error? See notes below code. .... ...more >>

Owner Draw Listbox - Performance?
Posted by James Radke at 1/6/2004 5:07:52 PM
Hello, I am creating an owner draw listbox for a windows application. It is all working, except the performance is significantly slower than the standard listbox. Basically what I have done is added two new properties (full source below): ChangeBackgroundMember = a bound data field wh...more >>

Picturebox as a container
Posted by Wade at 1/6/2004 5:06:09 PM
Is there a way in VB.NET to use a PicureBox as a container like in VB 6? I have an image that I want to place in a container and have transparent labels "float" on top of the image and use them as buttons. In VB 6, I used a PictureBox and that worked fine. In VB.NET, the labels background shows t...more >>

VB 6.0 Versus VB.NET
Posted by Eitan at 1/6/2004 4:50:53 PM
Hello, I'd like to know whether VB.NET supports COM objects, ActiveX ? Need sample code, please. Thanks :) ...more >>

simple way to print from an edit field
Posted by Paul Fredlein at 1/6/2004 4:31:08 PM
Hi, Is there a simple way to print the contents of a multi line edit field? Just unformatted text with CRLF. Thanks, Paul ...more >>

Form Preloading???
Posted by Pepi Tonas at 1/6/2004 4:18:54 PM
Hi all, I have an application with a main window full of buttons. Where each buttons opens a new form that deals with different portions of the application. This is not an MDI application, the main window remains open in the background and all sub windows are opened with .ShowDialog(). ...more >>

Speeding up a Directory Search Process
Posted by Robert Barnett at 1/6/2004 4:10:42 PM
I having trouble querying for users that have changed, when I have a = node that have over 750 users. It takes way to long over 1 hour, if it = does return users. How can I improve this? objADSDirEntry =3D New DirectoryEntry(sInADSADsPath, strADSUserName, = strADSPassword, Authentication...more >>

Context Menu: specifying the sub to handle the menu selection
Posted by tmaster at 1/6/2004 3:59:29 PM
When I am typing the argument(s) of the Add method of MenuItems, one of the options (#2 of 5) provides for 'OnClick as System.EventHandler' (as the second arguement), which I hope is to provide a reference to the 'Handler' sub: mnuTopics.MenuItems.Add("DoSomething", DoSomething_Handler...more >>

AlternatingBackColor
Posted by abdar at 1/6/2004 3:56:39 PM
what is the difference between DataGrid.AlternatingBackColor and DataGridTableStyle.AlternatingBackColor ?? ...more >>

Frustrated with Formatting
Posted by coleenholley at 1/6/2004 3:51:25 PM
I'm trying to format this bit of code into a numeric format of 12,123 no decimals in the particular format. Here's the code: tbl_worksheet1.Rows(b).Cells(2).Text() = Format(ls_sum_gasohol, "##,##0") This of course reurns a literal string of ##,##0 not the formatted number. I tried =...more >>

Comparing Images
Posted by copyco at 1/6/2004 3:42:49 PM
Is there a way to compare two images to measure the differences between them? If there is source code out there that does this, please point me in that direction. Thanks!...more >>

Create custom listbox - how?
Posted by James Radke at 1/6/2004 3:22:53 PM
Hello, I would like to create a windows form custom listbox which allows me to set two new properties: 1.) Bound Field Name which contains a boolean flag. (named ChangeBackgroundFlag) 2.) Background color to use when Highlight field is true (named ChangeBackgroundColor) The l...more >>

flat menu bar
Posted by Vikramaditya Singh at 1/6/2004 2:46:03 PM
how can i make flat menu bar as menu bar appearing in the .net ide. THnaks ...more >>

Treeview: right click doesn't select item?
Posted by tmaster at 1/6/2004 2:34:40 PM
I can detect a right click on my treeview, but SelectedNode.Index points to the last node that was left-clicked. Is there a way for a right-click event of a treeview to update the SelectedNode.Index? Private Sub tvwTopics_Mouseup(ByVal sender As Object, ByVal e As System.Windows.Forms.Mous...more >>

Create an ActiveX Control in .NET and use it under VB6
Posted by Captain Chaos at 1/6/2004 1:51:23 PM
Hello Is it Possible to build an ActiveX Control with NET ? I want to take a NET UserControl and use it with VB6. I found a solution how to embbed a NET UserControl into a WebPage (Like it was possible with ActiveX Control) http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp Maybe t...more >>

vb.net web
Posted by info NO[at]SPAM wastie.co.uk at 1/6/2004 1:49:07 PM
I want to connect to a SQL database (Northwind) I'm using this code example dim con as new sqlConnection(strConnectionString) dim cmd as SQLcommand Etc etc Now in the example it says to put <%@ Import Namespace="System.data.sqlClient" %> somewhere 1. I get a squiggly line under ...more >>

Remote Shell
Posted by Stephen Long at 1/6/2004 1:37:59 PM
I'm looking for information on how i can open a remote command shell <cmd.exe> on a remote pc and perform basic DOS/Shell commands .. TIA Steve ...more >>

Set Operations supported in VB.NET?
Posted by bill at 1/6/2004 1:16:59 PM
Does VB.NET provide, out of the box, any support for mathematical set operations? (i.e. UNION, INTERSECTION, DIFFERENCE, Complement). Thanks, Bill...more >>

Sample VB graphic application
Posted by Al at 1/6/2004 1:05:52 PM
Hi, Is there any sample VB code for creating simple plotting chart such as line chart ? But not using Excel. I really appreciate any help. Thanks Ali ...more >>

TcpClient or TCP/IP Connections
Posted by Mythran at 1/6/2004 1:03:15 PM
I am quite familiar with C/C++ network handling on *nux boxes and it's blocking/non-blocking I/O. What I need to do in VB.Net is very similar. I need to take a single server application and allow up to 500 users to connect to this application remotely using TCP/IP. Once a connection has been m...more >>

.NET Grid w/source & doc for only $49.99!!
Posted by Trycomed Tech. at 1/6/2004 12:46:36 PM
Get GridQuick .NET control written entirely in Visual Basic .NET 2003. A powerful grid that allows you to edit cell contents and use different editors. You get the source code, documentation and binary DLL file. Have a look @ http://www.trycomed.com...more >>

VB .NET 2003 Buttons
Posted by Mike at 1/6/2004 12:45:16 PM
Can you put 2 lines of text on a button on a Windows form? The text isn't wrapping to the next line and I don't see a way to get it to. It's in a Pocket PC project - don't know if that has anything to do with it. Mike W. ...more >>

finding column datatype
Posted by Vikramaditya Singh at 1/6/2004 11:45:45 AM
in vb.net i want to find out database column type, wether it is string or number . How can i do this thanks ...more >>

Sockets!!
Posted by James Proctor at 1/6/2004 11:40:52 AM
Hi, im writting an application which works over a net work and i need to be able to send other users on the network messages from the server application. I suppose kinda of like a p2p chat program. Does any body know of any good examples of this is VB.net. I cant seem to find any good ones...more >>

Character Subsitution
Posted by One Handed Man [ OHM# ] at 1/6/2004 11:40:51 AM
OK, here is a mildy interesting one. What is the cleanest way to do the = following. Every time a keyPress event occurs, I wan to check for the quote ( " ) = and subsitute it for the apostrophe ( ' ). Detecting this is easy, but = what is the cleanest way to subsitute that character in the c...more >>

Creating a strongly-typed enumerable collection?
Posted by Michael K. Walter at 1/6/2004 11:35:56 AM
I'd like to create a strongly-typed collection of objects that are indexed by a string value (key is a string). I'd also like to allow users to iterate over the collection using a For-each loop where an object of the contained type is returned (instead of just the standard DictionaryEntry object)...more >>

Making computer sound a specific tone
Posted by John S. Ford, MD at 1/6/2004 11:31:58 AM
I'm familiar with the beep function but is there any function that enables you to determine the pitch and duration of a tone produced by the computer's speaker? John ...more >>

Send Email with Hyperlink
Posted by Roger Cantillo at 1/6/2004 11:24:34 AM
Hi, I'm sending a text email via my VB app. How do I include a hyperlink in my text email for both a webaddress and an email address? Thanks, Roger ...more >>

Why we give a function data type?
Posted by vb. at 1/6/2004 11:06:16 AM
Why we give a function data type? when we declare a function we gave a name and datatype for that function what for? if i make a parameter i declare it and give it a datatype and if i use variabels in function i daclare it too so what the use of datatype function??...more >>

Access to global variables. What is the best way?
Posted by Woody Splawn at 1/6/2004 11:00:41 AM
I am finding that time after time I have instances where I need to access information in a variable that is public. At the same time, the books I read say that one should not use public variables too much - that it's bad programming practice. Is there an easy way to deal with this? I would lik...more >>

Get the 'size' of a line of text to set width of control
Posted by Tom at 1/6/2004 10:45:13 AM
I want to get the 'size' of a line of text so that I can set the width of a control to show all that text. For instance, say my text is 'The dog chased the cat around the room' and I want to set a Button control's width equal to the length of this text so that all the text shows up on the button ...more >>

Can one adjust a toolbar button width?
Posted by Tom at 1/6/2004 10:21:17 AM
Is it possible to adjust a toolbar buttons width? I tried setting ..Rectangle.Width but that seems to be read-only or something... Tom ...more >>

Listview Checkboxes
Posted by Gerry at 1/6/2004 10:18:16 AM
Hi, I wish to know how I can determine which item in a listview has just been checked or unckecked (Ideally force the listview item to be selected when the itemcheck event has taken place) How can I do this ? Many Thanks Gerry ...more >>

problem with picture box
Posted by Jhonatas M. Rodríguez at 1/6/2004 10:16:10 AM
Hello Everybody how are you everybody ?... i have a problem with picture box, i want copy a image from the clipboard, and me can to copy a image if the image is a bitmap(extension bmp), but if the image is the other type(example, jpg, jpeg, gif, etc) i don't can, i have a error. i'm new in ...more >>

Teaching children VB
Posted by Rob Richardson at 1/6/2004 10:15:16 AM
Greetings! My 14-year-old, not-particularly-mathematical daughter has asked about learning how to develop computer games. Are there any books or other resources geared toward introducing young people who are not already geeks to the world of VB? Thanks! Rob ...more >>

application has generated an exception that could not be handled in VB.NET
Posted by kramjunk2 NO[at]SPAM wi.rr.com at 1/6/2004 9:51:01 AM
This applicaiton was originally developed in VB 6. I converted it to VB.NET using .NETs own conversion utilities. It runs fine on the machine with the .NET development environment. However, why I put the executable on a machine with MDAC 2.8 and .NET 1.1, I receive the afformentioned error. I...more >>

String.Format() formatting specifiers
Posted by Chris Morse at 1/6/2004 9:47:16 AM
Hi, I've been trying to figure out where in the documentation it describes all the String.Format() formatting specifiers. So far, I've been guessing and picking up specifiers in sample code.. but I've never seen a detailed descriptions of all that's possible. For example, Dim n As Int...more >>

Newbie Design Question
Posted by Mike Hildner at 1/6/2004 9:28:21 AM
Just fishing for ideas, so any input/links much appreciated. I made my first commercially successful mobile app. As we sell it, different clients want different additions - really additional "modules" or applications. These modules all need to talk to each other - both at the DB level and the ...more >>

calling c++-exported dll functions from vb.net
Posted by RA Scheltema at 1/6/2004 9:13:42 AM
hi all, I have the following function defined in the header-file of a c++ project struct DataType { ... }; long __stdcall my_func(DataType** ptr); Now we have a double pointer (this has something to do with hidden data-types, so this is un-avoidable). My question is, how wo...more >>

Editing text files
Posted by ALF at 1/6/2004 8:54:10 AM
What's easiest way to replace a particular text string in a text file by another and save the modified file? Currently I know how to open a file, read the text string, place it in a variable, and modify the string. What I'd like to know is how to save the modified string in the same file....more >>

Using Office Component for Addins in .Net
Posted by nir NO[at]SPAM miracom.co-dot-il.no-spam.invalid at 1/6/2004 8:40:25 AM
I develop an Addins Project for Excel in Visual Studio.NET that I need it to work for any machine in any Microsoft Office XP. I use the dependecy (reference) 'Interop.Microsoft.Office.Core'(Microsoft Office 10 Component) for my project. But it seem that its not work fine in others computers (di...more >>

copy a vb.net web project
Posted by Brian at 1/6/2004 8:36:13 AM
Hello, I am trying to burn a .net web project to a cd so I can take it out to one of our other facilities and put the project on a machine out there for another developer. That problem that I have is that when I do this, and try to debug on her machine it says that the project is not ...more >>

'Disappearing Controls' problem
Posted by George Yefchak at 1/6/2004 8:28:32 AM
Hi folks, What's the latest news on the "disappearing controls" issue? I've seen a few posts over the last several months indicating that other people have the same problem, but I've seen nothing about a solution. Surely their ought to be a patch by now! Just to review, the problem is tha...more >>

Tray icon will not go away!
Posted by george d lake at 1/6/2004 8:13:20 AM
Hi, I have an app that runs in the system tray. When I exit the app (from a button on a form) the app ends but the icon stays in the tray. Any ideas? here is the code I use to end the app Me.Close() Me.Hide() m_trayIcon.Icon = Nothing End ...more >>

Visual Basic .NET compiler &Hc0000005&
Posted by Runge Developer at 1/6/2004 8:08:06 AM
When compiling a VB.NET assembly we reguarly have the problem where it either hangs or produces the following error: ----- Visual Basic .NET compiler is unable to recover from the following error: System Error &Hc0000005& (Visual Basic internal compiler error) Save your work and restart Visual ...more >>

Multiple forms question
Posted by Amjad at 1/6/2004 6:26:55 AM
I'm trying to build an application with two Forms and to use functions created inside the class of Form1 with controls of Form2. Everytime I create a Form the .NET creates a new class of that Form, which makes it independent from other Forms. How do I call and use functions created in For...more >>

Is VB.NET okay after VB6SP5 install?
Posted by donyc NO[at]SPAM yahoo.com at 1/6/2004 6:08:14 AM
Hi all! I have just installed VB6 SP5 over an existing VB.NET 2003 installation on the same machine. The original order of installation for my machine goes like this - VB6, VB.NET 2003, VB6 SP5. I just wanted to know from those who may have already done it, or know for a fact if this is or...more >>

Format text
Posted by Jimmy at 1/6/2004 5:51:04 AM
How can i format text, so that user input such as, 01062004 would be formatted as 01/06/2004. I've tried several user-defined number and date formats, but I seem to be missing something. Thank you....more >>

open forms from different project
Posted by salih ataoz at 1/6/2004 4:56:00 AM
i have a solution name general and there are two project in it 1. General frmFirst btnOpen 2. Second frmOpen My solutions startup project is general and my startup form is frmFirst and i have a button at frmFirst named btnOpen when i click at btnOpen i want to open ...more >>

Serialize and deserialize
Posted by Amsteel at 1/6/2004 4:31:40 AM
I got something like this in VB.Net <Serializable()> Public Class YQProfileC Inherits CollectionBase Public Sub Save2File(ByVal FileName As String) Dim IFormatter As New BinaryFormatter() Dim FS As FileStream = New FileStream(FileName, FileMode.Create, FileAccess.Write, F...more >>

Add In does not work on VB.NET project but does on C#
Posted by Mario Sobral at 1/6/2004 4:18:38 AM
Hi ! I have written an Add-In to use in VS.NET 2003. The Add-In asks the user for a public key on a small form, and then basically goes through a selected project, looking for public classes, and when finds one, it checks if the attribute StrongNameIdentityPermissionAttribute exists. ...more >>

how to useb vb.net to create a holiday package system
Posted by hema malini rajanthiran at 1/6/2004 3:38:41 AM
hello to whom may concern, im a undergraduate seeking information on how to do a holiday package system using vb scricpt and asp 3.0 and using dream weaver as the authoring tools for the interface and import it to vb.net and is that posible to import video and audio file into vb files. ...more >>

VB.NET and functions
Posted by river at 1/6/2004 3:36:21 AM
Hi Can any one tell me a simple way to make a function that returning structure and returning an array? and if u please tell me about a web site that interduce lessons in vb.net that cover my points thanks......more >>

ShowDialog
Posted by Steve at 1/6/2004 3:33:47 AM
Hi All, I'm having a problem displaying a form as a modal dialog window, when I call the code below from one part of my program (a right-click menu) it works fine, but when I call it from within another Sub, the new form displays but I can click back to the main form so the dialog windo...more >>

Win Key
Posted by Jarod_24 at 1/6/2004 2:20:54 AM
Finding out if Alt, Ctrl or Shift has been pressed is easy, but what to do with the Win-key? Example: Dim strHotkey as String = "Win+Ctrl+NumPad0" Dim hot_key As Keys = CType(New KeysConverter().ConvertFromString(strHotkey), Keys) 'These work If ((hot_key And Keys.Alt) <> 0) Then myHotK...more >>

IPEndPoint
Posted by James Proctor at 1/6/2004 2:05:18 AM
Hi there, im trying to write a application that has some socket stuff in. Ive only don socket stuff in vb 6 before. In .net i was using IPEndPoint and i want to enter an ip address and port like so: IPEndPoint = New IPEndPoint("192.0.0.01",1000) But its asking for the IPaddress to be a l...more >>

Sleep function
Posted by Gabi at 1/6/2004 1:44:16 AM
Hi all, is there any system call on vb that is similler to "Sleep(xxx)" on c++ if so can you give me its format thanks. Thanks ...more >>

example of handling right click?
Posted by tmaster at 1/6/2004 1:35:30 AM
Where can I find an example of handling the right-click event of an object? Thanks ...more >>

link the vb.net GUI interface to the C++ DLL function
Posted by min_liverpool NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/6/2004 12:25:32 AM
Hi, I'm new to vb.net.As I have a task to link the vb.net GUI interface to the C++ DLL function? May i know if there is there any coding sample on it? Can anyone please help? thanks.. Justine ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsf...more >>

listview: selected item vs. collection
Posted by tmaster at 1/6/2004 12:06:33 AM
In a listview (named lvwToDo), I understand how to reference a single selected item from the SelectedItems collection, but is there a more direct way if MultiSelect is set to false and you know there is only one item selected? In other words, is there a better way other than the following loop? ...more >>


DevelopmentNow Blog