|
Hi,
Have a treeview control and can change the selected node to a (system installed truetype) font like this
trvFonts.SelectedNode.NodeFont = New System.Drawing.Font("Times", ntNodeFontSize)
'FOLLOWING REQUIRED FOR BUG (LARGER TEXT IN NODE WILL CROP WITHOUT THIS)
trvFonts.SelectedNode.Text &= String.Empty
Is there any way (anyone know of a way) that i can use a postcript font (pfb/pfm) from a file (not installed), or even an installed postcript font to use in my treeview or any windows forms control?
Thanks for anyhelp with this
Regards
|
|
|
|
|
Maybe this discussion[^] will help. The link[^] in that article looks good, but it's not .Net.
|
|
|
|
|
Hi
I wanaa use AxShockwaveFlashObjects to show flash file in my project but it give error that:
<br />
Failed to import the ActiveX control. Please ensure it is properly registered<br />
Can anybody give any suggestion 4 this
Looking fwd 4 ur response
Thanks
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
|
|
|
|
|
Make sure you have registered the control with regsvr32, I guess.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hii
I want to excel column format to time. and time format contains the Mili Seconds Also like
10:10:10:59
There is 10 Hrs 10 Min 10 Sec 59 Mili Seconds.
How i Set Apply this format.
Please suggest.
Thanx
~Khatri Mitesh
|
|
|
|
|
In my application I need to know the public IP Address of my machine which I will get after connecting to the internet. Is it possible to know using VB.Net code?
|
|
|
|
|
use System.Net.Dns class
try Googling.
Hope above link helps you
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hi,
AFAIK you can't get the public IP address programmatically without the help of some web site.
Here is one for you: http://www.perceler.com/tools1.php[^]
You could use the HttpWebRequest class and GetResponse() method to access such page programmatically.
|
|
|
|
|
Hello every one...
I want to know the difference between
timer.enable=true & timer.start
timer.enable=false & timer.stop
I have two different timers on a form one fires at every 5 sec (timer1) and other every 20 sec (timer2)...
I want the timer2 to be pause when timer1 is fired and continue after the codes in timer1 execute are over
Timer1_Tick
(
'Pause tumer2
----
----
Some codes
'Continue timer2
)
how can i do that
Regards
Nishkarsh
|
|
|
|
|
Both are same thing
timer.start raising the Elapsed event by setting Enabled to True.
while timer.stop raising the Elapsed event by setting Enabled to False.
for more details see MSDN[^]
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hai.I want to know how to handle printing when the text exceeds one page.
I am Using Draw String Method .
Single Page Printing is not a Problem.But when it exceeds a Page what is the best way to Display the Remaining text in the Next Page?
|
|
|
|
|
Make an area (such as a rectangle) on the page, then use MeasureString[^] to determine how many characters will fit in that area. Next, print that many characters, and save the remaining characters for the the next page. You can put that into a loop, each time making a new page, until all characters have been printed.
|
|
|
|
|
You check for a condition that says that you need a new page, then use HasMorePages = True to tell your program that there is more to be printed.
For i As Integer = curLine to LinesREQ
Do While (pageLine <= linesPerPage) And (CurRow <= LinesREQ)
' Printing logic here
If pageLine > linesPerPage Then
e.HasMorePages = True
Exit For
Else
e.HasMorePages = Flasle
End If
Loop
Next
I don't speak Idiot - please talk slowly and clearly
|
|
|
|
|
Hello all,
i want to create a websetup project form my vb.net Project that one was created in windows application, when i using websetup project for this it will create a setup file. when i install those on my system. it wont reflect Any thing. I dont know why?
Am very frustrated and i am not getting any solution of this problem,
Please tell me how to create a websetup file and how to install that to server, if installed successfully, where can i get the out put? wht can i do in the wwwroot folder? Please Please Please help me.........
|
|
|
|
|
"i want to create a websetup project form my vb.net Project that one was created in windows application"
How does the Windows app come into play here ? I don't understand, does a windows app create your website ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
hello i am doing work in vb.net2.0 at web form
i am facing the problem when i am converting my Sqltable into excel table.following error displayed.
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.
i am very frustrated and i am not getting any solution of this problem
it is very urgent to me
Anybody can help me?
|
|
|
|
|
It means that you have a security issue. This[^] is how I'd look for a solution.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
iamneeraj wrote: it is very urgent to me
Well, your urgency isn't my urgency or anyone else's around here. It is considered rude to place that particular phrase in your post. It shows a certain degree of disrespect to other individual's time/patience.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Ok, well now that i know how to show the desktop, something else i need the program i am making to do is shutdown, restart, hibernate, and most importantly standby the computer. I know there is a shutdown.exe in the windows directory, and i was wondering if that could do it (if it can, i don't know what commands to pass to it). Also, if your really smart, it would be nice if i could know how to shut down the computer and have it restart after x amout of time (i have seen that done with a 50-second interval, and i don't know if it can be done with variable amounts of time).
|
|
|
|
|
Hi,
do you remember those good old days where /? gave help information on DOS commands?
It still works for shutdown.exe, so most of your needs have an easy solution based
on Process.Start(). The restart-with-delay does not seem to be in the list of options tho.
|
|
|
|
|
|
Thanks, and that helps a lot, but neither of those methods have a function to hibernate or put the comp into standby. Is there any way i can do that?
|
|
|
|
|
|
Hiya,
Its nothing important but I just wondered what the difference between this:
TextBox1.Text = ("Hello, World!")
and this is:
TextBox1.[Text] = "Hello, World!"
Thanks, Lloyd
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".
|
|
|
|
|
Absolutely no difference whatsoever.
|
|
|
|