|
I have one menu control in my Main Page and menu has 5 menu items, I have one ASPX page which as one button. Initially 2 menu items in the menu will be disabled. On click of button in the aspx page those disabled menu items should be enabled. But it is not working. Bellow is the code for enabling the menu items.
Protected Sub Sumbit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Sumbit.Click
Dim mnControl As Menu
mnControl = CType(Master.FindControl("Menu1"), Menu)
mnControl.Items(0).ChildItems(4).Enabled = True
mnControl.Items(0).ChildItems(5).Enabled = True
mnControl.Items(0).ChildItems(3).Enabled = True
end sub.
Kalyan
|
|
|
|
|
are you getting an error message?
at first sight I would think you're childitems index just be 2,3,4 but normally you should get an index out of range exception
|
|
|
|
|
Some rethorical questions:
how many ChildItems are there ?
are there just buttons ?
how can you tell what the indices are for the buttons you want ?
|
|
|
|
|
I have some project which was built on VB4.0. But i dont have VB4.0, and i want to migrate to the latest vb5.0 or vb6.0 version.
How can i do it?
Thanks in advance.
Regards,
Kamalasubramanian
Kamal
|
|
|
|
|
The last version of the old VB was VB6, and it's no longer sold or supported by Microsoft. The only place you MIGHT find a copy is on EBay.
I HIGHLY suggest you don't bother with it and get VB.NET instead. You can download the free VB.NET Express Edition from here[^].
There is no way to have an automatic conversion of the code. You'll have to rewrite the project from scratch.
|
|
|
|
|
Thanks for your reply. i have the source in binary format. all other sources which are in ASCII format were migrated to VB6.0. But how to convert the sources (*.frm) which are in binary format to the ASCII format?
Thanks & Regards,
Kamalasubramanian K
|
|
|
|
|
*.frm files are not in a binary format. Well, not in VB6 anyway. If these source files are part of a VB4 project, you simply have no conversion tools available to you. You must rewrite the project from scratch in VB.NET.
|
|
|
|
|
i want to store my client's setting for my application, tell me how & where to store that setting, n how it can easily b retrieved!!!.....
how abt XML? bt i dont know how to use it
(Jameel)
|
|
|
|
|
depends on how many settings you want to store and wich settings
for few settings check out:
the settings on a project (you can set the scope to user)
(is located under the properties of you're project)
if you want to store alot of settings I suggest you use a db
|
|
|
|
|
Thanx Frined . I chose the project->settings.... workd
(Jameel)
|
|
|
|
|
you can also look at serialisation but this is not easy and maybe alot of work depending on what you want to store
It requires you write you're own controls then saves the properties (that you tell it to save) to an xml file
|
|
|
|
|
i have made a software for my own purpose in VB.net.I used SQL Server 2000 in the backend as my database.But i have to configure the Windowapplication1.exe.config file to set the Server,database,username,password whenever i use a different computer.
Can i do it dynamically from my application.
I want know more about .net
|
|
|
|
|
if you want to do it dynamicly you will have to do this before you ever connect to the database
from code you can access the settings as so:
my.settings.'setting name' = ??...??
if you want you're user to input the settings I suggest you make a form that loads first on wich the user gives in the settings , save the settings and go on with you're prog.
to prevent the user having to enter them every time he starts the prog use a boolean you set to true after the settings have ben enterd. then you just check the boolean:
if boolean = false then
frmsettings.show
else
frmmain.show
end if
(something like this)
I suggest that when you alter the settings you enter
my.settings.save
(just to be shure the prog saves the settings)
|
|
|
|
|
Can you please help me to attach my word document to my VB.Net system that I'm currently creating. I need the code so that I can view a word document wen I click a certain button.
Thanks
Mba-lee Keswa Doing 3rd year in D.U.T. Using VB.Net language.
|
|
|
|
|
check out microsoft.office.interop.word
needs the microsoft.office reference (com tab)
|
|
|
|
|
hi Mba-Lee,
To view the word document on click of certain button u need following code
firstly, import the library if u have word 2003 then import microsoft word object library 11.0
or if u have word 2000 then import
microsoft word object library 9.0
then type the following code (code is suppose to be having word2003)
<br />
imports word = microsoft.office.interop.word<br />
<br />
dim objApp as new word.application<br />
dim objDoc as new word.document<br />
<br />
objDoc = objApp.Documents.open("//Path of your word file")<br />
objDoc.visible = true <br />
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hey,thanks for replying you guys , this is the code that I'm using
Dim appWord As New Word.Application
Dim docWord As New Word.Document
docWord = appWord.Document.Open("C:\mydocument.doc")
And to print it:
Dim myProcess As New System.Diagnostics.Process
With myProcess
.StartInfo.FileName = "C:\path\mydocument.doc"
.StartInfo.Verb = "Print"
.Start()
End With
And this is wat I imported
Imports Microsoft.Office.Tools
Imports word = microsoft.office.interop.word
but interop.word gets underlined I think maybe it's the reference I chose which is:Microsoft.Office.tools.common & microsoft.Office.tools.Word
Or maybe there's some software that I need to download? so that I can use .interop?
Mba-lee Keswa Doing 3rd year in D.U.T. Using VB.Net language.
|
|
|
|
|
hey Lee,
as i say earlier use the reference of "Microsoft Word Object Library 9.0" or "Microsoft Word Object Library 11.0" depending upon word 2000 or word 2003 respectively
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Help me .. Convert code Graphics VB.net windows form to web forms:
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
Dim dc As Graphics = e.Graphics()
If (e.ClipRectangle.Top < 132 And e.ClipRectangle.Left < 82) Then
Dim bluePen As Pen = New Pen(Color.Blue, 3)
dc.DrawRectangle(bluePen, 0, 0, 50, 50)
Dim redPen As Pen = New Pen(Color.Red, 2)
dc.DrawEllipse(redPen, 0, 50, 80, 60)
End If
End Sub
I want to mark on a picture, first i need learning Graphic on VB.net web form
Please help me.
(Sorry, my English language knowledge .. moderately.. )
-- modified at 5:28 Thursday 26th July, 2007
No job no love no money nothing i have....
|
|
|
|
|
Now And Forever wrote: Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
I have no idea what you're expecting. There is no such thing as a Paint event in a Web Form. It's impossible to convert this code, AS IS, to web forms equivilent because there is no equivilent event.
What is it you want to do in a web form??
|
|
|
|
|
hello frnds,
i have a folder/Directory which is already shared and it have same access permission and in that directory i have 4 directory they are also shared... My problem is can i give same access permission to the child folders as root folder
Let me clear some points ,
Can i give same access permission to the child folder as having root folder by using VB/VB.Net
please help....
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
You don't have to share the 4 sub folders of the root share you created. Nor do you have to set any permissions on the subfolders. The Share, by default, will show whoever looks in it the contents of the shared folder AND and subfolders. Permissions on the subfolders will also inherit from the parent folder.
You really need to pick up a book on how Windows Networking works...
|
|
|
|
|
Thankx for reply Dave
Dave Kreskowiak wrote: pick up a book on how Windows Networking works
can u give me a link to the books/Topics on how Windows Networking works ????
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
|
I have a form where I load (dynamicly) a few radiobuttons lets say 10 groups of 3
everything works except for the first group
here's what happens and how I load them:
in a for lus I create, set the property's of the radiobuttons and put them on the form (each group of 3 in a groupbox)
in the first group the second radiobutton has to be true so I put hem on true (= parameter in db)
in the second group I do exactly the same
when I load the form the first radiobutton of the first group is put on true (witch is wrong) but in the second group the second radiobutton is put on true (as it should be)
when I debug I can see that for the first group the checkchanged event is triggerd (twice since 1 radiobutton is put on true and the other on false) but nowere in my code do I change the property once it is set. Also for the second (and folowing) group the event is not triggerd.
Any idee on why this happens
side note: this does not happen in c# (it's a converted prog)
any idee would we very appriciated
|
|
|
|