|
Of course. There is no Name property for a MenuItem . If you can't set one, why would you be looking to read it? You can, however read its Text property.
Doing what you're looking at in your sample code is not good practice. Each menuitem should handle its own Click event.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for ur response.
Actually i want to implement user security. My working is as:
I will make Roles and Role will be given rights to access "MENU" and user will be assign the role.
Now i want to write a code which show all the menus in a grid i want to save the NAME of the MENU in a hidden column which will be saved in the database. Now i have decided to save the Menu Text in database which i know can cause problem becuase if menu text is changed it will have to be changed in database too. As menu item name is not changed so if it is saved it will cuase no problem...
hope u will have got my point if u have any better suggestion will be benificial for me.
Regards
Javed
|
|
|
|
|
as i execute following command to insert a record in VB 6.0
"Insert into login_master values('" & gen_log_id(cmbCompanyName.Text, cmbLoginName.Text) & "' , '" & cmbLoginName.Text & "','" & txtPassword.Text & "','" & cmbLoginLevel.Text & "','" & txtStatus.Text & "','" & cmbCompanyName.Text & "','Admin',GETDATE(),'admin',GETDATE())"
i get a message that "string or binary data would be truncated"
what that means?
|
|
|
|
|
the length of the field u r sending is greater than the length of the field in table e.g. if u send "ABCD" in field "fld varchar(3)" then this error will be shown. Incrase ur field size it will run fine.
Regards
Javed
|
|
|
|
|
Hi Guys! Im trying to use a dll in my Project in VB.NET. But the problem is that when i run the program in debug mode, i get an error saying that the source files of the dll are not present in the path where they were when the dll was created. How do i rectify this error. It asks me for the new path which i have to give everytime i debug my Program. Please tell me how i can change the source file path of the dll to the path where i have the source files. Thanx. Waiting for an Answer Soon. Bye!!
Devraj Raut!!!
|
|
|
|
|
You can't change the source path.
You're problem seems to be that your still developing the .DLL and, compiled it into a Debug version, and in the project you're using it in, you've set a reference to the .DLL file. You should be setting the reference to the .DLL PROJECT instead. Add the .DLL project to the same solution that your consumer project is in. In the consumer project, add a reference to the .DLL project. Now every time you compile the code, the .DLL project will get recompiled, if needed, and the soruce files used in debugging will be handled automatically.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi!! Im sorry to bother you like this but could u plz explain to me the steps in detail coz i need this .dll in my Project and im having trouble doing so. Plz reply back to me what are the steps to follow to avoid my problem. Thanx a Million man!! Take CAre! Cya! Waiting for ur Reply!!
Devraj Raut!!!
|
|
|
|
|
Right-click the Solution line in Solution Explorer and click Add Existing Project.
Find your .DLL project and click OK.
Right-click the References folder of your application, click Add Reference. Click on the Projects tab, then double click your .DLL project.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have the following code....
Try
#### Routine here ####
Catch ex As Exception
If Err.Number = 13 Then
Resume Next
End If
#### others
End Try
For some reason it does not like Resume Next. Why is this the case?
Before I put in the Try/Catch I had a on Error.
|
|
|
|
|
This doesn't work because you trying to combine two different (and totally incompatible) error handling technologies. The ON ERROR GOTO , Err , and Resume... garbage is old stuff from VB6 and beyond. You can't combine it with the new Try/Catch blocks and expect it to work. I highly suggest abandoning the old stuff entirely and just use Try/Catch blocks.
Try
' Code here...
Catch ex As FileNotFoundException
' Code to handle File Not Found errors...
Finally
' Code to clean up the Try block code.
' This section runs no matter what happens
' in the Try and Catch blocks
End Try
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can Youh help
i want to create a project in VB6.0 using RemoteData. because my program is in a computer but the database "in ACCESS" is in another Computer connected to the web. if there is any example it will be very nice;);)
|
|
|
|
|
Dear friends
How can i save the Picture of a imagebox as a file. your quick response will be highly appreciated.
Thankx
Murtuza Patel
|
|
|
|
|
I assume you're talking about VB6.
You need to use the SavePicture[^] function.
SavePicture myImageBox, "MyImage.bmp"
|
|
|
|
|
In a Picturebox for .Net...
<br />
'save file path<br />
Dim Path as String = "C:\SavedImages\Image.bmp"<br />
' Save to file<br />
Picturebox.Image.Save(Path)<br />
Picturebox being the name of your control.
-Jason
|
|
|
|
|
Hi,
I'm trying to serialize/deserialize a class that inherits from arraylist,
my problem is that it has some more public properties but they aren't serialized. the class looks like:
Public Class CR
inherits Arraylist
private _name as string
private _place as string
public property Name as string
...
....
End Class
when I look into the xml file I can see the list of objects but Name and Place properties aren't serialized.
what am I doin' wrong?
thanks in advance!
Fuel2Run
|
|
|
|
|
anybody there can help me?
|
|
|
|
|
|
Hi there.
I am doing a project that is related to Bluetooth technology. I am planning to build a client/Server application for a shopping complex where the Bluetooth integrated mobile phone users will receive a text message through their phone informing them the latest promotion in that certain shopping complex.
I would like to hear your ideas regarding my projects. Is it possible for me to build an application through VB.NET 2005 which would send the text message to the Bluetooth mobile phone? If can how can I do this application? How and where can I start it? Please help me here because I am still new in the programming field.
Thanks a lot.
Tillandran
|
|
|
|
|
Were you to write this system, and it spammed my phone, I would find you and kill you.
tillandran wrote: Please help me here because I am still new in the programming field.
This is far too complex an app for someone 'still new to the programming field', my advice is to walk before you run.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote: Were you to write this system, and it spammed my phone, I would find you and kill you.
Gosh! That is very lenient of you.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
I agree with with Christian! If someone spams my phone like that I'll rip the transmitter right off the wall and smash it!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In my humble opinion, this is a REALLY bad idea! That's the most annoying way to get someones attention. Your technology, if annoying to enough people, could actually drive a store out of business!
I know I can't stand it when someone spams my email. I'd be livid if someone spammed my phone! Ripping the transmitters off their mounts would not be out of the question!
Bluetooth is also a bad choice for this. Networking range is very limited (about 30 feet). How many times an hour are you going to be broadcasting this message? Probably enough to cause people to, at the very least, turn off their phones, I'd bet. There'e also no way you can track which phones got which messages, so you don't keep spamming them.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi All!
We developed a web service using vb.net. And we developed windows clients also to access our web service in vb.net as well.
In Windows Clients, before starting the process, I need to check whether the Client System has internet connection or not irrespective of the system is personal or a network system.
So, can any one help me how to check in the Client System whether it has internet connection or not in all ways.
Thanks and Regards,
LVPrasad Yedla.
|
|
|
|
|
|
Thank u very much Mr.Owner drawn!
Your single line of reply to my post, helped me so much!
I am appreciating your help!
Thank u very much again!
|
|
|
|