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 > february 2005 > threads for wednesday february 9

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

There *has* to be a more compact way to do this...
Posted by Confessor at 2/9/2005 11:52:20 PM
I've heard that 'brevity is the ultimate bugkiller,' and I can't help but feel that portions of my code could be a bit more brief. I have 85 different labels comprising a type of 'gameboard.' Upon initialization in the code generated by the form designer, each label receives properties as ...more >>


vbc.exe Problem
Posted by f1racing24 at 2/9/2005 11:38:46 PM
I am trying to compile this class in the command-line and this error comes up 'Start -> C:\Inetpub\wwwroot\DCReview_Brinkster\code>vbc /t:library /verbose /r:System.dll,System.Data.dll,DBUtilities.dll CountryLib.vb Microsoft (R) Visual Basic .NET Compiler version 7.00.9466 for Microsoft (...more >>

Error when open a set of rows
Posted by Alberto at 2/9/2005 11:35:20 PM
When I try to see a preview of a report I see an error who says: Error when open a set of rows How can I solve this? thank you ...more >>

Search
Posted by RSusanto at 2/9/2005 10:48:58 PM
Hi, I need to make search in my web, and I use VB .NET. Which one is best for search method, INSTR() function or "SELECT SQL...LIKE @search string" thx ...more >>

Speeding up app start time
Posted by Jm at 2/9/2005 10:17:22 PM
Hi all I know this might sound a little stupid but i thought id better ask anyway in case there are some things i havent already tried that everybody else knows. Basically i am wondering if there is any way to speed up the time it takes for my app to display its first form. There is very littl...more >>

newbie - VB.net and MSDE / JET question
Posted by M Davidson at 2/9/2005 10:10:05 PM
Hello All, Thanks in advance for any guidance. I'm attempting to learn VB.net with the goal of creating the front end for a database. I am quite comfortable with Access and wanted to write the front end for an Access database (Jet). The texts that I've purchased all show how to...more >>

Can't Select Index 0 of a Listbox
Posted by Paul Sullivan at 2/9/2005 7:44:07 PM
Hi folks. I was hoping that someone can help me out here. I am adding items to a listbox from a database. So far, I've had no problems. However, when I try to use the SetSelected method and there is only one item in the list box (who's index is 0), it won't highlight (or at least, it doesn'...more >>

Teach yourself visual basic .Net 2003 in 21 Days (Steven Holzner)
Posted by whoopding at 2/9/2005 7:28:25 PM
I would like to find people who have studied this book. I want to see other peoples solutions to the exercises set at the end of each chapter. This is purely so that I can compare others solutions to my own to gauge my understanding of what I have learnt. ...more >>



[OT] Don't lapidate Amina
Posted by Stefano at 2/9/2005 6:55:37 PM
Subscribe here please: http://www.es.amnesty.org/nigeria/index2.php Thank you Send to friends ...more >>

programmer performance
Posted by paulhux174 NO[at]SPAM hotmail.com at 2/9/2005 5:50:38 PM
I'm looking for some input on what's happening out there. Does anyone have any programmer performance yardsticks in place? How does management analysis your programming performance? What works what doesn't?...more >>

DateTimePicker - A date or a time, how to do both?
Posted by Robin Tucker at 2/9/2005 4:55:46 PM
I'm using the date/time picker to allow users to choose a date or a time. However, as the control modes only allow one or the other, I'm scratching my head as to how to allow the one control to allow both a date and a time selection. Should I place 2 controls next to each other? I'm having ...more >>

Polymorphism
Posted by whoopding at 2/9/2005 4:55:01 PM
Could anyone please give me an example of a realistic use of polymorphism. ...more >>

Strip Chars from a string
Posted by Nikolay Petrov at 2/9/2005 4:35:17 PM
I need a way to strip chars from a string. The chars are all chars that are not allowed in file path. TIA ...more >>

Casting arrays that works on watch and command window but not in code.
Posted by ebustamante NO[at]SPAM xstratacoal.com at 2/9/2005 4:04:16 PM
Casting arrays that works on watch and command window but not in code. My application is casting arrays in a way it should work. To test if I was doing something invalid, I wrote a test code that has similar structure of the classes in my application. The test worked fine, the casting I want t...more >>

