|
How do you mean?
When I created the menu in C# - eveything was done automatically.
Also, under the AppDev tutor it was also created automatically. It seems as though VS.NET might be leaving some inportant info behind.
What do you mean by "include menuItems"?
=======================================================================
It takes "me" and two monkeys just to open the box to a light bulb!
|
|
|
|
|
Wow, what do you know... I restarted my computer and all works fine now - I think I need to reinstall my VS.NET 2003
Thanks anyway,
Nick
====================================================================
It takes "me" and two monkeys just to open the box to a light bulb!
|
|
|
|
|
I have developed windows application and it has some crystal report in it, it is working fine on the PC on which i have developed it, but when i install the same application on other PC which has a .Net framework already installed. it shows the error message "keycodev2.dll not found or invalid key code" i have made the setup programm and include all the crystal report files in it but still the error is there. Can you please give me some solusion of these.
Thanks
Kashyap Vakharia
SPR
FIJI ISLAND
|
|
|
|
|
I am creating a component in VB .NET. The component contains a private ArrayList as in the following example:
Private __ItemList As New ArrayList
I need to create a list of the strings contained in this array and expose them in a property drop-down editor in the Properties window when the component is at design-time.
I understand that I can use a custom Type Converter to display a list of strings in a property drop-down, but the values in my SelectedItemConverter class need to come from the main component that exposes the SelectedItemProperty and maintains the __ItemList array list. I am at a loss as to how to get the list of string values into the converter class so it can return the array of strings when the property is accessed.
Here is how far I have gotten:
Private __ItemList As New ArrayList
Dim __SelectedItem As String
|
|
|
|
|
I am having trouble calling the MprAdminConnectionEnum. The call returns a zero error code, but the buffer structure is not complete with data.
Could someone please convert this to a VB.NET Structure.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/ras_connection_0.asp
Information about MprAdminConnectionEnum is at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/mpradminconnectionenum.asp
I would be overly greatful for a working example!
Thankyou to anyone!
MASOSi
|
|
|
|
|
plzz;
I have problem ?
how can send oledbdatareader from function like :
public function sss() as oledbdatareader
...
dim z as oledbdatareaedr=...
return z
end function
and how can i use it in other methods like:
dim x as oledbdatareader=sss()
.......
is this algorithm rigth , or no ?
and if it is wrong plzzz write small code to tech me .
thnks for allllllllll
Think Before Begin
|
|
|
|
|
Your brief example, which I assume omits the implementation details, looks essentially correct.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
as topic, i wan to disable to user from resize the form size.. anyway can do this? anyhelp is appreciated... VB.NET
|
|
|
|
|
1. Change the FormBorderStyle Property of the form to FixedSingle or FixedDialog
2. Override the OnResize method and set the size to be constant.
Free your mind...
|
|
|
|
|
In VB.Net form, under Properties of the form, you should set the Maximize button to "FALSE" and there is a Minimumzise & Maximumsize that you need to supply its values in order to disable the maximize button, e.g form size is 300X300, so set Minimumsize to 300 & maximumsize to 300...
|
|
|
|
|
If you haven't resolved this yet.....
'In the Resize event of your form set the size properties to be constant
Private Sub MDIForm_Resize()
On Error GoTo Handler
With Me
.Height = g_lngHeight + 1425
.Width = g_lngWidth + 180
.Top = 0
End With
Exit Sub
Cliff
|
|
|
|
|
as topic, i wish to create a normal save file function to save a content of a picturebox to jpg or bmp format, and content of a richtextbox as a normal text file.. in the reverse way... can anyone provide also the coding for open file command? load a jpg or bmp file to the picturebox and load a normal text file to richtextfile... any help is greatly appreciated... VB.NET
|
|
|
|
|
Need to unzip some files that were zipped using WinZip in vb.net. Not sure if there is freeware addins out there to do this or if a purchase has to be made. Anyone know ?
|
|
|
|
|
Hi All,
I created a Toolbar in the Main form and it has some buttons like Add,Change,Delete. Let's say there are 2 child forms A & B.
In each form, a public procedure - add_record() - is created.
Now, I'd like to call the child form - add_record() in the button.click() event. But it seems the compiler didn't accept it.
Here's the code in tool bar click event.
Protected Sub toolBar_Click(ByVal sender As Object,
ByVal e As oolBarButtonClickEventArgs)
Select Case tblMain.Buttons.IndexOf(e.Button)
Case 1
Call Me.ActiveMdiChild.add_recod()
End Select
End Sub
I think i'm using a wrong approach with Toolbar.
Would anyone give me some advice.
Many thanks, Wilfred
|
|
|
|
|
Me.ActiveMdiChild returns an instance of type Form . You're getting the error because Form doesn't contain a method called add_Record .
You need to cast the return value of Me.ActiveMdiChild to the type of the child form the contains that method.
CType(Me.ActiveMdiChild, MyMdiChild).add_Record()
Charlie
if(!curlies){ return; }
|
|
|
|
|
I need to know the name of the object.
did you manually type the procedure below because it lacks the handles toolbar1.click assuming the name of the toolbar is toolbar1.
Protected Sub toolBar_Click(ByVal sender As Object, ByVal e As oolBarButtonclickEventArgs) HANDLES toolbar1.click
find another method for this
Select Case tblMain.Buttons.IndexOf(e.Button)
I'm in an internet cafe so ican't test any code
Lastly
if Add_record() is form, then you need to make an instance of it
dim myform as new AdD_record()<br />
myform.show<br />
or if it is a procedure in a form
myform.add_record()
will do assuming myform is an open form.
|
|
|
|
|
This was a build error, so registered event handlers aren't the problem.
|
|
|
|
|
Hi,
Is it possible for a visual basic application to start a vba word macro and have it end without the user noticing? What i want to do is present a user for in visual basic (not VBA) and after they click a button, have a VBA macro run on a document in the background and perform certain operations so the text is different.
also, can you pass the macro value?
thanks
Lep
|
|
|
|
|
I have created a sub procedure named EditState. This is to enable and siable menu items as necessary. Enable or disable text boxes also. I do not know how to do this. Can anybody help.
Thank you,
ibok23
|
|
|
|
|
Use the Enabled property of each control. For example:
TextBox1.Enabled = False
MenuItem2.Enabled = False
MenuItem1.Enabled = True
RageInTheMachine9532
|
|
|
|
|
Do I do an if then statement? For example
If MenuItem7.enable = true then
MenuItem5.enable = false
MenuItem6.enable = false
MenuItem10.enable = false
Else If MenuItem5.enable = true then
MenuItem6.enable = false
so on and so on..
Thank you,
ibok23
|
|
|
|
|
Usually not. It all depends on what your doing and your design. You usually don't enable or disable menu items unless some kind of mode has changed in your program, like when Visual Studio goes from editing code to debugging.
For instance, if you have two buttons on a form, Start and Stop, you would normally start the app with the Start button enabled and the Stop button disabled. When you click Start:
Private Sub btnStart_Click(...)
btnStart.Enabled = False
btnStop.Enabled = True
... start some process ...
End Sub
and in the click event of the Stop button:
Private Sub btnStop_Click(...)
btnStop.Enabled = False
btnStart.Enabled = True
... stop whatever process you started...
End Sub
But, you usually NEVER change the enabled status of controls based on the enabled status of another.
RageInTheMachine9532
|
|
|
|
|
ok,
I have on top file,edit,and Navigate. Under file is exit, under edit are add, edit, update, cancel update and delete. Under Navigate are first, next, previous and last. The instructions are Create the code for the Add, edit, update, cancel, and delete menu items, create a sub procedure name EditState to enable and disable menu items as necessary. Enable or disable the text boxes also.
so far I have in the code under the sub of add is
Call EditState (cblnNotEditing)
Me.BindingContext (DsParts1, "tblparts").addNew()
I have nothing underneath the editState, I am not sure what to put there. I found this in my book telling me this is what I am suppose to type. I have an error under (cblnNotEditing). I am not sure what this cblnNotEditing means. I am just putting what the book is telling me.
Thank you,
ibok23
|
|
|
|
|
You're asking me? You have the book! 8)
What's this program supposed to do? A text editor like notepad?
And what's with the BindingContext? DataBindings sound like they are a few levels above you right now... What book is this?
As for what cblnNotEditing is, I couldn't tell you. Just the name of the variable/class/object/whatever isn't enough to tell you what's going on.
RageInTheMachine9532
|
|
|
|
|
I'm creating an instance of MSWord in my app (VB 6, Win98, Office 2000) & use CreateObject rather than GetObject so my app's instance won't interfere with any other instance of Word the user might be running independently of my app & vice versa. (My app creates Word and sets it to .Visible = False; I want it to run in background.) The users also tend to launch & exit Word frequently, for whatever reason.
Is there any way to create an instance of Word that, once created by my app, will not let allow another instance of Word get 'attached' to it? (i.e., , not allow another app to use GetObject on my app.) For ex., Word is not running on user's machine; my app is launched & at some point my app creates an instance of Word; while that is running, the user decides to independently open a Word doc; this makes all docs used by that instance visible (including my app's), & worse, if user then exits my app, this single instance of Word remains in an almost unusable state. Ideally, I'd like to create an instance of Word & leave it running for the life of my app, rather than creating, and later destroying, it each time it's needed.
Just a little new to this! Thanks in advance. Mike R
|
|
|
|