|
The first reply was close...but no cigar. VB equivalents regarding events can be tricky. You'll need (especially note the hidden "MyItemClickedEvent" variable):
Private Sub MenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem.Click
Dim item As MenuItem
If Not MyItemClickedEvent Is Nothing Then
Dim filename As String
filename = _itemMap(item).ToString()
RaiseEvent MyItemClicked(Me, New MyItemClickedEventArgs(filename))
End If
End Sub
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter, VB to C++ converter
Clear VB: Cleans up VB.NET code
C# Code Metrics: Quick metrics for C#
|
|
|
|
|
Thanks for your responses.
This now makes sense to me, it was just a syntax issue.
Cheers
Tim
|
|
|
|
|
David,
On further examination of your response, does the following (second line of original code) assign a value to item?
MenuItem item = (MenuItem)sender;
If so, this assignment is missing from your response. After the = is what I am struggling with.
Cheers
Tim
|
|
|
|
|
D'oh!
I started with Farshad's response and I just modified it.
You should definitely have:
Dim item As MenuItem = CType(sender, MenuItem)
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter, VB to C++ converter
Clear VB: Cleans up VB.NET code
C# Code Metrics: Quick metrics for C#
|
|
|
|
|
NOW I get it
Thanks David
|
|
|
|
|
Hi all,
in Visual Studio 2003, we get used to use the "Build comment Web Page" feature to create web page
of the classes with descriptions by xml info.
Do you know how to do that in Visual Studio 2005 ?
Thank you so much...
Have a good day.
'Alper
|
|
|
|
|
That was actually removed from the product and doesn't exist in 2005. It's amazing to me really, I'd think that Microsoft would be all over competing with javadoc. You can still create the XML file by checking an option to do so in the build configuration, but there's no way to generate the HTML.
There are a few options, though. I work for SlickEdit and one of the features we offer does just what you're looking for, check out the product showcase link for more info. There's also NDoc which is open source and very popular. There's another product, too, called VS Docman. Each one does things a little differently, so I suggest looking at each one to see what suits you best.
I don't know if you had seen what VS 2003 spit out when you actually created the web pages, but it was pretty ugly. That's probably the main reason they dropped it.
|
|
|
|
|
Thank you
Too bad to learn that...
|
|
|
|
|
This CP article[^] may help you.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
hi all ,
i wanna ask about creating windows service and let this windows service activate with my GUI , so any help will be usefull for me
:-> regards
abdallah zaid
|
|
|
|
|
Search "windows service" in this site and you will get tons of articles. Start from there.
Post specific questions if you need help in specific areas. Good luck.
Best,
Jun
|
|
|
|
|
Hi,
how do i capture incomming files with the webBrowser-Control? I'm looking for a way to process zip-files right after download...
Greetings
Jobe
|
|
|
|
|
hi,
i am using a panel control in that i have a richtextbox control
in my form_resize i have lines something like
panel1.width=this.width-(actual form size)+(actual panel width)
richtextbox1.width=panelwidth-10;
when i am increase the size of the form its ok,but when i am decreasing the form size (i.e not less than actual size) panel displaying scrollbars after i stop resize there are no scrollbars thats fine but eventhough due to the sequence of statements execution in the event those scrollbars are visible while resizing So please help me to not show those scrollbars in the panel while resizing
thank u.
|
|
|
|
|
instead of manually changing the size of the controls on the resize event. change the dock property, this should update the position of the controls automatically.
setting the AutoScroll proterty to false may also help.
|
|
|
|
|
thanks thats working but at some rare times thats partially visible cant i avoid even that also.
|
|
|
|
|
Hi, guys! I have such not normal question - can I open DateTimePicker programmaticaly? If yes, in what way can I do this?
Thank's!
|
|
|
|
|
I put the control on the form and in the initialize/on_load method I set this.datetimepicker.visible=false. The control cannot be used until I programatically write this.datetimepicker.visible=true .
Glen Harvy
|
|
|
|
|
Actually you don't understand my question. Maybe I formulate my question wrongly...
So I do what I want in such way:
dateTimePicker.Focus();
SendKeys.Send("{F4}");
|
|
|
|
|
i want to stop the event(form_resize) raising when the user resize the form less than its atual size.
thnx.
|
|
|
|
|
Try to write in the event handler something like that
e.Hadled = true;
|
|
|
|
|
You can set the MinSize of the form to stop it being resized to smaller than your set size.
|
|
|
|
|
|
You could have saved yourself (and us) some time by reading the same response to your earlier posting asking the same question.
only two letters away from being an asset
|
|
|
|
|
i am sorry for posting again the same question, actually i did that because i saw the reply to thread of somebody who posted later me so i posted the same thread again but after posting the thread i saw that i got the reply sorry for the inconvinence.
|
|
|
|
|
hi;
i am trying to delete rows from my database but the wizard doesnt create the delete statement so im left with an error, it does create the update statement
anybody had these prob befor?
grz
|
|
|
|