|
just a guess but you might want to try removing the
../
from the start of your src attributes..
... and I presume the < and > tags surrounding your code are just accidents...
Otherwise I have no idea.
|
|
|
|
|
hi
how can i find in the code if another form is open or not??
Regards
Nishkarsh
|
|
|
|
|
What do you mean by form ? Form defined in your app ? Another app altogether ? A specific form in another app altogether ?
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 )
|
|
|
|
|
Hi...
by form i mean another form in the same application...(not MDI)
My application hase more then one form which i keep on hiding and showing...
|
|
|
|
|
Hi,
if you hide and show forms, you must have a reference to it, so look at myForm.Visible
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
i want a code for smart card in VB. the smart card is of campus card type like for library card, canteen card, ID card, attendence card...
So, the main problem is abt. interface bet. pc & reader.So if anybody have any idea abt. it or any code.plz provide...
cc@don
|
|
|
|
|
Do your own homework!
|
|
|
|
|
For such a sweet looking person, you have a real nasty streak in you. Do keep it up.
|
|
|
|
|
Hi,
I Have form in which I have 3 tabs.
The tabs should tougle based on the button click.
But if I press Ctrl+Tab or Ctrl+Shift+Tab, it still toggles.
How do I stop this using coding in Dot Net.
Regards,
Jantu.
Thanks and Regards,
|
|
|
|
|
in the keydown event of the tab control test for that key combination and if found. e.handled=true
|
|
|
|
|
What have you tried ?
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 )
|
|
|
|
|
Christian Graus wrote: What have you tried ?
Apparently nothing. Another deleted post...
|
|
|
|
|
I am currently developing a VB 6.0 application. I also happen to have another VB 6.0 application already complete which I want users to be able to select at log on. How can I join these two applications without changing much of the code of the complete application? The two applications happen to share the same names for a number of objects. Please help.
|
|
|
|
|
You really can't. Why are you still using VB6 ?
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 )
|
|
|
|
|
Dreamer2007 wrote: How can I join these two applications without changing much of the code of the complete application?
You can't without merging the code together and making necessary changes. Why VB6? It is a dead language now.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi guys
i want to perform some operation based on the types of my objects which i send as
parameter,
but i want to get the type of this object at runtime using reflection and using select case but i am unable to do that , if else work fine but i want select case , thanks
like
'it works fine'
If t.GetType Is GetType(ExpenceVoucher) Then
Insert_ExpemseClaim(exp)
End If
'the following code gives compile time error'
Select Case exp
Case exp.GetType Is GetType(ExpenceVoucher)
End Select
any help, thanks in advance
hello
|
|
|
|
|
ghumman63 wrote: but i want to get the type of this object at runtime using reflection and using select case but i am unable to do that , if else work fine but i want select case
If you're thinking of doing this, you don't need to do it. This is a situation where you'd use an overloaded method.
ghumman63 wrote: 'the following code gives compile time error'
Select Case exp
Case exp.GetType Is GetType(ExpenceVoucher)
End Select
Select Case won't do this. You have to get the types BEFORE using them in the Select Case statements.
|
|
|
|
|
Just letting you know that select case can do it.
Select Case True
Case Me Is Nothing
Stop
Case IsNothing(Me)
Stop
Case TypeOf (Me) Is Form
Stop
End Select
|
|
|
|
|
I know it'll work. He just needs to rewrite his Case statements. I also hate getting the TypeOf over and over again until it finds the correct Case. I get it once, before the Select, then use then returned type in the rest of the code.
|
|
|
|
|
sorry - misunderstood your statement 'Select Case won't do this'.
question on a different subject. each control has an event "enabledchanged" is there a way to make this fire even if you give it the same value? Enabled=true / Enabled=true? Is there any other technique that can be done that doesn't envolve creating my own control wrapper to detect this?
Thanks for your time.
Nathan
|
|
|
|
|
nlarson11 wrote: each control has an event "enabledchanged" is there a way to make this fire even if you give it the same value? Enabled=true / Enabled=true?
No, it'll fire whenever the value actually changes.
nlarson11 wrote: Is there any other technique that can be done that doesn't envolve creating my own control wrapper to detect this?
Nope. You have to replace the Enabled property's Set method of the controls to get this to work. As it stands now, the Enable property code is this:
<DispId(-514), Localizable(True), SRCategory("CatBehavior"), SRDescription("ControlEnabledDescr")> _
Public Property Enabled As Boolean
Get
If Not Me.GetState(4) Then
Return False
End If
Return ((Me.ParentInternal Is Nothing) OrElse Me.ParentInternal.Enabled)
End Get
Set(ByVal value As Boolean)
Dim enabled As Boolean = Me.Enabled
Me.SetState(4, value)
If (enabled <> value) Then
If Not value Then
Me.SelectNextIfFocused
End If
Me.OnEnabledChanged(EventArgs.Empty)
End If
End Set
End Property
See the bolded If statement?? That's why the event won't fire if the value doesn't actually change. If the internal enabled variable is the same as the value passed in, the OnEnabledChanged method is never called, which is what raises the event.
Actually, the more I think about this, I'd ADD A NEW EVENT, possibly called EnabledSet , and raise it from the Set code in the Enabled property. I would NOT change the behavior of the existing EnabledChanged event.
|
|
|
|
|
|
I am working on SEO based project. In this project I need to find reciprocal website of other site. means here i need to find that the url site who wants to put their name on my site, then that site should also have my url address in thier site. so how can I find that whehter the requested site contains my url address or not. Please help me. Thanks in advance
|
|
|
|
|
|
He's posted the same thing in at least 4 forums.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|