|
Hi Bikash,
We can apply Vb.Net comments in VB.Net in the following manner:
--------------------------------------------------------------------------------------------------
'''This is my method.
'''<remarks>This is remarks section
Sub myMethod()
End Sub
--------------------------------------------------------------------------------------------------
I hope this helps
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
How to link webservice (Server) to connect to PDA (Client)?
any source code? thanks
|
|
|
|
|
The concept is the same as using a webservice from a standard windows application, except that you will have to create a "Pocket PC" project to code the client.
What you have to do is to:
1. Create a Pocket PC Application Project.
2. Add a reference to the webservice you want to use.
3. Take advantage of the functions and routines available through that webservice.
A sample call for the client would be:
Imports Application1.WebService1
Public Class Form1
Private WebService1 As New WebService1.ClassName
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Dim resultAdd As Double = WebService1.AddNumbers(txtNum1.Text, txtNum2.Text)
lblResult.Text = resultAdd
End Sub
End Class
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
I am in the process of writing a Button Bar control. The control inherits from the Windows.Forms.Panel but I only want to allow a Button to be added to control collection.
To achieve this I have written a ButtonCollection Class that inherits from Windows.Forms.Control.ControlCollection and shadowed the necessary method and properties to accept and return Buttons.
To the Button Bar class I have added a read only Property called Buttons that returns the ButtonCollection.
The problem I am currently having, is that when I now add a Button in design mode, using the Button property, I get the error message "'Child' is not a child of this parent"
This error is caused when the Paint event of the control fires :-
Private Sub ButtonBar_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint<br />
Me.Controls.Clear()<br />
For Each oButton As Infragistics.Win.Misc.UltraButton In Buttons.List<br />
Me.Controls.Add(oButton)<br />
Next<br />
End Sub
Any help here, greatly appreciated.
Thanks
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Are you still having trouble?
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
Asalam-O-Alikum!
how to add and modify any string in app.config file using ConfigrationManager
B asharatA li
Internee
METESYS Lahore
Pakistan
|
|
|
|
|
Walaikum-Asalaam!
You can use ConfigrationManager's OpenExeConfiguration Method which returns a Configuration object use this object to manipulate your configuration file. As it is a shared Member you can access it without instantiating the ConfigrationManger Class.
For Example:
Dim Config as System.Configration.Configration = ConfigrationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
Hope it helps !
AliAmjad(MCP)
First make it Run THEN make it Run Fast!
|
|
|
|
|
I have a .png picture that has three button pictures lying side by side. I want to create a custom button that shows the first button when it is created, second on mouse hover and third on mouse press. Could any one help me with the code to do that.
Regards
Max
jn
|
|
|
|
|
Your button just needs to handle the appropriate events and change it's image
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I need to have textBox1 display "Name is Preet" and textBox2 should display backward like "Preet is Name; Can someone help me Please.
|
|
|
|
|
How hard can it be when:
- Strings can be split into an array of substrings
- arrays can be reversed
- an array of strings can be joined to one string.
The three main inventions of men are: the wheel, the internet and documentation.
Well, for this homework you can ignore the wheel.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
The obvious way to do this is to build the string by iterating backwards over the old one, but I'd like to think there's a more elegant solution.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Simple!!! Split the text on space and reverse the array.
|
|
|
|
|
hey guys I am new in programming I am not sure how to even split the text
help me pls
|
|
|
|
|
Sounds like you need to buy a book and work through it, so you know enough to be able to follow our advice.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
try this, might not be 100% correct but will give you the idea.
dim words() as string = textbox1.text.split(" ")<br />
words.reverse<br />
for i as integer = 0 to (words.length - 1)<br />
me.textbox2+= words(i) & " "<br />
next
|
|
|
|
|
Instead of the for, I suggest using the provided function Join:
<br />
dim words() as string = textbox1.text.split(" ")<br />
words.reverse<br />
me.textbox2.text = join(words, " ")<br />
|
|
|
|
|
The same book the OP should read would teach you to use String.Join() instead of a loop
(with a superfluous space).
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
How can i make text appear one letter at a time on a label (ie. like a ghost is typing it) without using a huge LAME code that takes forever. Please phrase your answer as though i know nothing about coding because I tend mess up on lame instructions. Keep in mind I am going to 'ghost write' several dozen words.Example of code I am using now that i hate is below.
<code>Static x As Integer
x = x + 1
If x = 0 Then
Me.Label1.Text = ""
End If
If x = 1 Then
Me.Label1.Text = "H"
End If
If x = 2 Then
Me.Label1.Text = "He"
End If
If x = 3 Then
Me.Label1.Text = "Hel"
End If
If x = 4 Then
Me.Label1.Text = "Hell "
End If
If x = 5 Then
Me.Label1.Text = "Hello"
End If</code>
|
|
|
|
|
The tigg wrote: Please phrase your answer as though i know nothing about coding because I tend mess up on lame instructions
Sounds very much like you're at a level where you should be working through a book before asking questions on the web.
The most obvious way is to use a timer to add each letter, store the string you want to type, and just check every time the length of the text in the label, which will tell you at what index you need to add a character.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Guess what... I don't have a book for coding VB.NET but I do have the internet. So... A example would be nice, gosh. Thank you.
|
|
|
|
|
The tigg wrote: I don't have a book for coding VB.NET
Yep - that would be your core problem. There's a base level which can only be achieved through working through a book, IMO. Until you reach that, you're not going to be able to work out anything that people tell you. I can write up this code in 20 seconds. You can paste it into your app and say 'gosh darn it, I wrote some code'. But, you didn't. if you google the things I told you to do, and you still can't work out how to do them, you're back to needing a book to teach you some fundamentals of coding.
I'm not trying to play games here or to make life hard for you. I'm trying to help you to understand the steps you need to take if you actually want to learn to program.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I really couln't care less about learning. I got time and I got a class for it. It has taken me all day today (11am:almost 8pm) to come up with a code that would take less time to write but I haven't. If you can't spare "20 seconds" out of your life to solve some poor guys problem who worked 10 HOURS on VB.NET 2008 express (not only on that problem but results that came from bordem/ trying to figure out some other stuff) then I..'sigh'never mind.
|
|
|
|
|
The tigg wrote: I really couln't care less about learning.
Then you don't belong here.
The tigg wrote: I got time and I got a class for it.
So you're doing a course and you can't keep up ? How can you be doing a class and not have a book ?
Seriously, if you showed some attempt at trying, if your response was 'I did this with your suggestion but I can't work it out', I'd help in a heartbeat. But if you can't do your homework, and are not interested in advice, just to be given the solution, that's not what this place is about.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
OK... this isn't homework for that class and I am the 2nd in a class of 30.(im in 3rd semester, the highest class that the school offers) I tried what you said RIGHT after you said it but I just couldn't figure it out. I've been working with 3dstudiomax for a while so give me a little break on not being able to remember everything. I am working, have no doubts about that.
|
|
|
|