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 > may 2004 > threads for thursday may 27

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

returning values FROM window form
Posted by Graham Blandford at 5/27/2004 10:38:24 PM
Hi all, Quickie - I hope. I already know how to use a forms New() Sub to receive parameters from a calling class - but I don;t know how to return values... Anyone know the recommended method for doing this? Thanks, Graham ...more >>


Make multithreading do only X threads at a time.
Posted by Manuel at 5/27/2004 9:40:15 PM
I have a long function that needs to be done 1000 times. I'm multithreading it, but I don't want to load them up all at once, instead load them 10 at a time. So far the only way I can get it to work is by creating a dummy form with a timer. On the timer function I test if the number of thre...more >>

Set the default "initial" value of a ComboBox
Posted by Keith at 5/27/2004 9:36:03 PM
I have populated (or created a collection) in a ComboBox. However - I would like to set a default value - when my form is first opened (for the ComboBox) - like "Select topic" However - when I attempt to add this text to the Text property of the Combobox - it does not take. In other words, I typ...more >>

Quotes within a text string
Posted by Keith at 5/27/2004 9:36:03 PM
ADVERTISEMEN Is there any way to display quotes Themselves - within a text strin textbox1.text = "This is a "test" of inserting quotes" I want to actually use quotes within this string around the wor test - but the program picks this up as me ending the string and the obviously does no...more >>

Are there two ways to do a carrage return...?
Posted by Jay at 5/27/2004 7:25:00 PM
Recieving data from an IRC server the controlchars.newline works to seperate some pieces of data into their own lines. However it doesnt always work and some whole pices of dat are LEFT OUT of the string array. is there a known bug in the split function, or are there two ways to do carrage re...more >>

Is it possible to execute an iSeries program from a VB.Net application?
Posted by Ken Sturgeon at 5/27/2004 7:09:30 PM
Is it possible to execute an iSeries program from a VB.Net application? = Where might I find some reference material that would get me started?...more >>

datagrid columns
Posted by Lisa at 5/27/2004 7:00:32 PM
Still trying to get rich text from my dataset into a datagrid. So far, my strategy has been to derive a custom column style which owns a rich text box: Public Class RTColumn Inherits DataGridColumnStyle Dim WithEvents rtb As RichTextBox = New RichTextBox() Dim PHeight As Integ...more >>

Split function mystery ...again....
Posted by Jay at 5/27/2004 6:38:35 PM
Well this is my function to split the data into its own lines Sub preSift(ByVal input As String) Dim spl() As String spl = New String() {} spl = Split(input, ControlChars.NewLine) ', , CompareMethod.Text) Dim x As Int32 For x = 0 To (spl.Length - 1) Sifter(spl(x)) Next End...more >>



Databindings help
Posted by Graham Blandford at 5/27/2004 6:10:26 PM
Hi all, I haven't received any replies to a previous question I posted regarding problems I was having with databound textboxes.. so I'll try a different angle... Can anyone point me in the direction of.. or give me some good examples of databinding of a dataset/table to textboxes in a wind...more >>

Speeding up a form load
Posted by jcrouse at 5/27/2004 5:56:03 PM
I have an app I'm calling from within another application. It has an 800x600 background image. It's not that large, 33kb. It also has 26 label controls. When it loads, the label controls come up rather slow and while they are appearing (just before) the background app is visible through the little w...more >>

Split function not working.....
Posted by Jay at 5/27/2004 5:42:27 PM
So I'm writting this software that talks to an IRC server; and occasionaly IRC servers send back data two lines at a time with lines breaks inside. For my own sanity I had been using the split funciton to break these lines down to seperate ones and then process the server commands etc. However ...more >>

