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 > february 2004 > threads for monday february 23

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

keypress question
Posted by starbuck at 2/23/2004 10:41:44 PM
Hi All We are converting a VB6 app to VB.NET and have come across a little problem In VB6 the following code Private Sub User_txt_KeyPress(KeyAscii As Integer) KeyAscii = Key_Filter_Alpha(KeyAscii) End Sub Calls Function Key_Filter_Alpha(keyc%) As Integer ...more >>


Help for a vb.net application
Posted by toufik at 2/23/2004 9:51:33 PM
Hi, I like to add to my application a help that has the same behaviour than the microsoft software (index, search,...) Is it possible? any hint please. Thanks. ...more >>

global changes for crystal reports connection strings
Posted by Bernie Yaeger at 2/23/2004 9:43:54 PM
I have developed numerous reports in an app (Windows Database App) that is soon to go into production. When I built each report, CR connected to sql server on my development platform. The connection string is different than it will be at my client. How can I change the connection string so t...more >>

Numeric to string problems.
Posted by Toble Rone at 2/23/2004 9:03:35 PM
I have an application that needs to run in a server with specific regional settings (South America). In some part of the code, i'm retrieving values like "25,94" (that means... 25 as the integer part, 94 as the decimal part.... using a ","). The problem is that when i concatenate those values ...more >>

newbe: create new event with designer
Posted by Peter Ramsebner at 2/23/2004 6:27:18 PM
Hi all, with dobleclick on a control, the forms designer create a new eventhandler for the actual control. When you need an eventhandler for specific events (for example 'validating') then you have to do it manually? Or exists a way to do it with the designer? Thanks for help Peter ...more >>

Raise Events vs Timmers recognizing thread instantiations.
Posted by Bob Day at 2/23/2004 5:47:07 PM
Using VS 2003, Vb, MSDE... Option 1 ------------------------------------------- Thread A and B are instantiations of 2 different classes. If thread A raises an event caught by thread B, the delagate in thread B that executes is 1) running under thread A based on the debug threading window and...more >>

