|
Hi Friends,
I make a flexgrid in which ,i attach combox box and check box using the control array method on each row of flexgrid.
The problem is , while i scroll the flexgrid, the combo and check boxs are not moving properly with grid. Can anybody help me to solve this scrolling problem of flexgrid.
Thanks in advance
|
|
|
|
|
;PDear all:
In VB can use the follow code active
VB Code:
Sub Macrol()
ActiveWindow.FreezePanes = True
End Sub
VB.net:
Excel.application.activewindow.freezepanes=True
I try out!
jeam
-- modified at 6:16 Monday 5th February, 2007
|
|
|
|
|
i have two same windows application one i installed on my main system and other i installed on a remote machine .i want to upadate the main database each day afetr the work from remote machine also ....plzzz help me
|
|
|
|
|
You need a method of communication between apps ? Is it one way ? If so, a web service on the main server could do it for you.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello,
VS 2005
Currently I have an array of stop watch objects so I can monitor multiple tasks as the same time and the user can stop and start any of them.
The problem now is that when the user closes the form all of the stop watch timers will stop and all the times will be lost.
I am thinking of using threads, but I don't have much experience in threading. Can anyone tell me if this is the right direction to go in?
Many thanks in advance,
Steve
|
|
|
|
|
Threads won't help, if you close the app, child threads will end. If you just want to store the times that were set, use a config file. If you want the timers to keep running, try writing a service, or similar.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello Christain,
Maybe I wasn't clear. Currently the user can start and stop the stop watch objects on the form. However, when they close the actual form and not the actual application. The idea is that the timers will continue to run if the form as been closed and reopened.
If the user closes the form before stopping the task time then no time will be saved.
There are many tasks that are running all the time and using stop watch objects works well.
If the application is closed then the timers will stop and that is normal for this program.
The reason I thought about threads so that the timers could run in there own threads and if the form is closed they would still work.
Any ideas would be great on this,
Thanks,
Steve
|
|
|
|
|
In that sense, the main window should run the threads, then they will be just fine.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi Dear freind.
I want to provide one special frame that can contain other controls. But I can't make it to container. Please help me.
|
|
|
|
|
Any control can contain other controls, and the only way for that to happen is for them to be added to the Controls collection.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thank you for your attention. But I think you didn't understand my purpose.
In VB6 when I want to make a usercontrol like frame , I add a usercontrol and then change it's containcontrols property to True. But in VB.Net I don't know how can I do that? (Converting a usercontrol to container usercontrol)
|
|
|
|
|
I don't know what that means. A usercontrol, by default is able to contain other controls. I've not used VB6.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Sorry, in VB2005, an usercontrol is'nt containar preliminary.You should do that yourself. But I dont know how?
Thanks.
Mansour
|
|
|
|
|
|
Not sure if this is a VS.Net bug or if I am doing something wrong. I have a listview which has some items in it. The listview has checkboxes so when the user checks an item I am using this event to get the item:
Private Sub ListView1_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) Handles ListView1.ItemCheck
Dim item As ListViewItem
Dim Selection As ListView.CheckedListViewItemCollection = ListView1.CheckedItems
For Each item In Selection
Dim itm As String = item.Text
TextBox1.Text = itm
Next
End Sub
The problem is when the checkbox is checked the collection has no items but when unchecked then it has an item in it.
Am I doing something wrong? I also tried the mouse up and mouse down event to check the collection but yields the same behavior.
Any ideas?
Yoshimitsu
|
|
|
|
|
Change the ListView1.ItemCheck to ListView1.ItemChecked .
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I get a compilation error as that event does not exist. I even checked all the events for the control and it does not have ItemChecked event.
Yoshimitsu
|
|
|
|
|
The checked event wasn't added until .net 2.0. The item's checked state doesn't get updated until after the check event gets raised. Therefore the items in the checked collection (during the check event) do not accuratly portray the state of the listview. The newest item will not be included if it's being checked and will be included when it's being unchecked. The good news is there is a pretty simple workaround. Here's how you can do it.
Private Sub ListView1_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) Handles ListView1.ItemCheck
'Check new value of item that called this event. If checked display in console.
If e.NewValue = CheckState.Checked Then Console.WriteLine(ListView1.Items(e.Index).Text)
'Display each checked item in the console window
For Each item As ListViewItem In ListView1.CheckedItems
'If item is same as item that called this event then ignore it
If item.Index = e.Index Then Continue For
Console.WriteLine(item.Text)
Next
End Sub
|
|
|
|
|
I noticed you are trying to loop through all the checkeditems. There may be more then just one. If you want to show only the item that was just checked then you should using something like this.
Private Sub ListView1_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) Handles ListView1.ItemCheck
If e.NewValue = CheckState.Checked Then TextBox1.Text = ListView1.Items(e.Index).Text
End Sub
However, if you want to display all the checked items, which is what you appear to want, you'll need to do it differently. The way you have it set up will only display the last item that was found in the CheckedItems collection.
|
|
|
|
|
Thanks TwoFaced
|
|
|
|
|
I can get the assembly and see the types from within it. But I'm missing the link to see the members of the class. Could someone guide me please?
Dim asm = [Assembly].LoadFrom("stta.dll")
Dim ty As Type = asm.CSPluginClass
Dim Memberinforms() As MemberInfo = Type.GetType(????).GetMembers
What goes where ???? is?
Why not ty?
thanks!
|
|
|
|
|
|
OK, sorry to be stupid. I've read a lot of documentation, but I'm missing this.
My main program needs to find an assembly. The assembly will have one class, and it will have known properties and methods within it.
What is not known ahead of time is the name of the class.
My question is how to call the methods within the class. Presumably I need to get the name of the class somehow.
thanks
|
|
|
|
|
OK, got it... in case it might help anyone
Dim Asm = System.Reflection.Assembly.LoadFrom "myassembly.dll")
'Since there's only one Exported class
Dim ty As Type = Asm.GetExportedTypes(0)
Dim CSPluginClass As Object = Asm.CreateInstance(ty.FullName, True)
Thanks all!
|
|
|
|
|
Hi Guys ,
I am running two applications one of VB6.0 and other with .Net 2005.
When accessing crystal report 9.2 through VB 6.0 application it generates an error.
I tried same VB 6.0 application on other computer without .Net application then it doesn't generate any error.
Kindly send me your suggestions
Thanks in advance.
|
|
|
|