TIF getting saved as compressed?
Posted by Tom at 2/9/2005 4:02:26 PM
I am loading a TIF file into a bitmap stream (Dim bmp as new bitmap etc etc). I use GDI+ to draw some text onto the lower left corner of the TIF, then save the image (i.e. bmp.Save(filename)). However, I am finding that the original TIF is NOT compressed, but when I save the bmp stream as TIF, i...more >>

Controlling RS232 and LPT Port using VB .NET
Posted by Wouter van Teijlingen at 2/9/2005 3:31:51 PM
Dear Readers, I was reading about how to control the COM and LPT port using VB .NET. I've found a lot of information, and it was very useful to me. I found an example program on the site of Microsoft. You can find it overhere: http://www.microsoft.com/downloads/details.aspx?FamilyID=075318c...more >>

Drag / Drop question
Posted by Brad at 2/9/2005 3:05:19 PM
Okay, I am learning about Drag/Drop operations so I am green when it comes to this. I have a form that draws several optional labels that are single-bordered. I also have a dozen colored labels that I want to drop over these "drawn" labels and on the drop, I want to color the "drawn" label ...more >>

Saving PrintJob to File and then Load to Printer again
Posted by Mike Kline at 2/9/2005 2:59:56 PM
Hi There! Is there anyways to Save the Print Job from printer queue into a file on HDD and then later on, load that file into the Printer again to print?? Any pointers or examples in C# or VB.NET is very much appreciated!!!! MK ...more >>

Any automated tool to extract strings in source code to an external resource file?
Posted by Samuel R. Neff at 2/9/2005 2:23:11 PM
Are there any tools available to parse source code and extract strings to an external resource file, replacing the string by a resource retrieval? Thanks, Sam B-Line is now hiring one VB.NET developer for WinForms + WebServices position with ASPX in future. Seaking mid to senio...more >>

Searching ArrayList of Classes
Posted by Paul Nations at 2/9/2005 2:01:32 PM
I've got arraylists of simple classes bound to controls. I need to search through those arraylists to set the correct SelectedItem in the control. The code looks like: Public Class DegreeMaintenance Private arrCipCodes As New ArrayList 'populate reader with data With rdr ...more >>

memory requirement for DotNet 2005?
Posted by Bob at 2/9/2005 1:31:20 PM
It's been my experience that clients with 128MB RAM (for any OS later than Win98) are brought to their knees by DotNet apps. Any loading operation - starting up, or a creating new form - takes absolutely forever. I've had to tell customers that in order to run my apps now, they have to have at le...more >>

button array question
Posted by Starbuck at 2/9/2005 1:30:42 PM
Hi I have created an array of buttons thus (see below). The buttons appear on the form fine. The only thing I cannot figure is how to capture the click and do a action depending on which button in thr array was clicked. Thanks for any advise Regards For cnt = 0 To 7 backButtons.A...more >>

Exception: Index was outside the bounds of the array
Posted by Coen at 2/9/2005 1:25:08 PM
Hi, I'm dealing with a master-detail relationship. A datagrid bound to the detail data. When navigating through the records (next record: Me.BindingContext(mDv1).Position += 1), I notice a delay of about 2 sec's if the detail datagrid is empty (no records to show for this master-record). Th...more >>