Format method of String Type
Posted by David Morris at 2/23/2004 5:26:08 PM
Hi Could somebody please explain what the following line of code means String.Format("{0}\{1}.{2:00}", C:\, myfile.txt, 1 It's actually the first argument that I don't understand. What is the purpose of "{0}\{1}.{2:00}"? I've been using VB .NET for a year now, and have never come across anyt...more >>

.Net equal to the VB Right string function
Posted by moondaddy at 2/23/2004 5:14:10 PM
I looked at the string functions in .net and didnt see anything thats similar to the old vb6 Right string function. Is there another .net way to do this? Here's my suto code for what I'm trying to do: sOldString = "12345678" sNewString = Right(sOldString,4) 'sNewString should be "5678" T...more >>



Timer resources
Posted by Bob Day at 2/23/2004 5:07:59 PM
Using VS 2003, VB, MSDE... I find myself using timers alot. Dosystem times or Thread times carry a much of a resource cost? Or is the cost negligible? It seems to be little resource cost. Thanks. Bob Day ...more >>

Problem with MDI children maximization (maximize bug)
Posted by tequila at 2/23/2004 5:06:05 PM
Description I have few opened MDI children forms in my MDI parent I've maximized one, work for I while and then closed it with "X" in upper-right corner (the basic way to close a form) Next thing I can see is that all my other forms are maximized even if they are not sizeable ? That happens e...more >>

Killing a thread
Posted by Bob Day at 2/23/2004 5:05:08 PM
Using VS 2003, VB, MSDE... I am stoping a thread with the following code: Try Thread.CurrentThread.Abort() Catch ex As Exception MessageBox.Show(ex.ToString) End Try The MessagBox shows, but then after the End Try it traverses the call stack all the way to the top (same thr...more >>

Is there any vb.net code to email from a webform?
Posted by Trint Smith at 2/23/2004 4:54:54 PM
I need to allow someone to communicate by email from my webform without knowing the receivers email...Is there some vb.net code to do that using one of my servers email accounts as the sender of the message? Thanks, Trint .Net programmer trintsmith@hotmail.com *** Sent via Developersdex h...more >>

COMInterop problem !
Posted by Mário Sobral at 2/23/2004 4:49:48 PM
Hi ! [INTRODUCTION] I have developed a .NET library that references another .NET library. MyLibrary -> OtherLibrary I then create a COMInterop wrapper assembly to use it from a VB6 project: MyWrapper -> MyLibrary -> OtherLibrary They are all signed with the strong key (sn.exe...more >>

Position MDI child at lower right corner of MDI parent
Posted by Tom at 2/23/2004 4:29:05 PM
I have a small window that I want positioned at the lower right of an open MDI window. I know how to size it and place it (via .Left and .Top during the form load event) but what I can't figure out is how to find the MDI's inner window height/width. In VB6 we used ScaleHeight and ScaleWidth, but ...more >>

Deleting Tabs from Tab Control
Posted by meh at 2/23/2004 4:21:27 PM
Hi All; After creating a new tab if I delete the tab I cannot close my app from the X in the upper right of the window. NE1 have a clue why. Tried stepping through the delete seems to work fine but I can not close the app?????? I am creating a new Tab this way..... ElseIf e.Button Is tbNe...more >>

ascii length??
Posted by Algren at 2/23/2004 3:57:29 PM
hi all, I am wondering how I can get the ascii lengh of a string in VB.NET? Especially that the string consists of alpha numerics as well as chinese (double-byte) characters. Say I have a string "¢Ï¢Ð123" with the first 2 characters being double-byte, using Len() on that string would return m...more >>

Windows Control Library
Posted by Tim Joyner at 2/23/2004 3:51:41 PM
I am trying to create a custom control and I have the need to implement a collection similar to the Collections that controls like the Listview control uses (ex. ColumnHeader Collection). I have not found and article that really explains how this works. Can anyone help me with this or does any...more >>

Try this
Posted by Charles A. Lackman at 2/23/2004 3:44:51 PM
Dim Pinfo As ProcessStartInfo = New ProcessStartInfo() Pinfo.FileName = "c:\test.txt" Pinfo.UseShellExecute = True Dim p As Process = Process.Start(Pinfo) ...more >>

DataGrid's PageIndexChanged not firing for 1st (First) Page Only!!!???
Posted by William McKee at 2/23/2004 3:23:25 PM
I have a dynamically created DataGrid which is on a page below other controls. The problem I am having is that when I enable paging for the DataGrid, it works OK EXCEPT you cannot go back to the first page. All other pages work OK. For the first page of the datagrid, the PageIndexChanged event D...more >>

Vb Setup/Obfuscating questions
Posted by SStory at 2/23/2004 2:38:55 PM
I would like to see some discussion on what most small-time shops do for protecting there code---obfuscating. I can't afford professional dotfuscator at present, but would like to obfuscate and protect my work and also to be able to have patches for my app as needed. Is this impossible with...more >>

Impersonation half way working
Posted by William Oliveri at 2/23/2004 1:51:09 PM
Hello all, I have a working example of Impersonation where I receive a token and a true response for a specific user. However, if I try to access a drive that has only that user's permission to access I get denied. Code below. I tried this on a XP box and a W2K box with the same results. ...more >>

Problem with third party dll, and application shut down - help!
Posted by James Radke at 2/23/2004 1:24:04 PM
Hello, I am using some external functions supplied by an ERP vendor in a windows.forms application (vb.net, visual studio.net 2003) The functions are defined as follows: ' Max startup and shutdown functions Declare Function InitMAXOrder Lib "MAXORDR2.DLL" (ByRef DataPath As Strin...more >>

error when loading an old style dll
Posted by Paul at 2/23/2004 12:56:09 PM
Hi I am just trying to load an old style dll, not trying to pass anything to it yet but get the error below An unhandled exception of type 'System.Runtime.InteropServices.MarshalDirectiveException' occurred in dll_test.ex Additional information: PInvoke restriction: can not return variants It is ...more >>

convert string variable to uniqueidentifier
Posted by Sandy at 2/23/2004 12:51:11 PM
I'm building a SQL String and I want to choose only the records that are part of the current contractID. My Variable Dim contrID = Request.Params("oId" I put it into the SQL String WHERE (JS_CRM.dbo.cntrct_cntct.ContractId = '" & contrID & "') And I get the error message Syntax error c...more >>

Add new IFieldObject in Crystal Report
Posted by DraguVaso at 2/23/2004 12:48:57 PM
Hi, I have a Crystal Report in which I want to add a new IFieldObject. I make the datasource dynamically, and it works with a XML Dataset. I updated the dataset, and I am able to see the new Field in the Field Explorer -> Database Fields. But I'm just not able to add the new IFieldObject ...more >>

transparency in backcolor does not work
Posted by t perkins at 2/23/2004 12:29:16 PM
would there be a reason why i cannot set the backcolor on lables to be transparent. it is set to be transparent, but it does not work for some reason. any help would be greatly appreciated tony ...more >>

Listview Visible Row Count
Posted by Henry at 2/23/2004 11:47:02 AM
Does anyone know how I can determine how many visible rows there are in a vb.net Listview? There is no listview "visible row count" property like there is for a datagrid. Tks in advance for any feedback. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate...more >>

Need help with regular expression
Posted by moondaddy at 2/23/2004 11:29:04 AM
I need to rename file names with a specific naming convention which includes adding a SKU number at the end of the file name and I would like to use a regular expression to do this, but I don't even know where to start on this one. For example say my file name is MyFileName.jpg and my SKU nu...more >>

catch event in non-visual class?
Posted by Craig Buchanan at 2/23/2004 11:03:47 AM
I am using a third-party .Net component that raises an event with arguments as a result of a method call. Is it possible to catch this event in a mid-tier vb class, rather than a webform's code-behind class? Thanks Craig Buchanan ...more >>

Bug Tracking Software (Web Based?)
Posted by CJ Taylor at 2/23/2004 10:56:24 AM
Hey anyone know of a good (and possibly even low cost) bug tracking software? Preferably web based... -CJ ...more >>

XP Style question
Posted by Mika M at 2/23/2004 10:53:42 AM
Hello! Is it possible to use XP Style Buttons with Images? I can change buttons to XP Style easily, but when adding ... myButton.FlatStyle = FlatStyle.System .... button images just disappares - why? I placed images to the buttons like ... myButton.Image = ImageList1.Images(0) -...more >>

Printing Text
Posted by James Proctor at 2/23/2004 10:51:05 AM
Hi there, i want to be able to print some text on an angle, so that some is hozizontal and some is vertical, is there a way to do this or am i just beign stupid even thinking about it. It would be really useful if i could do it, just not sure what i should be looking for. Any ideas would be great ...more >>

shell,console and standard input and output
Posted by Christophe HELFER at 2/23/2004 10:28:21 AM
Hi, I would like to do this in VB Languague. I have an executable file in DOS mode. This executable returns informations and display them to the DOS window. Unfortunately, I have to process theses informations. The way to do that, is to redirect standard input and output, insn't it ? This ...more >>

Name/Value Properties
Posted by Raterus at 2/23/2004 9:47:29 AM
Hello, Does anyone have any ideas how I can accomplish this using properties. I'm trying to create a property, that acts like a structure. Basically I'm trying to create a property that I could do this with. myCompanyIndex = currentCompany.Index myCompanyName = currentCompany.Value "cur...more >>

how big can disconnected dataset be?
Posted by Rich at 2/23/2004 9:27:08 AM
Hello, I have to read and write around one million records from an external data source to Sql Server2k every night. That's a lot of I/O. I am using VB6 for this (takes hours). I am connecting to the external data source with API's from its object library (as opposed to ODBC in which ...more >>

Outlook/Mapi Object, Help saving attachments using VB.NET Forms
Posted by peter NO[at]SPAM mclinn.com at 2/23/2004 9:24:54 AM
I found this code and it works great. Is there any way to up date the code to export attachments to (c:\Exports)? =================================================== Dim olFolderCalendar As Integer = 9 Dim olfFolderConflicts As Integer = 19 Dim olFolderContacts As Int...more >>

Ping code
Posted by Tim Gallivan at 2/23/2004 8:18:33 AM
Has anyone stumbled upon any FREE code for ping hosts from vb.net? Any links would be greatly appreciated. Thanks in advance, -- Tim Gallivan I know I'm a great teacher because when I give a lesson, the person never comes back. ...more >>

excel application does not shut down after program exit
Posted by G.D at 2/23/2004 6:25:50 AM
hi, i create an excel application (MS Excel 2000 installed) in vb.net. At the end, i close all workbook and quit from excel aplication. I also set them nothing and call garbage collection. But excel application does not end, stays resident in memory so my applications gives memory error. ...more >>

Scroll button not working now in VB6
Posted by Everett at 2/23/2004 6:06:06 AM
I have a new Desktop Gateway PC with Windows XP Professional. Unfortunately, my scroll button does not work in any VB6 code. Does anyone know where and what driver I need, or is there another issue why the scroll isn't working now? The mouse is P/N: 7004269. Thanks. ...more >>

A couple questions
Posted by jy836 at 2/23/2004 3:00:49 AM
1) When using images for an application (such as in an ImageList or as the image for a button), are the images embedded in the application or must the image files be included in the setup package? 2) Is there a way to adjust the individual column widths of a DataGrid which has no TableStyles o...more >>

VB vs VB.NET
Posted by google5 NO[at]SPAM hotmail.com at 2/23/2004 2:58:15 AM
a lot of articles here flame the .NET architecture. Especially VB (classic) programmers saying how crap it is and that Microsoft has butchered the language. There are also a lot of articles asking whether or not they should make the move to VB.Net from VB6. The problem with these articles, esp...more >>

Reflection and PropertyInfo
Posted by oskar NO[at]SPAM musiker.nu at 2/23/2004 2:47:20 AM
I want to iterate over fields declared like this, using reflection (and there are good reasons for that): Protected WithEvents Foo1 As Bar Protected WithEvents Foo2 As Bar .... I use the following code to get an array containing the fields (wrapped in PropertyInfo objects): Dim objs As ...more >>

Help on Line Control for Vb.net
Posted by shiwei_1983 NO[at]SPAM yahoo.com-dot-sg.no-spam.invalid at 2/23/2004 2:27:31 AM
Can anyone help me on how i can create a line control just like vb6?? i had try some line control created by experts on the internet which is quite similar to the one in vb6 but when creating a diagonal line , the object box becomes very big. is there any line control for vb.net where it is just...more >>

Re. deriving from eventArgs( )
Posted by skjagini NO[at]SPAM rediffmail.com at 2/23/2004 1:01:30 AM
Hi, When we create customEventArgs, we also derive the classes from eventArgs( ) and I dont understand the advantage of this inheritance. This is neither an interface nor applied as attribute. I have seen similar stuff in remoting also where we derive from marshallByRef object in SAO to cr...more >>


DevelopmentNow Blog