|
Hi,
Any thing has been avail in MSDN website. Goto there!!!
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconcuttingcopyingpasting.asp
bye by
Somasundar R
|
|
|
|
|
just anybody know that how to store a .GIF images to a ms access database ?
suis
|
|
|
|
|
You can serialise an image in any format ( jpg, raw, gif, etc ), and get it as a stream of bytes. You can get that stream from your DB and use it to rebuild the GIF.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I need help with the arrays and this is what i have done.
First i need to declare and initialize a procedure-level-one array named decRates that has five elements: 6.5,8.3,4,2,10.5.
Dim decRate() As Decimal= {6.5,8.3,4,2,10.5}
Dim decElement As Decimal
Now i need to display the arrays in the lblRate using For.. Next and also Do Loop
For Each decElement In decRate
Me.lblRate.Text= Me.lblRate.Text & decElement & ControlChars.NewLine
Next decElement
Can someone help me with the Do... Loop statement?
How do i also calculate the average of the numbers?
I hope that someone can help me!
|
|
|
|
|
Sounds like homework to me. At least you already started.
I think DoLoop is inadequate here. Nevertheless it could look like this:
Dim i As Integer
Do
Me.lblRate.Text = Me.lblRate.Text & decRate(i) & ControlChars.NewLine
i = i + 1
If i > decRate.Length - 1 Then
Exit Do
End If
Loop
To calculate the average just sum up all numbers and divide through the number of elements:
Dim sum As Decimal = 0
For Each decElement In decRate
sum = sum + decElement
Next decElement
Me.lblAverage.Text = sum / decRate.Length
|
|
|
|
|
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
|
|
|
|