|
Can anyone answer me what code should i use to hibernate the computer. I have searched over the internet for it but i don't found anything about it.
Mohit Namdeo
|
|
|
|
|
Hello,
this is C# version of the code:
[DllImport( "powrprof.dll", EntryPoint="SetSuspendState", CharSet=CharSet.Ansi)]<br />
private static extern int SetSuspendState(int Hibernate, int ForceCritical, int DisableWakeEvent);
you should call it like this:
SetSuspendState(1,0,0);
I found this information here
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
|
|
|
|
|
I need to handle Emails thru my VB code, I know a lil about three techniques thru which I could do so. MAPE , WinSock, CDO
If any one could help me in this regard and also tell me which is the best to use. And also I need to know the link where I could know about the best approach (How to use?)
Thanx
Noshaba Mariam
|
|
|
|
|
Sorry this is a re post...
I am looking for articles and hopefully some sample code to work with the Directory Service in VB.Net. Most info I find is for C# but I am new and having trouble converting C to VB...
Any help would be great....
Thanks
When people make you see red, be thankful your not colour blind.
|
|
|
|
|
It's good that you're finding examples. It sounds like all you need is something to covert C# code to VB.NET. Try this[^]. All you have to is paste the C# code snippet, or whatever into the top box, click Generate, and the VB.NET code will appear in the bottom box.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
What are the functions of PersistenceMode and DesignerSerializationVisibility?
I have checked the msdn but the one line definition is not very helpful. THey are given below.
PersistenceMode: Specifies how an ASP.NET server control property or event is persisted declaratively in an .aspx or .ascx file.
DesignerSerializationVisibility: Specifies the visibility a property has to the design-time serializer.
So in simpler terms, what do they do?
|
|
|
|
|
KaKa` wrote: PersistenceMode
This is usually used as an attribute of an ASP.NET class property that tells the Designer how to write the HTML for that property and it's value.
KaKa` wrote: DesignerSerializationVisibility
This controls the visibility of a class property to the code generator, and if visible to CodeGen, tells it whether to generate code for the entire object, or for a value contained in the object that it's attributing.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a text box and I want it to have only numbers in it. like 3.854 as it is a Currency. What I want is when you press btnCalc, if anyting else but numbers (decimals) are in it it will display a message box saying: You must input a number! How would you do this?
In the end we're all just the same
|
|
|
|
|
Hi Dave!
Better to use Regular Expressions for vallidation.Checkout Regex class with Match and Match Colection etc in documentation of .net.
egular expression for decimals only could be as
dim reg as new regex("[0-9]+\.?[0-9]+")
i hope hint wiil help search more in it
Regards
Abu Sufyan
|
|
|
|
|
Dave...
Instead of waiting for btnCalc time to check for digits and a decimal point in the textbox, you could use a textbox that, with appropriate property settings, allows nothing but numbers and one decimal point. Check out my article on the Extended And Date Textboxes. It's an option you might consider.
George
It's a poor carpenter that blames his hammer
|
|
|
|
|
upload files to your server i.e to your project folder,and list out the files which u updated use datagrid and use down load option in your datagrid
thanks.
|
|
|
|
|
And the question is...?
---
b { font-weight: normal; }
|
|
|
|
|
I realise that this is very elementary, but I have only just started with VB.Net. I allocate text and graphics to tool bar buttons, and in the editor they appear on the buttons. But when I build the solution, the buttons are blank. What am I doing wrong? I am using VB.net 2003.
Chris
|
|
|
|
|
Did you do an EnableVisualStyles in your application??? This is a known bug in the .NET Framework 1.x.
Add this line immediately after the EnableVisualStyles() call:
Application.EnableVisualStyles()
Application.DoEvents()
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the help. No I didn't do an EnableVisualStyles. In the end I just deleted the toolbar and did it again and it works. The code was the same, so I still don't know whats wrong or how to avoid the same problem in the future.
|
|
|
|
|
I want to add my dll files with the .net system dll files. How I could be able to do so. Plz help me ASAP
Thnx.
joshunleashed
|
|
|
|
|
|
I have a problem, I guess many experts out there could help me.
I am doing matrix analysis with Matlab. Could someone tell me how to interface VB with Matlab> What I want is how to display the matrix result in VB form? Then draw the graph of the matrix in VB form.
I hope someone will help. Thanks
dont forget this guy
|
|
|
|
|
As far as I know, Matlab provide a control for VB or other develop tools.
find this in Matlab->help.
|
|
|
|
|
I buy a active X dll for my application,
As my application is a COM Addin application,
which use a msi installer to deploy the project.
How can I include the dll in my application setup?
just like include a VB.NET class librabry dll.
Thank you.
|
|
|
|
|
in which path do you want to insall the dll file?
|
|
|
|
|
i need to print invoice using dot matrix printer using
continuous form paper.
is the hole in the paper that make easier to ripped
by hand came from the paper it self or do i have to
coded something in my program ? i'm using vb.net
please i'm desperately need to know. thank you
|
|
|
|
|
klakero wrote: is the hole in the paper that make easier to ripped by hand came from the paper it self or do i have to coded something in my program
Have you bothered to LOOK at the paper?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 22:01 Sunday 12th March, 2006
|
|
|
|
|
And I thought it was bad enough to try and encourage people to read the documentation.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
That's the problem!! They can't read the docs unless they loko at the paper their printed on!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|