Answer Questions
OClaudiu Call Sub Main in a class. How to use this class?
Hello, I came across the following sample in Visual Studio Help: You can see the comment, ' Provides an entry point into the application. ' and a Public Shared Main procedure is used. What is the reason it is done this way How this class can be used Your help is much appreciated. ...Show All
Oddbjørn Sjøgren Load an Array with a string & convert EBCDIC to ASCII
I have a function that I wrote to convert from EBCDIC to ASCII. Please see below. I'm having a problem loading a string into an array in order to convert each character. When I try to load the array I get the following error: 'Unable to cast object of type "System.String of type System.String[ ]" Why can't I load the array by using: InputArray = FieldContent Code below: Function EBCDIC2ASCII(ByVal FieldContent) ...Show All
Cosmic Arts Zipping Files or Compressing them
Does anyone know how I could zip some files through a program, or compress them somehow I am trying to make a program to back things up, and I don't even know where to begin. Yeah but the code that you just posted comes up with compile errors, including an 'end if' without a matching 'if', I can't even begin to understand what you had there if its not right. Its pretty qu ...Show All
JHibbins Boolean Explanation Please!!!
Private blnNoAction As Boolean = False Now i am declaring 'blnNoAction as a Boolean varible that is set to FALSE, but the thing is i do not know what that means........and i dont know how i should use this varible...can some send me a link or run me an explanation on how this works, i am fimiliar with the operators AND OR NOT but how does this tie in to declaring a varible as boolean No prob :) Ok I understand access spec ...Show All
MikeKop VarPtr
If anyone knows the replacement function or method for varptr (vb6) in vb 2005 please let me know. http://www.google.com.au/search hl=en&safe=off&q=varptr+.net&meta = More specifically http://www.codeproject.com/vb/net/singleinstance.asp has this: <P>There are two operations required - set the <CODE lang=vbnet>lpData</CODE> member to point to a <CODE lang=vbnet>String</CODE>, and retri ...Show All
thesaint381 VB6 MSDN CD
Does anyone know how to download the MSDN CD for VB 6.0 The help doesn't work without installing it. Thanks Dale The MSDN CD for VB6 should have shipped with the product. These forums are for VB.NET and there are better places to find answers for older versions of VB. Maybe the VB6 newgroups - http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vb.general.discussion&lang= ...Show All
paulkossler How to center controls
Hello How can I center controls in the form I know how to center controls by using "Format-->Center in Form". But I need a code for centering controls. Thanks Try modifing the code to center based on just the size of the client area, rather than the entire window: Public Sub CenterControlInForm( ByVal ctrl As Control, Optional ByVal Horizontal As Boolean = True , ...Show All
Thieme Visual Studio Is Busy?
Pentium IV - Northwood 3.5 Ghz - I Gb of Ram. XP SP2 .. all current patches applied. VS2005 RTM Team Suite On occasion while debugging the IDE becomes nonresponsive and I receive a Bubble message informing me that "Visual Studio is busy waiting for an internal operation to complete - If you receive this message often, please inform Micorosoft" After I receive this message the IDE never recovers. All I can do is to de ...Show All
Edwin Vermeer - EVICT.nl Locked property
Why am I able to change the locked property for my combo box or text box in the property window but not in the code Are you saying you actually want a Drop Down List, and not a Combo box (a Combo box allows the user to type, a drop down list, the user can only select an item in that list) You can look at the .DropDownStyle if you just want a list to select from. Disabled does mean disabled - the user ...Show All
lori1171963 Saving variable values
Hi Again, I want to know in Visual Basic 2005 how to save variable value(s) into a file (of any arbitrary extension) and retrieve the value(s) later. So basically, a value I/O to a file. Any help would be appreciated. Regards, Arun. The same in VB: <Serializable> _ Private Class [ MyClass ] ' Methods Public Sub New() Me.intValue = 23 ...Show All
Rvel Border color
Is there any way to change the color of a controls border, mainly the label and textbox control. When I set the borderstyle to fixedsingle the border is black. Can I make it white No it shouldnt do - although if the object model supplies a dispose method its good practice to use it. However when the object becomes unreachable as there are no references to it - the garbage collection process should pick it up and reclaim the memory. B ...Show All
Jeremy_Ward Date format VB 2005 beta
Dim mystr As String mystr = TextBox2.Text TextBox2.Text = Format(mystr, "dd MMM yyyy" ) If date typed in as 01-01-2001 in VB6 will give 01 JAN 2001. If date typed in as 01-01-2001 in VB 2005 Beta will give - dd MMM yyyy Im assuming Im wrong somewhere. Any ideas please. Thanks, Blinky. Thanks for reply. Unfortunatly DateTime.ToString errors. Bill. You need to ...Show All
ureyes84 Accessing a running program's ram
I want my program to access a program's ram (when the program is running in memory) so I can debug it explicitly. I know how to edit a file by storing it in a buffer but how would I do this when a program is running. If suggestions or code samples are given, please make sure they are for vb.net and they are explained. Thanks. For what From where ReadProcessMemory from Win32 API. But I doubt you find use from it. You need deep k ...Show All
Labi GDI Save Problem
I've been reading books and surfing the web for an answer to what, I thought, was a standard graphics problem I'm having...hopefully you can help. I need to obtain an image from a file (bmp), display it on a form (probably a picturebox), draw on it (g.drawline(), etc.), and then save the image as a different BMP. Here's a simple version of the code: Dim g as graphics = Me.CreateGraphics() ' get image Dim myImage as Image=Image.FromFile( ...Show All
ANW Need Timer help on VB6!
Hi I need help programming a timer that ive created on VB6. What ive done is put the hours infront so that i can get a time in a different country. I done this by doing this: eg... Label1.Caption = Hour(Time) + 1 & ":" & Minute(Time) & ":" & Second(Time) (for places an hour ahead). But when it displays numbers like "09" or "04" or whatever for the hours, minutes, or seconds, i ...Show All
