Put Texts Between Prackets In An Array?
Jan 6, 2011how cam i put the texts between the prackets in an arry for example
[Code]...
i need a code to create an arry with the following items
[Code]...
how cam i put the texts between the prackets in an arry for example
[Code]...
i need a code to create an arry with the following items
[Code]...
I tried to get the value text at the end of the field id equal text on the webpage at each line. I only want to get the two value text at each line which something is like this: 111.11.11.11:4000. I want to input them in the messagebox but when I clicked on the button, it displayed as "fieldid=fieldid2=". I am trying to make the project to check and get it response as like this 111.11.11.11:4000 but it got it wrong. The reason why I want to get do this is because when I get the value text with the full ip address and the open port to input the strings text on the messagebox, I can start the next method by writing the code to make the project connecting to the sever with an open port.
Here it the code:
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' used to build entire input
[Code].....
I'm new to VB.net programming on printing a page to a thermal printer (Epson T88IV). I really had a hard time figuring out how to code the printing of a bitmap image and some text, while sending commands (through font control) to the printer.I tried sending the escape characters with Control font, but the Graphics.DrawString of PrintPageEventArgs do not allow it.. so I used the RawPrinterHelper class I found on Microsoft KB. It worked out but, I cannot print a bitmap image with it.Anybody knows how to do that?
View 9 RepliesI heared about an encrypting function that encrypt the texts with a password I don't know exactly how it
View 6 Repliesi'm trying to get a label to have 2 colors.ex. of label text: now editing: (written as the set color) trujade.html (in a new font color) that way, if i'm editing, let's say a css file, and i have have the .css file extension in a different color format from the .html extension, i can easily notice if i'm editing a html or a css file just by looking at the file name color.
View 3 RepliesI am creating an application for a point of sale in a bar in which I have a form (frmTransactions) where there are some radio buttons to be selected (main groupbox), each radio button is exclusive, and some combo boxes in the second groupbox to be ticked, which are instead not exclusive.In this form I created a 'Print Invoice' button which opens the form invoice (frmInvoice) and there are some labels that display the text shown on the transactions form; although I managed to do fairly easily the part regarding the customers details I am now finding some difficulties with the part regarding the transactions selected.[code]...
View 7 RepliesI have 2 textboxes where the user enters texts of same length. I need to do a char by char comparison. For this, i used Chars(i). Now, i have been trying to highlight the differences at the string index which is different. I am not able to figure a way out for that.
for example:
string1 = HELLO
string2 = WELLM
When the user hits Compare button, the code should highlight H and W, and also O and M maybe in the same respective textboxes or 2 different labels etc.
I've created a software with 50 textbox and 4 lists how can I do "Save As" "Open" to restore or save them ?
View 1 RepliesI have a panel on a form in which I have two labels and a small picturebox. The label texts and image in the picturebox are changed from time to time program matically. I would like to have where a user can click anywhere in the panel to bring up another form, but I have not been able to make it work. Since the labels are I guess "above" the panel, if the user clicks on the label itself, it does not trigger the panel onclick event.
View 2 Repliesis it possible to save 4 strings from 4 textboxes into 4 variables and give them a name so when i will click the button it will save them as one name in a listbox and when a user clicks the item from listbox it will show the 4 strings that i have saved?
View 7 Replieshow to add the texts, and items in TextBox and ComboBox to Datagridview without use any database.
Example: i have TextBox1 and ComboBox1. i want to add the texts and items to datagridview, first Col1.ID, Col2.Word, and Col3.Soluton.
For ComboBox1 use to add the items to Col2 and Col3 will be added by TextBox1.
My objects contain curves and texts. I draw the objects with something like this[cod]e...
View 7 RepliesI am developing a project in VB2010 Express ,I want to high light the spoken text ,but i can speaking can not to high light the text?
Private Sub Voice_AudioLevel(ByVal StreamNumber As Long, _
ByVal StreamPosition As Object, _
ByVal AudioLevel As Long)
[code]....
I create a program whose functionality would be selecting a file, then gets the contents of that file (Word or text files). The program, of course, has a Richtextbox on it where the file content will be filled to.
View 4 Replieshow can i save some texts from textboxes into a word in a listbox so when i will reopen the program i will continue having the save?
View 4 RepliesI have an application I am creating that displays pump information based on customers in a database. I am using VB2008 .NET3.5.I have a combobox that has a selection for a unit of measure. What I want to happen is when that is changes the labels that have a unit of measure change to reflect the change. There are 15 labels total that need to be changed and all there names are the only ones in the project that start with a X if that helps at all. I would like to avoid creating a bunch of labels and changing the visible property and just change the text value of each one.
View 1 RepliesI'm looking for a way to mirror text (like how Stack Overflow provides a preview of the text being entered, as it's being typed). I also need to be able to modify the texts output environment (whether it be a textbox/messagebox/etc.) for background/text color (selected from a dropdown menu). Suggestions on the best way to go about this? FYI I'm using Visual Web Developer 2008 Express and it's an aspx page.
View 1 RepliesI have a parse from Wikipedia saved in a text file in the following form: The town itself is situated to the south-east of the rock, and overlooks the Palaia Monemvasia bay. A small hamlet with about 10 houses lies to the northwest.The founding of the town and fortress of Monemvassia most probably occurred in the 6th century AD. The town was founded in 583 by people seeking refuge from the [[Slavic peoples|Slavic]] and the [[Eurasian Avars|Avaric]] invasion of Greece. From the 10th century AD, the town developed into an important trade and maritime centre. The fortress withstood the [[Arab]] and [[Normans|Norman]] invasions and conquests in 1147. Cornfields that fed up to 30 men were grown inside the fortress.What I need to do is to extract specific texts from the parse given the header names. For example, if I type in a textbot Geography I need ONLY the geography text returned.
View 8 RepliesWhat data type could I use in my access database that can hold very long texts. By default, each cell in Access tables can only contain up to 255 characters. Is there any way to extend this to any length I want?
View 4 RepliesI want to make 2 radio button.. I want a radio (when checked) show contents in a combo box, each radio button should show different contents when checked.for example: My project is to create a payment form for books when reference (as a radio button) is checked then i want it to show the following book titles in a combo box: "vb guide 2010" , "PHP for Dummies" etc and show the price in a separate text box when clicked when fiction (as a radio button) is checked then i want it to show the following book titles in a combo box: "harry potter" , "spiderman" etc and show the price for these titles in a separate text box when clicked.
View 10 RepliesHow do I search for the words with the same font size (e.g. 15) in a rich text box and put the words into a list box? For example, consider a dictionary whose word entries are of size 15 and the rests are of 12. So how do I put all word entries into a list box and then the description (of size 12) in another list box. I am using visual basic 2010. I've tried regex but couldn't find a way of specifying the font size.Consider the bold letters of size 15 and the rests of 12.[code](physics) hypothetical truly fundamental particle in mesons and baryons; there are supposed to be six flavors of quarks (and their antiquarks), which come in pairs; each has an electric charge of +2/3 or -1/3
View 2 Repliesi have two texts boxes where the user can enter pay per hour and expected raise % per year.when the calculate button is clicked it calculates yearly base on a 40 hour and 52 week base. the raise increases each amount after the first year and does it for the next ten years. yearly amount is displayed for the next ten years.
View 3 RepliesI'm having issues with e.HasMorePages.. I've written a function that will plot long texts onto the printer and should insert a new page everytime yPos > PrintHeight
e.g.
Module Scope var i is the count
PrintPage
if i<=10
[CODE]...
I can certainly add pages from the printpage, but my function will plot characters individually onto the printer and will increase ypos at the end of the printers width.
It seems that on clicking datagridview column header, the column will be automatically sorted based on the column type. I have a column showing some numbers. If column type is string, it sorts "1","20","3" into "1","20","3". If column type is double, it sorts into "1","3","20" which is the result that I want. However, there might be some erros in the numbers and error messages(text) will show in the cell instead of numbers. So I cannot set the column type as double. I want to ignore these error messages and sort all the numbers. How can I do this?
Also, I need to add some background colors to different rows in datagridview. So in the column header click event, I call the bkgColor Sub to achieve this. My question is that how can I override the sorting method in this event?
Private Sub DataGridView1_ColumnHeaderMouseClick(sender As Object, e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.ColumnHeaderMouseClick
Try
[code]....
I made project using VB.Net 2005 with multi languages, the first form is MDIParent form with MainMenu and toolbars also there is some changes in properties as righttoleft and text of forms.In my Mainmenu (Menustrip) there is opetion to change the UI Culture and I have already done but I need to change all texts in the form as mainmenu items anf form properties.My quetion is: how can I reload my form again to read the new texts names and mainmenu items names from resx file?
View 8 RepliesI want a function like Calculate(strText as text) as double
& when i write Calculate("4+3-2*7/16")
& thank u again 4 paying attention & thanks 4 these who wanted 2 help but they couldn't too
I have an array of people stored in a custom structure array... how can i copy this array to a temp array so that the temp array has all the same values as the original custom array?
View 4 RepliesHow would I create a "Save File". I am creating a launcher and need it to save the programs and different texts i have on the program to a save file. One side question: How do I do Links in VS?...HyperLinks that is.
View 9 RepliesI am trying to create the following program Store in a 1d array a set of 5 place names and in a 2d array the distances between the places. Ensure that the order of the places is the same in both arrays. When the names are places are input the distance between them is displayed. If they are not both in the table a suitable message is displayed
Dim town(1 To 5) As String
Dim Dist(1 To 5, 1 To 5) As Integer
Dim First As Integer
[CODE]......................
I think the best way forward is pass a parameter to the function findnumber.
I've come up with the following and it's partly working.
Public serial1, serial2, serial3, serial4, serial5 As SerialPort
Public serialports() As Object = New Object() {serial1, serial2, serial3, serial4, serial5}
dComPort = "COM4"[code]....
The above code works fine! But im having trouble trying to now retreive whats stored in the array.In the above example, an entry will be stored in serialports(4), all other array elements will be blank.If I do this it works.
MsgBox(serialports(4).PortName) ' this retuns the value COM4
But I'd like to loop though all array elements and print out ALL the PortNames, The below code doesnt work, I get an error Object variable or With block variable not set.
For i = 0 To serialports.Length - 1
MsgBox(serialports(i).portname)
Next