|
' Make popup form reference public
' Make Panel Control Public on the popup form
now fom here you can do
popupform.panelcontrol.controls.add (NewCTRL)
Rizwan Bashir
|
|
|
|
|
Hi, anydody knows if there is a way to localize a report to show it in another language.
And please any idea will be welcome to this question and to the other one I made few hours ago ^_^
|
|
|
|
|
Is there anyway that I can modify the volume and tempo of a midi file and save those changes back to the file ..
DirectX SDk's
DirectMusicPerformanceCreate.SetMasterVolume changes the volume ..But this is not saved back to the Midi File ...
Is there some other way around that this can be achieved ....
Thanx
Girija
|
|
|
|
|
how to display the ampersand in the label (in the tree format) in vb.net
|
|
|
|
|
You need two of them, for example This && That.
Hope this helps
Tom
|
|
|
|
|
Hey Guys
I'm having problems serializing an class that has an object property, even though the object in the instance of that class is serializable. I've cut the code down to demonstrate:
Option Strict On
<Serializable()> Public Class Test
Public Sub New()
End Sub
Dim m_text As String
Public Property Text() As String
Get
Return m_text
End Get
Set(ByVal Value As String)
m_text = Value
End Set
End Property
End Class
<Serializable()> Public Class TestTag
Public Sub New()
End Sub
Dim m_text As String
Public Property Text() As String
Get
Return m_text
End Get
Set(ByVal Value As String)
m_text = Value
End Set
End Property
Dim m_tag As Object
Public Property Tag() As Object
Get
Return m_tag
End Get
Set(ByVal Value As Object)
m_tag = Value
End Set
End Property
End Class
Public Class StartUp
Public Shared Sub Main()
Dim ser As New Xml.Serialization.XmlSerializer(GetType(TestTag))
Dim file As New System.IO.StreamWriter("c:\temp\test.xml")
Dim obj1 As New TestTag
Dim obj2 As New Test
obj1.Text = "TestTag Object"
obj2.Text = "Test Object"
obj1.Tag = obj2
ser.Serialize(file, obj1)
file.Close()
MsgBox("Object Serialized")
End Sub
End Class
Really, all i think all i need to do is change the Tag property of the TagTest class to an type that is know to be serialized, i have tried ISerializable but it don't want to know.
Failing that, i assume i'll just have to implement ISerializable on the TagTest class, but it seems a lot of work just for the one property.
Any ideas greatly appreciated.
Tom
|
|
|
|
|
Try try tagging the classes <serializable()>.
<serializable()> _
Public Class Test
....
<serializable()> _
Public Class TestTag
....
If that doesn't work you may have to declare the Tag property Test.
Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
|
|
|
|
|
i'm developing training management system as a live project in asp.net using vb.net code behind. oracle 8i is my backend. i want to create dynamic check boxes related to number of records in my database table. and also want to store the content of the checked check boxes back to database. now i have done dynamic creation but not able to access its properties. can anyone help me..???Please reply fast its very urgent..
Thanks.
pari
|
|
|
|
|
according to my understanding ..
if your checkbox array name is chk then you can access it through
you can check the number of check boxes through
chk.length and in for loop
Dim count as integer
for count=0 to chk.length-1
chk(count).checked=true
next
Rizwan Bashir
|
|
|
|
|
I use vb6.0 to develop a application.
There is two function which could exit from the application.
The first, in menu , close threads and call unload me.
The second, in Form_Unload, just close threads.
The threads is some new operation about database.I have to set nothing to them.
If I exit from menu, all things are good.
If I exit by point the cross on the right above of the form,the form disappear. However , the process is still in the memory. I have to kill it myself.
How to solve the problem?
Thanks!
|
|
|
|
|
I supose vb6 has closing event, you can set the code there.
|
|
|
|
|
There is not close event in a VB6 form.
All the events about exit is :
QueryUnload
Unload
Terminate
I tried these events above, no help.
|
|
|
|
|
Hi,
I have a requirement to change the background color of a selected row in a listview control. By default it is navy blue. I have to set different color before the selected row gets painted.
Can any of u give me a solution?
Sarada.
|
|
|
|
|
|
Hi all,
Could any of you suggest me in graying out a single item in a checked listbox in VB.NET? I have a requirement where in I need to make one item non-selectable.
It should be grayed out.
Any suggestions pls.
V. Sarada Latha
|
|
|
|
|
See my response to your next posting, I think that it will start you off in the right direction.
Hope this helps
Tom
|
|
|
|
|
Hi, I'm localizing my windows app and I accidentally choose a language that I don't want to (actually, I accidentally choose 2 languages ), the fact is that I removed the *.resx but when I build the app at the /bin folder appears those unwanted languages.
Please, help!! I must finalize my final project to graduate this week
|
|
|
|
|
How to print? I tried Printer.print "sadsdf".
It did print after I closed the application. It seems that the printing is in low priority, How do I change this? Thanks
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
From memory:
Printer.print stores the text you want to print in the memory while waiting for more commands.
You have to call Printer.flush to send the commands to the printer.
Hope it helps,
Edbert P.
Sydney, Australia.
|
|
|
|
|
Thanks. I`ll try that
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
I`ve tried it. It didn`t work. I`m using vb6. Do you know that code in vb6?
Guess when I`m asking something in this forum, I`ve to include the languange.
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
Try
Printer.print "Text"
Printer.Enddoc
If you have to print more pages then
Printer.print "Text Page 1"
Printer.newpage
Printer.print "Text Page 2"
Printer.Enddoc
|
|
|
|
|
This should have been an easy task, but won't work for me. The following format: dataadapter.update(dataset) works fine when updating data, but errors out when attempting to update a new table. I have inserted records into the dataset through code, they are visible in the dataset, have a row state of added - just won't update the underlying tables! HELP!!
Betty
|
|
|
|
|
Does your dataadapter have an SQL INSERT command associated with it, or just an SQL UPDATE?
DataAdapter.Update()[^] docs on MSDN.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
If an exe A.EXE calls an ActiveX DLL B.DLL, which opens a form which has an OCX called C.OCX:
Is there a way C.OCX can tell teh name of the DLL which launched the form that called it?
|
|
|
|