-
- Trimming a string
by Ravi28
- 2 Replies
- Last post
by Ravi28
- Dim MsgDirPath As String = mats.GetSetting("UnpackLocation")
The above code will get a string (a path to a file like F:\folder1\aaaa.exe). Now if I need just the filename(i.e. "aaaa"), how do I get it I can't use trim as the length might vary everytime I change the path. Probably there are more options for using Trim() that I don't know.
Any kind of help or suggestion
-
- Vista and System.Diagnostics.Process.Outputdatareceived
by smurf47172
- 0 Replies
- Last post
by smurf47172
- My office recently changed over to Vista, and one of the tools that a built for our Help Desk is having issues. The issue is when my program is run PSEXEC to start an install on a remote computer. I have an output handler that gathers the output data and displays it in a textbox, but it is not displaying the data in the textbox. This is ONLY happening with PSEXEC. I run the systeminfo command the
-
- Test date format
by Mat_77
- 11 Replies
- Last post
by kleinma
- Hi,
I'm writing a program that will be used on many computers with different regional settings. I use a text file to write some data, and I need to read and write dates. I would like to do something like :
Public class Object
Private mDate as date
Public Sub Read(ByVal SR as System.IO.StreamReader)
mDate = CDate(SR.readline)
end sub
end class
The p
-
- KB915038 doesn't help
by Horst Klein
- 14 Replies
- Last post
by Horst Klein
- Hi together
I'm really surprised that this Hotfix generates so mutch discusion! I allway was thinking I'm the only person on this planet who has a crash problem with the VS2005 VB IDE.
Great to here that I'm wrong.
I talk about IDE Problems since we use VS2005 see:
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=3f637569-a763-48a6-8d11-ce6dbc4b5ecd
and
-
- Question about custom functions
by Troy Lundin
- 6 Replies
- Last post
by Troy Lundin
- I have some custom functions in a dll. I can link to the dll and view it in the object browser. The only thing I cannot figure out is how to get the Summary, Parameters, and Return values to show up in the description box.
Also, when I type my function in the code view and the small info box shows, how can I get a description of my argurments to appear in the box
Thanks.
-
- Replace text in binary files
by zakkar
- 7 Replies
- Last post
by zakkar
- Hi , I need some help here with reading binary files. I am using VB .NET 2005 and I need to read a binary file , convert it somehow and replace a text value that is stored inside. For eg. This file has a string value XXXX-XXX/XXX. If I am viewing normally the file and not the binary I am seeing that format. But when it comes to the binary I cannot view it. So. All I need is read the binary , conve
-
- Datagridview problem
by NetPochi
- 14 Replies
- Last post
by NetPochi
- Hello. A question please. I have a problem with a datagridview. I have a datagridview on the form1 with data of the table1. The form1 calls a form2 that allows insert a new row in a table1. When I return on form1 I re-execute my query on the table1 to get new rows (new data is in) and then I assign it to datasource of my datagridview, but it doesn't work. I don't see the new row in my datagridview
-
- Hello nooby here... needs a quick answer!
by moveit
- 6 Replies
- Last post
by nogChoco
- Ello... I am in the middle of programming a game... ... again.. in visual basic... and I can't seem to find a way to make it check to see if a image is a certain image... Basically... what i want it to do... ... is when you click it... have it check to see which picture is up... Example (Red is the part I'm stuck on and can't seem to get to work I've tried so many different things its insane... b
-
- Remove letters (All letters in alphabet) from String
by McWhirter
- 14 Replies
- Last post
by McWhirter
- I have a string of "text" that i extract from a specific file. Usually this string just contains a mobile telephone number, but in some instances, it also contains a name or some other text
ie it should containt 0404 123 456
but sometimes it has 0404 123 456 bob
can someone give me any pointers as to the simplest and easiest method of replacing any character that is
-
- How can I handle winsock..?
by stupix
- 1 Replies
- Last post
by DMan1
- Dear all,
I want to develop a program for IP redirection.
Some of famous Internet program haven't proxy setting configuration.
I want to used those programs with my proxy setting.
So, I need to redirect IP when those program send request to their parent site.
I try to used some of WinSock API to handle the winsock. I could know winsock's
status when a program is using winso
-
- Class.Copy + Class.Paste + Class.Rename = Problems
by stivo
- 4 Replies
- Last post
by stivo
- Hi,
When I copy and paste a class (with the mouse and shift pressed) and then i rename the newest file. The name of the class is renamed in the code including in the original file. So it is pretty difficult in this case to reuse the code. Is there any possibility to avoid this problem
(i m using VB)
Steve Switzerland
-
- NET dll used by VB6 moved to production environment
by Emanuel Villa
- 5 Replies
- Last post
by Bruno Yu - MSFT
- Sorry if this is not the right place to post this question... I made a .NET dll and a VB6 application that use it, when I run this application in my box works perfectly. But this application need to run in another computer, so I Copied my dll in .NET and register it with RegAsm on this production box, make my VB6 exe and copied to this box and It doesn't work. The error message is: ActiveX compone
-
- Lock And Unlock Form
by lucerias
- 8 Replies
- Last post
by lucerias
- I have one form and i call out another form from there, i am able to set focus on that form but i want to lock the other form. Only user close the second form then only the previous form can be unlocked. May i know how to do it Thank you
-
- Range in if / case statements
by Samji
- 8 Replies
- Last post
by Samji
- Hi. Sorry in advance for this fairly staightforward (to most of you probably) question, but a web search returned nothing relevant. I have this if statement:
Code Snippet If gOffset = tX Or gOffset = tX - 1 Then ' do something
I need to have tX and tx followed by num offset, up until about -20 and + 20 respectively. How can I specify a range of numbers in an if statement. I know
-
- Closing Another Application
by Trekkie_SG9
- 9 Replies
- Last post
by Trekkie_SG9
- How can I make my program exit another program located in the notification area (an icon)
-
- Sort ComboBox List
by Chris Molland
- 5 Replies
- Last post
by imShahzad
- Hello, I have added a comboBox to a form and in the ComboBox tasks pop-up ticked the "Use data bound items" and bound it to an Access derived datasource. I selected the appropriate Display member and Value Member (not sure yet what the Selected Value is for) and then Built the project. The resulting list is not sorted. How can I sort the items in the ComboBox list. Visual Studio 2005 -
-
- String problem
by Kathy J
- 2 Replies
- Last post
by spotty
- Here's a newbie question:
I'm trying to concatenate several strings into one long insert statement string. That works fine until the string reaches 250 characters. After that only one character is added and that is not the next character I want to add. I didn't think the string datatype in Visual Basic was restricted to 250 characters. My code goes something like this:
sqlstmt = "INSERT
-
- error on parameter list
by alk3ovation
- 6 Replies
- Last post
by PEng1
- Hey everyone, I'm writing an application that reads from an excel file and puts information into a database for individual accounts. I know the import works and the information is correct because I tested it using a StreamWriter. But now I'm actually trying to insert the info into an Access Database I created. I'm pretty much a complete novice when it comes to databases and I read through this th
-
- 'find'?
by capcav
- 2 Replies
- Last post
by capcav
- Hi,
Does anyone know how i can search a text file for specific word occurances using vb 2005 code I can easily read a txt file and display it in a text box, or even as a whole file (variable), but i would like to basically use a text file as a windows appication .ini equivelant For example i would like my application to look for a specific word within a text file and then return that line o
-
- Need help figuring out some code to extract certain data out of a database
by Moonbiter
- 5 Replies
- Last post
by Moonbiter
- What I am trying to do, is convert some database information, into an XML file. The data is mostly going to come from a search of the database. I then need to take those records and put them in an XML file. Right now I have some crude code but I'm really stumped on how to get data from an exact row and column. I know the number of rows I'll have from the search, but I need to know how to get data
-
- Is this user going to need to use MakeCert or what please?
by John Oliver (UK&am
- 0 Replies
- Last post
by John Oliver (UK&am
- Hi,
Please see.>>
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1095469&SiteID=1&mode=1
As i don't know about certificates, i only found where the tools are. :-)
Regards,
S_DS
-
- add plugin containing user control onto a Window form container?
by hazz
- 2 Replies
- Last post
by hazz
- I am getting the idea of basic mechanisms for launching a plugin from within a winforms host app;
Dim assembly As Assembly = assembly.Load(filename) 'load the dll from a directory objPlugin = objDLL.CreateInstance(Plugin.ClassName) 'instantiate it
Here is the part I don't know how to do. I want to add a somewhat complex user control to a host app's panel as the container. How do I 1.
-
- Serial Port Cannot Enable Nor Start Windows Form Timer
by
- 2 Replies
- Last post
by SJWhiteley
- I have an application which scans a bar code on a serial port, takes the scanned bar code data and uses it to query a Microsoft SQL Server database for customer information and then prints the customer information on the printer port.
I am converting the application from Visual Basic 6 to VB .NET 2.0 (Visual Basic 2005).
I have encountered a strange problem where the DataReceived m
-
- Closing Another Application
by Trekkie_SG9
- 9 Replies
- Last post
by Trekkie_SG9
- How can I make my program exit another program located in the notification area (an icon)
-
- turn off auto save
by Sierra Bronco
- 1 Replies
- Last post
by Josh Stevens - MSFT
- When making changes in the ide source code - I do not want the changes saved until I save them.
How Do I change this. I am using Microsoft Visual Studio 2005.
Ron