Multi-Lingual application
Posted by Z D at 5/27/2004 5:24:39 PM
Hello, I need to support multiple languages in a product package being developed in both ASP.NET (vb.net) and WinForm .net (c#). I was wondering if there are any best practice guides, application blocks, resources, tutorials, or just general advice that someone could recommend to get me sta...more >>

Pacakging
Posted by VJ at 5/27/2004 5:17:41 PM
Is this right place to ask this Question.. IF not direct me ... We have four products..i.e 4 executables. All of them share a common DLL. If all these packages are installed on a machine, I want the common DLL to uninstall only after the last product is removed.. How do I accomplish this... ...more >>

vbFTPClient - kb article 812404
Posted by Arne at 5/27/2004 5:13:33 PM
Hi I've downloaded the vbFTPClient mentioned in kb article 812404, but I'm not able to run it It seems that the problem occurs in the main function, when trying to convert from WebRequest to FtpWebRequest, Dim ftp As FtpWebRequest Try ftp = Convert.ChangeType(w, GetType(FtpWebReques...more >>

HasChanges not being updated?
Posted by Graham Blandford at 5/27/2004 5:08:51 PM
Hi all, I'm sure I must be missing something here.. I've created a simple parent - child form appl. in which I open a dataset in the parent (MDI) using a dataadaptor to an Access database, and a dataset. The SELECT of the record set searches for a specific entry, if it returns a 0 rowcount...more >>

XML?, INI File?, How do I do this?
Posted by jcrouse at 5/27/2004 4:51:03 PM
I am writing an app that has a gui with many labels on it. It is launched from within another app with a hotkey. It runs full screen and has an image for a background. The is no border or menu whatsoever. I want the user to be able to change font sizes, label locations, background image and a few ot...more >>

Problem with sending hex in UDP packet
Posted by spammersarevermin at 5/27/2004 4:36:49 PM
I'm trying to put some hex values in a UDP packet & I don't have a clue how to accomplish this. Using the code below results in a packet going out w/ the right buffer length but all 00's as the data payload. Any help is appreciated. Sorry for the wrap. Thanks Public Function SendData() A...more >>

VB6 conversion of UDT to structure - ValueType?
Posted by Chuck Ritzke at 5/27/2004 4:22:59 PM
Okay, just when I thought I was starting to understand stuff. In VB6... Type MyDataType Dim Value1 as double Dim Value2 as double End Type Dim MyData1 as MyDataType Dim MyData2 as MyDataType MyData1=MyData2 '...Do stuff to MyData2, MyData1 When I did this in VB6, MyData1 a...more >>

character selection in a string
Posted by jcrouse at 5/27/2004 4:16:02 PM
I have the following type of data sitting in a varaible Just Buttons+butto The text and lenght can change, however, no matter what the length is I would like to strip off the "+" sign and everything to the right of it and place it into another (or the same) variable. What is the easiest way to a...more >>

Graph in VB.Net
Posted by G. Schmelzer at 5/27/2004 4:06:41 PM
Hello Newsgroup, I'm searching for a control that draws a line in a half circle. The circle has three sections: red, orange and green. I get values from a com device. And the closer theese values come to the ideal value, the closer the line gets to the green section. (Like the speedo of a car)...more >>

Need to include original DLL with Interop?
Posted by Tom at 5/27/2004 3:42:27 PM
Hi, I have developed a VB.NET app that is referencing and using an old ActiveX component. When I add that reference to .NET, it of course generates an interop file. My question is: If I include the interop file with the application when deploying, do I need the original .dll object? For exa...more >>

Get network status through WMI
Posted by Norton at 5/27/2004 3:04:39 PM
Hi all, May i know how to get the network status through WMI, i have searched the WMI properties but cannot find the related property to use. thx in advance Norton ...more >>

passing variables from page to control
Posted by DC Gringo at 5/27/2004 2:52:24 PM
I have a simple index.aspx page that declares and sets a sectionID in the Page_Load. The in a user control later on in the page, I read the sectionID variable (in the control's Page_Load) to determine which panel to show. It does not work "Name 'sectionID' is not declared" is my error while ...more >>

Measuring an angle
Posted by Lasse Eskildsen at 5/27/2004 2:42:57 PM
Hi, I'm trying to measure an angle of a triangle in vb.net, but I'm not getting it right. This is my triangle (kind of): A l\ 1 \ 1 \ l \ - - - - C B I know the lengt of all 3 sides, and angle C is always 90 dregrees. I've been working with the Tan() function from...more >>

VB.NET 2003 Standard Classes & DLL Creation
Posted by Paul Woodward at 5/27/2004 2:40:25 PM
Can the standard edition of VB.NET 2003 create DLL's? I have purchased the standard edition while I re-teach myself the VB language but I am struggling to create references to a class which is in the same Solution but in a different Project because it complains that the Class is not a DLL. Any...more >>

TypeConverter.CreateInstance-Method
Posted by Oskar Vaia at 5/27/2004 2:24:38 PM
Hi, in the .NET Framework Class Library there is the following text in the "Remarks"-section: "Use this method for objects that are immutable, but for which you want to provide changeable properties." .... objects that are immutable ... - what does this mean? Can someone please insert he...more >>

vb.net & word
Posted by msdn at 5/27/2004 2:23:43 PM
hi it is possible to open word document in RichTextBox(textarea) ? but i don't want to install MsWord, i want only open document, inesert some text and save it. do you know how to do this ? thx ...more >>

remoteing setup
Posted by Brian Henry at 5/27/2004 1:40:52 PM
I have a server which uses remoteing and it works on a few systems but on the server we want it to run on it always returns the error "internal server error" back to the client application as an exception... but when we run the server app on a windows xp pro box or a secondary windows 2000 server...more >>

How to let GUI application write output to commandline?
Posted by Rvo at 5/27/2004 1:40:36 PM
I'm writing an application that should work both as a GUI and a commandline program. When running from commandline I want to give all output to the commandline instead of showing it it an own interface. When I use Console.writeline the output doesn't appear at the commandline prompt though. I ...more >>

webBrowser control
Posted by KC at 5/27/2004 1:32:35 PM
Is the webBrowser control included in VB.net standard? I can't seem to find it. Or do I have to create a certain type of solution? Ken ...more >>

Deployment question
Posted by Woody Splawn at 5/27/2004 1:30:54 PM
I have a non-web VB.net applicaiton that I have written. I have written it on a client machine of a local area network. The solution is on the local hard drive of this client machine with the back-end database (SQL Server) on the file server of the network. How do I now make this applicaiton ...more >>

Opening an existing file on my PC
Posted by LB at 5/27/2004 1:16:08 PM
I have one form that has two buttons. I want the first button to exit the form, and the second button to open a specific file on my C: drive. I can get the form to close (Woo!), but can anybody tell me the code needed to open an existing file on my computer. I've spent all morning looking on t...more >>

.Net Assembly via VBS
Posted by JDP NO[at]SPAM Work at 5/27/2004 1:02:10 PM
Can a .Net Assembly be instantiated from a VBS script? TIA JeffP..... ...more >>

Trapping/Handling Constraint Errors
Posted by OHM at 5/27/2004 1:01:05 PM
I know this is not purely a VB.NET question, but I thought I would ask tho ! First create a typed-dataset with an integer ID primary-key field and a string Name field. Then create a form with a datagrid and a reference to the dataset on it. set the grids datasource to dataset1.table...more >>

Can a VB.NET 2003 project work with framework 1.0?
Posted by mvargas at 5/27/2004 1:01:02 PM
Hi all I've a project that has been developed with VS .NEt 2003 (which works with framework 1.1). Is there a way to Build this project in order to make it work with framework 1.0 Additionally, is there a way to make a .NET 2002 project work with framework 1.1 Thanks in advance God Bless ...more >>

Need help in finding some means of being able to program with speech recognition
Posted by Rod at 5/27/2004 12:41:28 PM
About two weeks ago I had an accident and have broken my left elbow and left wrist. For doing things like Word or e-mail (I use Outlook for) I have been using Microsoft's speech recognition and that has been working fine. However as a professional programmer I need to be able to type. Right now...more >>

datagrid with a combobox
Posted by pmcguire at 5/27/2004 12:11:04 PM
OK. So I've been to http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp and learned a lot about what I might do with a datagrid. But I'm STILL not able to do what I want to do. I want to be able be able to enter data into my grid cell using a combobox. I want the combobox to display items based ...more >>

Word library in server side?
Posted by Juan Romero at 5/27/2004 12:10:53 PM
Guys, I heard from a coleague at work that one is not able to use the Word library in a server. He claims that Microsoft does not allow you to install this library in a server, only workstations or personal computers. Is this correct? and If so, is there a way to get a license from Microsoft...more >>

Error: Argument 'Prompt' cannot be converted to type 'String'
Posted by carolinepsmith NO[at]SPAM hotmail.com at 5/27/2004 11:53:42 AM
I am trying to update a record though a stored procedure and parameters, but I keep getting this error: Additional information: Argument 'Prompt' cannot be converted to type 'String'. Any ideas? Here is the code Public Function UpdateClient() Dim dapClients As System.Data....more >>

Find the cursor position in a textbox
Posted by Neil Robbins at 5/27/2004 11:44:14 AM
Could anyone suggest a way in which I could find the position of the cursor within a textbox. I want to evaluate every keypress made within the textbox in order to validate it but in order to do this I need to know where the cursor is when the key is pressed. So far I can't see how I could do ...more >>

project deploy
Posted by \ at 5/27/2004 11:26:38 AM
Can you please advise me how to setup and deploy a donet project? How to add ..net framework to client station? Thanks. ...more >>

NTFS Folder Permissions
Posted by Joey at 5/27/2004 10:44:25 AM
Hey, How can I add/edit/delete Folder NTFS permissions in .NET? I have a Win2K Box, and WMI is not installed on my servers Thanks ahead! -- Joey ...more >>

Does file exist
Posted by y1799 NO[at]SPAM yahoo.com at 5/27/2004 10:30:51 AM
Hi, I am looking for function in .Net library that let me know if exist any file if I specified template. Eg: I specify "*.txt" and if any file (1.txt, 2.txt, .. ) exists then I can get True or at least file name . And if does not exist Fasle or empty string. Of course I can use VB6 func...more >>

Extracting Image Metadata
Posted by BluDog at 5/27/2004 10:30:31 AM
Hi Does anyone know how to extract Jpg image metadata from an image? Cheers Blu...more >>

OT: High-Tech Job Market Showing Signs of Recovery
Posted by asj NO[at]SPAM blueboard.com at 5/27/2004 10:27:01 AM
After several years of stalled projects, budget cuts and pink slips, the high-tech job market is showing signs of life. ''This isn't a maybe situation,'' says Tom Silver, a senior vice president at Dice, Inc., an Urbandale, Iowa-based online recruiting company for high-tech professionals. ''Th...more >>

Putting code into GAC
Posted by Derek Martin at 5/27/2004 10:13:18 AM
If I put an assembly into the GAC, it should run from wherever with Full Permissions shouldn't it? ...more >>

Known Bug - Possible Workaround??
Posted by CJ Taylor at 5/27/2004 9:14:08 AM
Alright, So this morning (as we are a week from launch on our product) I come across an error as I add a simple thing to our system. A display column in our dataset for databinding for display purposes only. So everything goes smoothly, compile, start running, everything looking good. then I...more >>

To suspend the events
Posted by Stefano at 5/27/2004 9:13:17 AM
There's a metod to suspend event's form(or control in general) raising? ...more >>

Any VB/COM experts here??
Posted by SamSpade at 5/27/2004 9:07:29 AM
Applications can retrieve an ITextDocument pointer from a rich edit control. To do this, send an EM_GETOLEINTERFACE message to retrieve an IRichEditOle object. Then, call the object's QueryInterface method to retrieve an ITextDocument pointer. How to do that?? I tried: Dim oREO As Object ...more >>

how can i return a icon image of a file through openfiledialog?
Posted by jack xu at 5/27/2004 9:00:12 AM
just like outlook when you insert a attachment ,a icon image of the file you selected will show in a textbox. Thanks. ...more >>

Looking for Some Products
Posted by Wayne Wengert at 5/27/2004 8:56:20 AM
I do some volunteer work with a small non-profit that has just made the commitment to keep all their desktop and web pages on VB and/or VB.NET. Their existing environment includes a mix of ASP and PHP. They use SQL Server 2000 as their DB. They need to replace a couple of capabilities currently ...more >>

Big red cross in DataGrid.. ?
Posted by Lars Netzel at 5/27/2004 8:51:57 AM
What's that? I guess something has gone wrong then but what? The Application hangs when it happens and I haven't been able to find out When it happens, it just does sometimes when I click a lot.. What does it mean? /Lars Netzel ...more >>

Web Browser Control
Posted by VJ at 5/27/2004 8:38:47 AM
I am using the web browser control.., I would like to add the control at runtime... I was adding the web browser control at desgin time. Now I decided to add the control at run time so I removed the control from the form and also the refrences to AxSHDocVw and SHDocVw, then I added the followi...more >>

SqlCnx.Open() no error when MSSQLServer db engine stopped
Posted by Tom Moortgat at 5/27/2004 8:13:30 AM
Hi, My VB.Net application doesn't receive a catch error when the MS SQL Server 2000 database engine is suddenly stopped. In stead the sqlcnx.Open() command results in a 'open' state although the database is not available. The program continues on the next line in stead of going to the 'c...more >>

Implementing IComparable
Posted by artifact at 5/27/2004 7:46:05 AM
Does anyone know if it's possible, and if so, how to implement a secondary comparison criteria Let's say we've got a collection of Person objects that we want sorted by LastName then by FirstName.. How would I construct a CompareTo function to accomplish this Thanks in advance!...more >>

String concatenating for Dataset.compute method
Posted by JC at 5/27/2004 6:26:02 AM
I am trying to use the compute method on a dataset that uses a concatenated string as the filter. Here is my code Dim myTable As DataTabl myTable = CheckHrsVacDataSet1.Tables("PYCheckHistory" Dim str1 As String = "((Employee = ' Dim str2 As String = "') AND (CheckDate >= ' Dim str3...more >>

The specified domain either does not exist or could not be contacted
Posted by RickL at 5/27/2004 6:06:03 AM
I am new to .NET (and directory services) and I need to fill a drop down list box with the users of my company. I am trying to use the code shown below, but I get this error message when the line of code with the "For" statement runs: "System.Runtime.InteropServices.COMException: The specified domai...more >>

Url testing
Posted by Oivier/noetika at 5/27/2004 5:36:04 AM
Hi In order to test that if a web server is alive, I use webrequest.create(url)/weresponse.getresponse. This is a bit slow and i didn't find how to avoid webrequest going directly to catch (try/catch) when the url isn't correct. So, is there another tool to test if an url is ok and alive Thanks....more >>

Unable to upgrade VB6 COM Dll to VB.Net
Posted by Shailja at 5/27/2004 5:25:39 AM
I read lots of stuff on MSDN relating to upgrading a COM Dll build using VB6 to VB.Net. Its seems to be a very easy task. As per few articles when we open vb6 application in .Net framework upgrade wizard is invoked. The wizard gives us option to create DLL (option to create EXE is grayed)...more >>

Copy object with .Net?
Posted by Grahammer at 5/27/2004 4:48:56 AM
In VB6 I had to create "Clone" method if I wanted to generate an independant copy of an object. In VB.Net, is it possible copy an object so that you can change the copy without altering the original, or do I still need to use a self created Clone method? Thanks! ...more >>

CheckListBox.checked
Posted by MSN at 5/27/2004 1:02:54 AM
xp pro/vs 2002/web forms/VB How do I make a checkbox checked when add it to a checkboxlist. Thanks ...more >>


DevelopmentNow Blog