|
Your code will generate a commanline like this:
mailto:abc@hotmail.com&subject=this is a test subject...
The & sign before "subject" should be a ? instead. All name value pairs after the first should be prefixed with a &. Like this:
mailto:abc@hotmail.com?subject=This is the subject&body=Message body...
Keep in mind that not all email clients support attachments from the command line. Some even have problems just interpreting the line...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
in vb.net ,how to get ascii value of a given character? (asc in vb6)
Regards,
aB
|
|
|
|
|
use ascw function for that
|
|
|
|
|
looking for a way to create generic call center answer phone simple response menu useing voice modem is this possible
|
|
|
|
|
|
jimmysipe wrote:
is this possible
Yes...
jimmysipe wrote:
looking for a way to create generic call center answer phone simple response menu useing voice modem
If you have a TAPI compatible modem, then yes, there are lots of ways.
Unfortunatly, you've asked such a generic question, we really can't answer more then that.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
in c++, there a thing call Crecttrack. which is the tracking tool.Can it be done in vb.net? what is this called in vb.net.thanks
|
|
|
|
|
I'd say you need to write your own.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
The .NET Framework doesn't have an equivelent. You'll have to roll your own.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
First of all, I must say that my english language is very poor ,so excuse my stupid phrases .
The Issue:
Now I had finished my User Control but I want to add a opacity percent property to it, I keep think and think but finally I have nothing , so I am wating for your great help .
Finally, I really feel that I must say that I think this web site is the best.
___________________________________________________
Sometimes when you happy no one see your smile
And sometimes when you sad no one see your tears
|
|
|
|
|
I can't believe this!!!
It must be someone in somewhere know the answer
Please any body... what you want me to do begging you?!
|
|
|
|
|
Add a Public Property to your control, just like any other. You'll also have to set your controls style that says your painting code support transparency. Then you'll have to update your painting code to support it.
In other words, this is something you should have designed into your control from the start. Adding it as an afterthought is a bit more difficult.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I don't think it's that difficult...
Lets say your old painting code looks like this:
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
MyBase.OnPaint(e)
'Painting starts here...
e.Graphics.FillEllipse(Brushes.CadetBlue, Me.ClientRectangle)
'Painting done
End Sub
Then your new paint code can look like this:
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
MyBase.OnPaint(e)
'Graphics of a bitmap to paint on instead of e.Graphics
Dim bmp As New Bitmap(Me.Width, Me.Height, Imaging.PixelFormat.Format32bppPArgb)
Dim g As Graphics = Graphics.FromImage(bmp)
'Painting starts here...
'Use g instead of e.GRaphics
g.FillEllipse(Brushes.CadetBlue, Me.ClientRectangle)
''Painting done
'Get rid of bmp graphics
g.Dispose()
'Assuming that Opacity is a Single from 0 to 1
If Me.Opacity = 1 Then
'Opacity = 100%, so just draw bmp
e.Graphics.DrawImageUnscaled(bmp, 0, 0)
Else 'Opacity less than 100%
'Attributes for the bmp
Dim attrib As New Imaging.ImageAttributes
'ColorMatrix for the transparency of the bmp
Dim colorm As New Imaging.ColorMatrix
'Set the Opacity of the colormatrix
colorm.Matrix33 = Opacity
'Set the colormatrix of the attributes
attrib.SetColorMatrix(colorm)
'Draw the bmp on e.Graphics with the right opacity
e.Graphics.DrawImage(bmp, New Rectangle(0, 0, bmp.Width, bmp.Height), 0, 0, bmp.Width, bmp.Height, GraphicsUnit.Pixel, attrib)
'Get rid of the attributes
attrib.Dispose()
End If
'Get rid of the bitmap
bmp.Dispose
End Sub
Hope this helps
|
|
|
|
|
Doesn't help me, I know this stuff already. You might want to reply to the OP, though.
Hopefully, he doesn't just cut and paste your code and expect it to work! And, yes, I still say this should have been a consideration when the control was designed and not an after thought.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I already added the porperty and set my control style to support transparency, I just want to know how to make the opacity in the painting code and (Absof***inlutely) give me the key so thank you all,
and i am not just cutting and pasting the code
|
|
|
|
|
I'm happy to have helped you,
and i don't mind if you paste the code, do as you want!
But i maybe the code doesn't work (as Dave suggested), i didn't test it ...
For more info, check www.bobpowel.net!
That's a great site (though CP still is better;P)
|
|
|
|
|
Hi to all,
Is there any way to lock desktop after certain ammount of time.Like in xp ,it get automatically log off and ask for login.Just like that cant we make our login screen using winform (vb.net) to log in??
|
|
|
|
|
Why don't you just log the user out ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I want login window under control of vb.net app
|
|
|
|
|
Are you asking how you can disaply your own login form when XP locks the desktop and the user tries to unlock it?
You can't do this without replacing the GINA.DLL. Here...[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for this GINA dll,i will go through it still i ll explain my req once gain..
sir actual requirment is that ,i want develop a vb.net app to just login a computer (let xp os) after certain amount of time i want to hide all desktop and to show my own login window by which user can login .just like app use in cyber cafe to browse net ,like there a login window user can login through it and desktop get locked after logout or after time limit till new user get login.just like this i want to this...!
|
|
|
|
|
You have two options
1. write a GINA dll.
2. write an app that has keyboard and mouse hooks so you can stop those things responding until your app lets them. Seeing as VB.NET can interop with system DLLs, you may even be able to do this in VB.NET instead of C++.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
HAI LAKS HERE ,I HAVE TWO DOUBTS
1.I WANT TO KNOW HOW CAN I GIVE ANIMATION TO THE FORM(FOR EXAMPLE ZOOMING THE LABEL ON FORM LOAD )
2.I WANT TO PLACE 3 TEXTBOXES AND ONE GRID CONTROL ON THE SAME FORM WHILE INSERTING OR UPDATING OR DELETING RECORDS IN/FROM DATABASE, SIMULTANEOUSLY I WANT TO SEE THE RECORDS IN THE GRID CONTROL .I WANT TO WRITE THIS CODING IN A BUTTON(S),PLEASE GIVE ME REPLY HOW CAN I DO THIS
|
|
|
|
|
LAYEEQ AHMED KHAN wrote:
HAI LAKS HERE
what the hell does this mean ?
LAYEEQ AHMED KHAN wrote:
I HAVE TWO DOUBTS
I have one. Why are you SHOUTING ?
LAYEEQ AHMED KHAN wrote:
I WANT TO KNOW HOW CAN I GIVE ANIMATION TO THE FORM(FOR EXAMPLE ZOOMING THE LABEL ON FORM LOAD )
By drawing it yourself.
LAYEEQ AHMED KHAN wrote:
PLEASE GIVE ME REPLY HOW CAN I DO THIS
With code. You're asking someone to completely write a solution that is so simple, if you can't find the way to do it online, or at least give it a go and ask specific questions when you get stuck, you probably should not be programming computers at all ( even in VB ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
LAYEEQ AHMED KHAN wrote:
ZOOMING THE LABEL ON FORM LOAD
YOU CAN DO THAT BY USING LARGE FONT. WHEN THE FORM LOADS, IT WILL SHOW YOU LARGE LABEL.
<italic>Work hard, Work effectively.
|
|
|
|