|
I have treeview which is in panel. As it grows scroll bar of the treeview appear. I want capture the scroll bar value and set the value to another treeview in another panel. But I could see that there is no scroll event for treeview. How can do that?
Thanks in Advance
Regards
Surya
|
|
|
|
|
Unfortunately I can't provide any sample code because I can't get access to Visual Studio, but in terms of a scroll event, I'd create a class which inherits from TreeView and overrides the WndProc method. If m.Msg == WM_MOUSEWHEEL, then you've got a scroll message; you just have to interpret m.WParam and m.LParam properties in a fashion. When the derived class provides a Scroll event, use that instead of the TreeView control
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
thanks for the help. I will try that.
Best Regards
Surya
|
|
|
|
|
Hi All,
I'm having some problems finding the correct Forms event from which to fire my code. I want to run a sequence of code automatically once a form is displayed on the screen.
Form_load isn't correct as my code finished before the form is displayed.
Form_Shown doesn't seem to trigger consistently.
Form_Activated triggers multiple times
Form_Validated doesn't seem to trigger consistently.
What event should i use?
I basically want the code to fire as if the form was displayed on the screen and I hit a "Start Button".
Thanks in advance.
Daniel.
|
|
|
|
|
Shown should fire exactly once, the first time the form has become visible.
MSDN: "Occurs whenever the form is first displayed."
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Recently i get a project about a clinic software and i have a little problem with the previous database information. so i thought that you are the best one that could answer me,
let me describe a little...
the previous software has a feature that allow to the doctor to write the patients information by hand writing with a electrical pen, it so like paint brush software and it save this information in the database like bellow,
AORtHQTwD4AEAh4CSBEHSBFEgID8BwRIEEU1B0gRRP8BRQgFSBFE/wEEAwE4ABgiIDIJAPT/AgHpIjpFMwkA+J8CAVogOkU4CAD+AwAAAIB/AA8OEvkjjT/PI40/EQAAgD8eKLQBhvAdR4DpyGhwAAAAAAAAAAAAAAIAZ4yvRgAAnp8AACGhwAAAAAAKIgqE+ry+sL1Y4RhHXsCF8iV5DHKLKIJsTICFqxzDyy14ueEKIgmH5jDmMYFA51D5XSIqh+Ow47GwWG2Sug26
so i don't know what exactly it is, but i guess it could be a Multimedia Format Like jpeg or anything else like that, do you know what it could be, and how can i solve this problem!
thank you very much!
With best Regards!
--
Maysam Gamini
Bachelor Of Information Technology
Faculty Of Engineering, Isfahan University
E-mail address: Mit.gamini@gmail.com
E-mail address: Ir.webbiz@gmail.com
Phone: +9821-20105677
Cell No: +98912-3778746
|
|
|
|
|
chances are it is some kind of binary data (a byte array) made readable through Convert.ToBase64String;
so call the reverse function, and look at it;
maybe save it in a file, give it different extensions, and try opening it.
There isn't much data in your example.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Seems to me that this is a binary field written in the String Base 64 format. You can try using Convert.FromBase64String to generate a binary stream, then you can try writing this stream as an image to the browser.
Regards,
Leonardo Muzzi
|
|
|
|
|
Thank You In Advance, I'll try it and send another reply again, and report the result!
about the example that i post, it's quite a content of the database field.
there is some another here!
1.
AORtHQTwD4AEAh4CSBEHSBFEgID8BwRIEEU1B0gRRP8BRQgFSBFE/wEEAwE4ABgiIDIJAPT/AgHpIjpFMwkA+J8CAVogOkU4CAD+AwAAAIB/AA8OEvkjjT/PI40/EQAAgD8eKLQBhvAdR4DpyGhwAAAAAAAAAAAAAAIAZ4yvRgAAnp8AACGhwAAAAAAKIgqE+ry+sL1Y4RhHXsCF8iV5DHKLKIJsTICFqxzDyy14ueEKIgmH5jDmMYFA51D5XSIqh+Ow47GwWG2Sug26
2.
AL5cHQTeD7IDAhsCSBEHSBFEgID8BwRIEEU1CkgRVw0AAABQ/wEEAwE4ABgiIDIJAPT/AgHpIjpFMwkA+J8CAVogOkU4CAD+AwAAAIB/AA8OEvkjjT/PI40/EQAAgD8eJ5kBhfcye5jAAAAAijAAAAAAAAAAAAABdfBBGBIlAAEGAtg4IzHHYApKHoT7Gb7GficXVrxWaMOKtqzx4WHVFSk6RzwAhfIVeQrw2HpowMODnwc9sEFVGAuxkGMqoughqviAhONqlDfjinGcKk
3.
ANKqAR0EtA+IBAIOAkgRBUgRRP8BBEgQRTUEAwE4ABgiIDIJAPT/AgHpIjpFMwkA+J8CAVogOkU4CAD+AwAAAIB/AA8OEvkjjT/PI40/EQAAgD8eL6sCgoAAAAAAAAAAAePIAABmgAAAAAAAAePIAAAAAASkoAAAAAACKAAAABmgAAAACkYfhPsVvsZ8zMlKSmONp2rivSsZ3VjdwOWAhfCKeEzxjGSUTTRQyz4Gu/C130zoJLJqsIx0YIP0tMefm5qZtCJImS98/D6oCi
|
|
|
|
|
Well, it's definitely a String Base 64, 'cause I was able to build a byte array from it with this code:
string strData = @"AORtHQTwD4AEAh4CSBEHSBFEgID8BwRIEEU1B0gRRP8BRQgFSBFE/wEEAwE4ABgiIDIJAPT/AgHpIjpFMwkA+J8CAVogOkU4CAD+AwAAAIB/AA8OEvkjjT/PI40/EQAAgD8eKLQBhvAdR4DpyGhwAAAAAAAAAAAAAAIAZ4yvRgAAnp8AACGhwAAAAAAKIgqE+ry+sL1Y4RhHXsCF8iV5DHKLKIJsTICFqxzDyy14ueEKIgmH5jDmMYFA51D5XSIqh+Ow47GwWG2Sug26";
byte[] data = Convert.FromBase64String(strData);
The problem is, I wasn't able to write it as an image in a .net page, using the Response.BinaryWrite method. So, maybe it's not a commom image binary data. You can test this byte array saving as a file and try some extensions.
Regards,
Leonardo Muzzi
|
|
|
|
|
Hai Friends,
I want to create a .net application to capture and monitor the video of a webcam of particular system in a LAN Network using C#.
help me with you ideas.
Thanks,
Vasanth.A
|
|
|
|
|
|
hie guys can any one assit me, i'm Trying to creat a POS for a B& B and i'm stuck, i need the code to call a form when i select a date on the callender, and for the system to record that date on the form that it will call. " for example, i select the 25th of Nivember on the callender, i would want the system to call a form and update serturn data bases. thank you
|
|
|
|
|
So create a form with a consructor accepting the date and open it passin in the date, or use public properties in the form.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
May i know why Multiple Inheritance is not supported in c#...
|
|
|
|
|
p_1960 wrote: May i know why Multiple Inheritance is not supported in c#...
The quick answer is because of the Diamond problem. Here's more information[^].
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
There were a number of problems with multiple inheritance. Read about diamond problem with multiple inheritance and C# solution to it.
|
|
|
|
|
|
Dear Developers...
I need to generate run time form IN MAIN(Mdi form)
which can contain few other forms...
simplified.
formMain(MDI)->form1(Mdi for form 2,3,4)->form 2,form 3,form 4...
it means form 2,3,4 will be open inside the form1 which is generated in Main Mdi.
Thanks
|
|
|
|
|
Could you please explain in detail? If you are using MDI form then you can already host multiple child forms in it. If you want them to opened by default all you need is to create their instances on application start and set their parent MDI container.
|
|
|
|
|
Dear Muhammad,
hierarchy is as follows.
grant parent->parent->Grant Children
form1->form2->form3..N
More Detail
In an MDI parent form I need to open multiple MDI forms which can hold multiple forms.
actually I need to create multiple workspaces where
I can open multiple forms within those workspaces.
If its not possible than i request you to give some other way to get this done.
Thanking you,
|
|
|
|
|
Give a try to following.
1)- create a new Windows Forms application for C#
2)- Right Click on soluton explorer and add new MDIParent form
3)- Update Program.cs files to point to this new MDI parent form
4)- Now edit the code of that MDIParent form and lcoate following mehtod
private void ShowNewForm(object sender, EventArgs e)
{
Form childForm = new Form();
childForm.MdiParent = this;
childForm.Text = "Window " + childFormNumber++;
childForm.Show();
}
and update it as below
private void ShowNewForm(object sender, EventArgs e)
{
Form childForm = new Form();
childForm.IsMdiContainer = true;
childForm.Text = "Window " + childFormNumber++;
childForm.Show();
}
Now when ever you will open a new form it will open a separate MDIForm that can hold its own childs.
|
|
|
|
|
You cannot do it this way. An form cannot be both an Mdiparent and an MdiChild form to another MdiParent at the same time.
|
|
|
|
|
Dear Sir
can you suggest me way to do it...
|
|
|
|