|
Thanks for ur help Robert!
|
|
|
|
|
i m making an application in wich i need to send mail
can anyone plz help me
remember there is no namespace "system.web" and there is no class smtpmailmessage in vb.net
plz help
a code will be more helpful
|
|
|
|
|
System.Web.Mail.SmtpMail.Send is what you need. What do you mean there is no System.Web namespace ? Of course there is.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
this i valid namespace in c# but in vb.net there is no namespace with this name.
u can try it out
|
|
|
|
|
You're very mistaken. All you have to do is add a Reference to the System.Web .DLL and the namespace will work. C# has to do the exact same thing. As a matter of fact, ALL the managed languages under .NET have to do this to get access to the System.Web namespace.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
where should i browse that dll?
i need to add refrence but i cant locate that file
|
|
|
|
|
You don't have to locate the file. Just right-click the References folder, then click on Add Reference. When the dialog shows up, it'll list, on the .NET tab, all the .NET components in the GAC. Scroll down the list and you'll find System.Web.dll. Double-click it, then click OK. You can then use the Imports statement to import the namespaces you need.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yeah, I thought you may have forgotten the reference.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Make sure you have the proper DLL referenced in your project or the Import statement will not work.
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
Hi All,
Can someone guide me on how to build a windows application specifically used for batch printing? Please....
besah
|
|
|
|
|
Which bit are you stuck on ? The wizard generates a shell of an application for you, then you need to look up printing support on MSDN, the next step is really to decide where your batches come from, and how to store/edit/run them.
'How do I write this application' is not a valid question, because it's too broad. Tell us which bit you can't do, and what you've done already to try and make it work, and we can point you in the right direction.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanx a lot for your reply.
Actually,I haven't started to build it yet because I have no idea where and how to start to write the codes.Does it requires the same way to write the codes like a standard vb.net program?I am totally blank to write the codes.Therefore, i need a guidance from the beginning... please...
besah
|
|
|
|
|
It's not the worlds most complex program. It has printing support, just like any app that has printing support, but it prints more at a time than most apps. Which would be controlled by a loop.
What issues were you expecting that would make a program whose job is to print a lot of stuff to be fundamentally different from any other app ? ( I'm not being sarcastic, I'm wondering if there's a detail here that you've not explained yet )
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Events wont fire for MeasureItem and DrawItem when attempting to create an owner draw context menu for a notify icon. I even tried to use this article http://msdn.microsoft.com/msdnmag/issues/04/02/CuttingEdge/default.aspx which features a control that is supposed to extend the capabilities of the standard MenuItem class to include customizations on color and Icon and although it works fine for context menus of other controls it just wont work for a NotifyIcon control.
Can someone please confirm if this is indeed a bug and maybe give some info on where this should be reported?
|
|
|
|
|
i want to get all data from that existing Databse and i need create a new XML file,
In my database These are the two field names already in the database
Name
anddress
after creating a XML file i need have a reed and write facility also
how can i do this work using vb.net
thank u all
suis
|
|
|
|
|
Write a stored procedure that returns XML. Then put it in an XML document and use XPath to find nodes you want to delete or edit, and add nodes in the usual way.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Stored procedure doesnt work on the ms access database then how can i do this work !
suis
|
|
|
|
|
Does Access offer XML support at all ? If not, I recommend you use MSDE in future, it's more of a 'real' database.
In that case, you need to select all your data, and iterate through the rows and columns, using an XmlWriter to build the XML document as you go.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
The quick and easy way: Read your data from access into a dataset. Then you should be able to save your dataset as xml.
The not so easy way: Use XmlWriter or XmlDocument. I prefer using XmlDocument, because I can have full control of every element in case you need to make modifications to the data you read.
|
|
|
|
|
If anybody know how to do this .
I have set of images in the folder and i just need show those images
to a perticular form like thumbnail images wise using vb.net.
how can i do this ?
if anybody know help me to solve this problem.
suis
|
|
|
|
|
You can put the images in a picture box, which you can dynamically generate, and get it to show the image stretched ( then it will size it to the thumbnail ). I don't think VB.NET is anywhere near powerful enough for you to read only part of an image to create a thumbnail, nor is that really viable anyhow for jpgs, or other compressed formats. If you get into memory issues ( and you well may ), then you should create smaller images out of the big ones, and use those.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Can u give me some sample code for this ?
suis
|
|
|
|
|
Bitmap bm = Bitmap.FromFile(mypath)
Bitmap thumb = new Bitmap(20, 20, PixelFormat.24bit)
Graphics gr = Graphics.FromBitmap(thumb)
gr.DrawImage(bm, 0, 0, 20, 20)
gr.Dispose()
bm.Dispose()
This is pseudocode, don't copy and paste. I load a bitmap, create a smaller one to hold my thumbnail, create a graphics object that draws to that bitmap, and draw the image scaled onto the graphics object. Then I dispose of the graphics object and the bitmap ( if you were using C#, I'd recommend the 'using' statement, but VB.NET does not offer it ).
This does not take into account issues of aspect ratio, nor does it set a stretch drawing mode to increase quality ( a thumbnail will never be high quality, however ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello coders,
I am trying to seperate one line of vb code into lines by vbcrlf (carriage return - linefeed) or the colon : characther
As you know
Dim i: i=3
statements are exactly the same as
Dim i
i=3
I have the following code to be seperated.
Dim input As String = "Function X(i As String):Dim q As integer=" & vbCrLf & "Dim P as byte"
Normally , If I use the
Dim pattern As String = "[\n|.*:*.]"
pattern
it will be seperated into three lines (as I wanted)
But If I use the following line , it will be into 4 lines (I do not want it to be happened)
Dim input As String = "Function X(i As String):Dim q As integer=""q:p""" & vbCrLf & "Dim P as byte"
I need to modify the pattern, which will not accept colons inside quotes.
How can I do that?
Thank you for you time
Emre YAZICI
Best Regards
Emre YAZICI
|
|
|
|
|
Use a group like this: ("".*:.*"") to match a colon within quotes. Then fit that in so it will find those anywhere, and ignore them.
Christian Graus - Microsoft MVP - C++
|
|
|
|