I am using VB in VS 2008. I am tring to call an external process and redirect the input, and pars the output back to my code.I started with the useal
Dim myProcess As New Process() Dim StringFromProcess As String myProcess.StartInfo.WorkingDirectory = (path & "in")
[code]....
but I will need 4 of them to get to the data and it seem to me its messy coding. Is there a way to get ReadToEnd to work when reading data over TCPIP? Or perhaps a different/better way to read back from my process?
I'm trying to code a program but this error repeatedly shows up and I can't for the life of me figure it out EValue of type 'String' cannot be converted to 'System.Windows.Forms.TextBox'. It appears in relation to this code
I'm developing a TextBox Component that is suited for handling passwords. I was using A string Builder to hold the password But now I discovered the Secure String! It is Perfect for what I want to do except one Problem! How do you get it back to a normal string! I've heard you can convert it to a BSTR and then use windows API to read the memory location and convert that to a string.
I have an app that calls a DLL, and passes a string to it (by reference). The DLL then fills the string and passes it back to the app. Before calling the DLL, the string must be sized correctly to fit the data the DLL is going to pass it. In the past (using VB.NET 2003) I just initialized the string with the correct number of spaces. This always seemed silly to me and I'm wondering if, in VB.NET 2010, there is a way to do this using a number to define the size?
detecting the string between 2 characters, EG " is the starting character anything the user types is the string" is the ending character like this:
" <user text> "
I need it done so it changes the syntax. I am using a RTB to change the syntax.Here is my code.word is the list it needs to be added to, NOT rwrd
Private Sub RichTextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged Dim words As New List(Of String) Dim rwrd As New List(Of String)
I am writing a rather large project using the vb 2010, and customer wants to have the opportunity to change the colors of labels, forms etc.
input of color names to a series of ComboBox'es and the ComboBox.text are stored in a database for later use. But now I am faced with the problem of converting those names back to a color. I have used the following codes which is working - but there have to be a more intelligent way of doing it ?
Private Sub ShowColors() Me.BackColor = SelectColors(rsFormSetUp.Fields("FormBackColor").Value) Label1.ForeColor = SelectColors(rsFormSetUp.Fields("FormTextForeColor").Value)
basically, i want to make windows app with visual basic 2010 with network database but i have no idea how to connect database like im using vb6 with sql server 2000 where i can code sql connection freely with IP address, set database, set username, set password using form that i create and save setting at windows registry for examle:
sqlString = GetSetting("xxxxx", "setting", "connection", "") Set rsAirline = New Recordset If rsAirline.State = 1 Then rsAirline.Close
Public Class Form1 Private Sub but_convert_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles but_convert.Click Dim input_string As String Dim output_string As String Dim fkey_string As String [Code] .....
So, the big thing is that I want to use that code to transform this: if(strcmp(cmd, "/quitjob", true) == 0) { if(IsPlayerConnected(playerid)) { if(GetPVarInt(playerid,"job") > 0) { [Code] ..... The problem is that I get an empty text box when I click the button.
For my ToDo list I need lots of variables to store data in.Each item of the list has 3 strings in it: Activity, start time and end time.To make multiple tasks in my ToDo list I think it's the most usefull if I use this: 'For x = 0 To 1000', so on the launch it will make 1000 variables to store my data in.But for the 3 string for extra info I need something like this:
x.a x.b x.c
Where x is the integer, and a, b and c are the 3 strings. If I try to do this I will need to do 'Dim a, b, c as String', but that way it will not understand x.a x.b and x.c If I do 'Dim x.a, x.b, x.c as String' it gives me an error, because x.a is not a String...
I have written an application that is currently in use at my work. I am wanting to clean up the code and start preparing the application to make it available to other business of the same type. I want the user to be able to set the location of the access database at install. Is there a way to make the connection string a variable that is set by user at setup? Also what is the best installer to use I am currently using one-click.This is my next step as soon as I get the limit number of logins and some sort of licensing scheme.
I've been trying to solve this for couple of days now, I have tried with regex, split command and I have this string: Temp: 21�-9�hum: 45%-100%probable something: 14%-32% characters after numbers are always the same as above same as the text all numbers can go from 0 to 999 I need to get only numbers, so output would be array of (21, 9, 45, 100, 14, 32)
I want to get data from a txt file.Then use line by line in loop.Means loop get a line then execute it then get next line and so on, up to a limit.Now what I have to do?? "For" loop is runs only for integers..
I'm trying to make a string use parenthesis ( "(" and ")" ), but for each one it returns: null (for the parenthesis).How can I get this to work? These are examples of codes I've tried so far:[code]....
And then I tried reading from text files that had those characters. Each one only returned a space.How can I get this to work?
I need to parse a string that consists of fields in quotes, separated by commas. Using Split would work fine, but sometimes one of the fields has a comma in it. ie. "My Company, Inc","USA","12.50","125000"I'm just looking to get the fields into elements in an array. Can someone suggest a way to handle the embedded commas that are sometimes present?
I want to search for a specific string within a text file, however instead of hard coding these string values into the system is there any way I can have them within an external file such as a text file and have these values that are to be searched in there and then pull them from there?
I want to select records from a access table using sql in vb.net 2010 based on what a user types....
My statement is: comm = New OleDbCommand("SELECT * FROM Recipes WHERE RecipeName= '" & TB1.Text & "')", con)
this only selects records where the full word is the only word in the record set. I want to type say "Vodka" in the search box and then it must return all the records where "Vodka" is ANY part of the record name: ie: "vodka" or "Vodka" (any case letter) or "Blue Vodka" etc.
I have something like this below. The String coming in is "Hello My Name is John || John Smith"When i split, i see the full string coming in fine, i see My_Split(0) is set correctly, but i cant seem to get anything after the ||
This is my first post Im currently a student so my coding is, well, you'll see:The question states that an app has to display a rectangle using a fixed character. The sides sizes will be determined by two texboxes.
In javascript I know you can put for instance if date= "2010"* which would do the if for the string if it starts with 2010 but it doesn't matter what comes after that.