Calculate The Texts Like "2+3-4*5"

Jan 6, 2011

I 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

View 1 Replies


ADVERTISEMENT

Date Method - Calculate The Number Of Years For My Calculate Age Event Handler

Mar 30, 2009

I am trying to calculate the number of years for my calculate age event handler, however i am apparently missing a method or whatnot because im trying to calculate the age , can anyone suggest help on this. I need to subtract years to get my age but when i try the birthdate.Subtract (currentDate) method i get an error about not able to convert from LONG?

So below is what I have.

Private Sub btnCalculateAge_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculateAge.Click
Dim currentDate As Date
Dim BirthDate As Date
Dim Age As Long

[CODE]

View 7 Replies

Get The Value Texts From The Webpage?

Sep 27, 2009

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].....

View 1 Replies

.net Printing With Both Texts And Images?

Dec 7, 2007

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 Replies

Encrypting Texts With Password?

Feb 26, 2012

I heared about an encrypting function that encrypt the texts with a password I don't know exactly how it

View 6 Replies

Get A Label To Have 2 Colored Texts?

Apr 29, 2009

i'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 Replies

Put Texts Between Prackets In An Array?

Jan 6, 2011

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]...

View 6 Replies

Cannot Transfer Multiple Texts On Same Label

Apr 28, 2011

I 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 Replies

Compare Two Texts And Highlight Differences?

Jan 26, 2010

I 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.

View 1 Replies

Forms :: How To Save Texts And Lists

Mar 27, 2011

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 Replies

Label Texts And Image In The Picturebox ?

May 4, 2011

I 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 Replies

VS 2008 Saving Texts To Listbox?

Jul 23, 2009

is 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 Replies

Add Texts And Items From TextBox And ComboBox To Datagridvied?

Feb 14, 2012

how 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.

View 2 Replies

Avoid Transforming Texts With Graphics.DrawString?

Dec 10, 2010

My objects contain curves and texts. I draw the objects with something like this[cod]e...

View 7 Replies

Highlight Spoken Texts In A Textbox (VB 2010)?

Jun 2, 2011

I 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]....

View 2 Replies

Retrieve Texts From Word Or Text Documents?

Nov 15, 2011

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 Replies

Save Some Texts From Textboxes Into A Word In A Listbox?

Mar 11, 2010

how 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 Replies

VS 2008 Changing A Group Of Label Texts?

May 29, 2012

I 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 Replies

Asp.net - Text Preview - Modify The Texts Output Environment

Oct 6, 2009

I'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 Replies

Extract Specific Texts From Parse Given Header Names

Feb 6, 2010

I 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 Replies

VB 2008 - Access Data Type For Very Long Texts?

Jun 12, 2011

What 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 Replies

VS 2008 - Display Texts When A Radio Button Is Checked?

Jun 13, 2010

I 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 Replies

How To Search For Texts With A Specific Font Size In Rich Text Box

Dec 24, 2010

How 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 Replies

Two Texts Boxes Where User Can Enter Pay Per Hour And Expected Raise % Per Year

Jan 25, 2011

i 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 Replies

E.HasMorePages - Written A Function That Will Plot Long Texts Onto Printer And Should Insert A New Page Everytime

Apr 30, 2011

I'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.

View 10 Replies

Datagridview - Sort Datagrid View Column With Numbers And Texts On Column Header Click?

Feb 13, 2012

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]....

View 1 Replies

Reload Form Again To Read New Texts Names And Mainmenu Items Names From Resx File?

Nov 9, 2005

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 Replies

VS 2010 - Create A "Save File" And Save The Programs And Different Texts?

Jun 29, 2010

How 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 Replies

Calculate Age In .net?

Nov 3, 2010

when i enter the date of birth using the datetimepicker box it automatically compute the age and output in a textbox.text?

View 2 Replies

How To Calculate With Mod

Nov 24, 2009

I have the following code, the answer should be 2 though I am getting 3 everytime

[Code]...

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved