|
hai friends
i m displaying a message in a message box
like this ...
Message.Show(message)
the message contains mutiline text .....
but it is displaying in a single line...
i want to display it in line bye line format ....
and with bold format what to do ....
thanks in advance
vijay
devulapally_vijay@yahoo.co.in
|
|
|
|
|
you can do like this .
msgbox.show("hello" & vbcr & " Friends")
you can go to nex line by vbcr or vbcrlf .
en.mahdi
|
|
|
|
|
You can't make it bold, you need to write your own form for that. I assume you're using VB6 ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
I want to find out if VFP driver has been added to odbc drivers in control panel\Administrative Tools\Data Sources (ODBC)
and if it has not been I do that by code in my program .
please help me if you know usefull codes .
thanks in advanced .
|
|
|
|
|
hi
i have form that have many tabs and i want to make the text box and all its content as its without value every time i open the tab it be in initial stat without value
please help
|
|
|
|
|
Do you mean to set a default value, or to get a value based on the tab that is selected ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanks Smithers-Jones answered me
|
|
|
|
|
Use Tabcontrol_SelectedIndexChanged-event and whenever the tab with desired index is shown, reset your textboxes
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
thanks but can i use the fllowing statement or what function i showed use
If TabPage1.Focus() Then
|
|
|
|
|
i'm trying to display progress bar for file conversion of what percentage is completed, but the progress bar wouldn't display for vb.net but works fine for vb6. i'm updating our project from vb6 to vb.net, and i have problem displaying progress bar here is some code snippet.
<ProgressBar1 = New System.Windows.Forms.ProgressBar
ProgressBar1.Minimum = 0
ProgressBar1.Maximum = ItemsCount * 2
ProgressBar1.Value = 0
percentDone.Text = "0% Done"
CurrentComponent.Text = ""
percentDone.Visible = True
CurrentComponent.Visible = True
ProgressBar1.Visible = True
ProgressBar1.Value = ProgressBar1.Value + 1
percentDone.Text = Str(Int(ProgressBar1.Value *100_ ProgressBar1.Maximum)) & "% Done"
>
any help will be appreciated
|
|
|
|
|
It works. It's just that you're using the UI thread to do the file conversion. But, while the thread is busy running the conversion code, that code doesn't give up control of the thread so that the message pump code can run and process all the WM_PAINT messages that are stacking up in the windows message queue.
Move your conversion code to a seperate thread, try the BackgroundWorker class, and you'll be able to update the progressbar without any issues.
|
|
|
|
|
how can i give msge style withe specific fount and background color
|
|
|
|
|
I assume you are referring to the MessageBox dialog. The only way to change its appearance is to create a new form that looks like the MessageBox, just with extra controls to manipulate its appearance.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
How can I change icon of any exe-file (example, "C:\1.exe") on my icon (example, "C:\1.ico")?? I am coding in Visual Basic NET. Please help.
|
|
|
|
|
You're talking about two different situations.
If you want to change the .EXE icon for an app you didn't write, you'll need a resource editing utility to do it.
If you're talking about changing icon in your own application at compile time, then you just need to go into the Project's Properties (Project menu, projectName Properties) and click on the Application tab. There's an Icon dropdown you can click on and select Browse in that list. You'll be able to pick an .ICO file you want with the appropriate icon image. If you want the greatest flexibilty, make sure your .ICO file has icon sizes in 16x16, 32x32, and 48x48, in both 16 and 256 colors.
|
|
|
|
|
I want to change the .EXE icon for an app you didn't writest. and i must do this in Visual Basic. not use utility. How this may be reliaze?
|
|
|
|
|
titan68 wrote: How this may be reliaze?
With great difficulty. I trust you know about the PE executable format??
|
|
|
|
|
hi all,
i write a query which return rows for selected column.In Addition to Table's column ,i also want to return Serial number of each row. let me explain. Assume i write following query
"select Name from table1"
suppose this query return 2 records which value is name1 and name2.Now i want to add s.no. of each row like
1 Name1
2 Name2
so how can i write these type of query ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Serial number?
Are you talking about the Primary Key (ID field) column you have on this table?? You do have a Pimrary key defined on this table, right?
In that case, all you have to do is specify it's column number in the SQL statement:
SELECT MyIdField, Name FROM MyTable WHERE expression
|
|
|
|
|
No sir,
i m not talking about Primary field. I just only want to attach "Serial Number" field with each row returned by query.
in primary key field, it is not essential that all records follow sequence because where clause is attach it
hope you understand my problem.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
I still don't have any clue what you're talking about when you say "Serial Number". Is this is field in the database table already or something the database needs to generate or what??
|
|
|
|
|
Is this is field in the database table already or something the database needs to generate or what??
sir, this is not a database field. I just want to generate serial number for each row returned by query.
let me explain. suppose i write following query
"select Letter from alphabet"
above query return all rows from alphabet table(but with single column). which is ---
Letter
a
b
c
d
.
.
.
z
but i want to result in following form without adding any additional field in database'table
S.No. Letter
1 a
2 b
3 c
4 d
. .
. .
. .
26 z
so how can i write query to generate this type of result
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
You can't do this without another field in the database. You MUST add a Primary key column, probably an autonumber, and that will give you your "serial number" for each row. When you execute a database query, unless you specify otherwise, rows are returned in whatever order the database sees fit at the time. There is no guaranteed order, therefor, any "math" you do to assign a serial number, which is going to end up being another column anyway in the DataTable, can be different for each row the next time you run the query.
|
|
|
|
|
Okay, I know how to zip a file, but is there a way to zip an entire folder?
|
|
|
|
|
It's the same as zipping a file. You just have to zip one file at a time into the same archive.
|
|
|
|