Shared variables in baseclasses
Posted by Qwert at 2/9/2005 1:13:31 PM
Hello, when you have a shared variable in a baseclass, and you give it a value through an instance of a subclass, does this shared variable and its value still exist after you destroy all instances of that subclass? i.e: 1: create subclass object based on base class ( base class has sha...more >>

Obtaining hostname from IP Address
Posted by amirmira at 2/9/2005 1:01:08 PM
Hi, I have an application where I monitor the status of a machine using it's IP address. I would like to log an error when the machine goes down - but I want to add the name of the machine along with the IP address in the log. Any ideas how to achieve this? I have seen several examples of obt...more >>

Installer
Posted by telkom at 2/9/2005 12:51:07 PM
Does anyone have info on using the dotnet installer to install and start as well as stop and uninstall a windows service as part of the installation process ...more >>

Try Catch Template?
Posted by gregory_may at 2/9/2005 12:07:13 PM
Anyone know how to add the subroutine/function name into a try catch block? Ideally, it would be great to have this as part of the automatic template that gets created. Try Catch ex As Exception Debug.WriteLine(ex.ToString) End Try ...more >>

Drawing controls question
Posted by Brad at 2/9/2005 11:50:45 AM
This should be an easy question, but I have not found the answer. I am now learning how to create my own controls and draw them to a form. But my specific question is when I have a label that I want to BOLD, how do I set the label text to be bold? Thanks for the information. ...more >>

CollectionBase - how to expose?
Posted by Ian Ashworth at 2/9/2005 11:29:15 AM
Id like to be able to set a new instance of the EposTransaction class and add Sale items to the Sales collection via EposTransaction.Sales.Add(SaleItem). Basically want all the functionality of the Sales collection class exposed within my Transaction class. I'm new to .net from a classic v...more >>

Generating Combo Box items from an SQL Databse
Posted by TS at 2/9/2005 11:11:05 AM
Hi all, I posted this question here before, but I'm still having a problem with this code. From my windows form, I opened a connection to a SQL database. I need to generate a combo box in my form from a SELECT statement that selects the last name column from an SQL table. I wrote the follo...more >>

Editor Suggestions
Posted by Rob T at 2/9/2005 10:30:22 AM
I need to write a 'simple' editor that will allow me to drag/drop different objects. Basically, I need it to function like a form editor similar how you would design a form in Visual Studio or Access, or work how Adobe Illustrator works where you can have handle(s) on the selected object so i...more >>

newbie Namespaces question
Posted by Shane Story at 2/9/2005 10:29:02 AM
We have a solution as follows PROJ1 (WINSERVICE) PROJ2 (SVC MGR) PROJ3 (CLASS LIB) --DLL OF COMMON THINGS We want to have namespaces such that we can say Imports OurCompanyName.Something We set the root name spaces of each of these projects to our company name. Then we put NameSp...more >>

The following Marshal code almost works
Posted by Just Me at 2/9/2005 10:18:29 AM
The following almost works. The problem is Marshal.PtrToStringAuto seems to terminate at the first null so I don't get the full string. Any suggestions on how to fix this? Or how to improve the code? Thanks PS I added the +1 because as I understand the GetLogicalDriveStrings doc there...more >>

Question about Synclock and exceptions
Posted by Chris Dunaway at 2/9/2005 9:23:42 AM
I was using a Queue object like this to create my own specialized queue class for use with my own objects: Public Class MySpecializedQueue Private q As New Queue Public Sub Enqueue(obj As MyCustomClass) SyncLock q.SyncRoot q.Enqueue(obj) End SyncLock ...more >>

Anything Changed Flag
Posted by Not Aaron at 2/9/2005 8:56:17 AM
I am wondering if there is an event or control that would throw a flag once any kind of textbox or control on the form had changed. Sort of like with Word say, if you bring up a document, and don't do any editing, it doesn't ask you to save. I am wanting that same effect without having to set ...more >>

convert seconds to HH:MM
Posted by Mike at 2/9/2005 7:37:05 AM
I'm getting my data from my database in seconds, 3600, how can i convert that to time such as 1:00 pm? ...more >>

How can i save and print form
Posted by Rammohan at 2/9/2005 6:05:02 AM
hi, I want add one button on form as printbutton. in runtime if we click on printbutton that active form will automatically save particular folder and print it. is it possible????? other wise give me good suggestion for save and print the form in runtime... regards Rammohan....more >>

opening a windows via a windows
Posted by angus at 2/9/2005 4:03:03 AM
hello, i don't know if i'm posting this in the right section .. but heck. anyhow, is was wondering what code i should use to open a existing form from an other form.( clicking on a button and then getting the next one, whil closing the other one.) thanks in advanced, Peace.out....more >>

How to add popup menu to outlook from VB6
Posted by Mamatha at 2/9/2005 3:18:03 AM
Hi I don't know,is it correct form to post my query,but any know i want to clarify my query. I want to add a popup menu to Outlook from VB6.How can i add? please give me the solution. Thank you...more >>

ExecuteNonQuery: Connection property has not been initialized
Posted by Jason Williard at 2/9/2005 1:15:57 AM
I am trying to create a web form that will be used to create new users. The first step that I am taking is creating a web form that can check the username against a database to see if it already exists. I would it to do this on the fly, if possible. When I execute my current code, I get the...more >>

VBWM.COM Looking for New Authors
Posted by Richard Bowman at 2/9/2005 12:57:42 AM
VBWM.COM is one of the oldest VB-related sites on the Internet, having operated since 1995. We are looking for authors to write articles and tutorials. Unlike many other sites which rely on prizes for submissions, VBWM pays authors for each article written based on their contributions and the re...more >>


DevelopmentNow Blog