|
I have Charles Petzold's C# book from Microsoft Press, however the book, also from Microsoft Press "Microsoft Visual C#.NET STEP BY STEP" by John Sharp and Jon Jagger is rather well written. It covers not only a lot of the structures of the language but how to do a lot more with the designer. I have also looked through Tom Archer's book, however I to am waiting for the second edition to come out.
Nick Parker
This is a non-Calculus course as long as you know things like line integrals and surface integrals...
|
|
|
|
|
The Step by Step books are definitely better than I anticipated. I just purchased the MC++ one and love it. The main diffs between my C# book and the SBS book is that it covers the designers whereas my book is specifically about the language. Therefore, I cover the language to a much greater level of detail. However, it is also a really good book.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
I didn't know there was a book in MC++! What's the title and author and do you think is worth it for intermidiate level?
Thanks
Al
|
|
|
|
|
Intermediate C++ programmers in general or someone that already considers themselves intermediate in MC++ ?
As a beginner to MC++, but extremely exerienced in VC++, I thought it was great because it was straight to the point without any fluff. I also love the step by step, tutorial type of writing. However, it is meant for people with absolutely zero MC++ experience.
I think you're going to find that of any .NET language book at this point because publishers are not going to chance writing for the minority that already know this stuff. Even my second edition of Inside C#, while having lots of cool intermediate and advanced level stuff - also assumes from the beginning that you have no experience. As I said, there's no publisher that's going to let you do it any other way.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
I only see 2 books available for MC++ (at Amazon)
Essential Guide To Managed Extensions For C++
by Siva Challa, Artur Laksberg
and
Managed C++ and .NET Development
by Stephen R., G. Fraser
Which one do you think I should get? Any other MC++ books our there? Where can I get them?
Thanks
Al
|
|
|
|
|
The Step by Step one is here. I personally like it much better than the APress book (I have both). But then again, I don't really care for the APress style. I'm not familiar with Fraser book so I can't comment on it.
MS Press definitely made a mistake when it didn't put "managed extensions" in the title as that's what people will look for to separate a VC++.NET book that is mainly MFC (like mine) vs a VC++.NET book that is ME.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
I just go it!! Thanks!
Yes isn't easy to find as I seach using: "Managed C++"
I can't wait to read it! I am like an Star Wars fan waiting for Episode II!
Al
|
|
|
|
|
Congratulations!
It's awesome when you get the green light to go ahead and write C#.
The first book I ever got about .NET and last was Inside C# by Tom Archer. It's a very good reference book.
Hope that help
Al
|
|
|
|
|
And guess what! They're paying for the books (the Archer and Petzold). I love this job. You'll have to excuse me... it's time to place an order.
Thanks everyone!
BTW - Now I can afford the The Career Programmer - Guerilla Tactics....
Marcus
Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope
-- Daniel Burnham
|
|
|
|
|
Hi everyone. I'm new to C# and am having a bit of difficulty with the TreeView control. I've managed to successfully set up a TreeView control that will allow a user to browse all the directories of his/her logical drives and select a certain directory. However, when this TreeView control starts, the only nodes displayed are the top nodes (logical drives). I'd like to the tree to automatically expand itself to the user's current directory when it loads up. I've searched MSDN and have been unable to find the attributes/function combination that will allow me to do this. Any help would be greatly appreciated. Thanks.
- Sabran
|
|
|
|
|
TreeNode.Expand() or TreeNode.ExpandAll()
|
|
|
|
|
Thanks. I think that might be what I was looking for.
- Sabran
|
|
|
|
|
I have another question along the same lines. If I know the path of a TreeNode I want to pull from the TreeView object, how do I do this?
- Sabran
|
|
|
|
|
If you knew this path at compile time then you may just want to hold onto a reference to the TreeNode object when you created it so it will be handy.
The alternative is to just drill down on the Nodes collection to get to it; again, if you knew where you put it at compile time.
If the revelation of it became known at runtime, i.e. it was passed in on an event, just call the Remove method on the node itself.
Yet another method would to mark special nodes by putting something in the Tag property, you could then enumerate the entire tree and pluck out the nodes your after.
Does this answer the question?
|
|
|
|
|
Thanks for your help. Unfortunately, the tree is constructed and used for another purpose before I want to deal with opening it up to a specific directory. I took your advice, however. After I developed the tree, I ended up just enumerating through it until the path specified by the user was the same as one of the node's full name. I think what I was looking for was a method for the TreeView to automatically return a node given a path. Like:
TreeNode returnNode(string path)
which would ideally return the node whose fullName matched "path" (or null if no match could be found). Which actually happens the function I ended up implementing. Anyway, thanks for the help.
- Sabran
|
|
|
|
|
When you see the PathSeparator property of TreeView and the FullPath property of TreeNode, It would leave you to believe that it also has a built-in searching mechanism that utilizes these. If it does, I have not found it.
Regards
|
|
|
|
|
Hello everyone!,
I've lingered code project reading posts etc for a quite a while (say 3-4 months). Im proud to say I am now part of the community.
Ok now for my first question: Recently i have decided to mess around a little with .net so i have made an app, a MDI app. I have 3 different forms inside it as child windows. How would it be possible to exchange data across the forms(I.E. Click a button on one form have my app retreive a string from a text box on another and add the string into a list box on the third)? I am capable of doing each of thoes if it was on one form but im unware to how I would make the three Forms communicate. I hope you can understand my question, if not let me know i will gladly rephrase it so that it may possibly be understandable.
|
|
|
|
|
brian1415 wrote:
Im proud to say I am now part of the community.
Welcome
I can think of a couple different options, both require the child forms to be aware of the parent. The first one is the best though and I'll explain how to do it.
The first has the child forms knowing only about itself and the parent. When data needs to be exchanged it tells the Parent form to do it.
The second requires the child forms to know about the parent and the other child windows. This can make maintenance a nightmare but opens the door up a bit for what you want to do.
Assume the parent form is of type ParentForm. Then to get a reference to the parent from the child you would do ParentForm p = this.Parent as ParentForm .
Now that you have a reference to the ParentForm you can call methods on it... When you want to pass data around you tell the parent to pass the data by calling a method on it. That method tells the other child window what to do. The ParentForm is aware of all child windows.
Difficult for me to explain in English, but pretty easy to do in code
James
Simplicity Rules!
|
|
|
|
|
Hello thank you for the help!, but I've been fiddling around with my app trying to do what you suggested but im not sure if I understand ... I know you are probably busy but if it would not be to much trouble could you possibly post/Email me a quick code snippet so that I may understand? My knoledge of WinForms is very limited.
Thank you once again...
|
|
|
|
|
Heres the names I will use.
Classes- ParentForm - The MDI Parent
- ChildFormA - One of the child forms
- ChildFormB - Another child form
- ChildFormC - The last child form
- DataA - Data class for ChildFormA
- DataB - Data class for ChildFormB
- DataC - Data class for ChildFormC
Class instances stored in ParentForm class- childA - ChildFormA
- childB - ChildFormB
- childC - ChildFormC
Now a little setup
In ParentForm
public void SendToChildA(DataA data)
{
childA.Data = data;
childA.DataSent();
} Do similar for the other children (B and C)
Now in each of the ChildForm s create a Data property which is of the same type as the class associated with it. Also create a method called DataSent which will actually do the processing of the data for the child form.
Now when you want to send data from one child form to another you call the appropriate method on the parent.
....
ParentForm parent = this.Parent as ParentForm;
DataB data = new DataB();
parent.SendToChildB(data);
.... If you wanted to truly adopt .NET practices you would replace the DataSent method and Data properties on the client with events; but for a quick example this works. I'll leave switching to an event as an exercise for you, its not too difficult
HTH,
James
Simplicity Rules!
|
|
|
|
|
Thank you very much I apreciate you help!
|
|
|
|
|
Anyone know how to find the control I am currently over without cycling through each one?
ie. Control ctrl = this.hittest(x,y);
cant find hit test anywhere.
thanks
|
|
|
|
|
Check something like this:
protected override void OnMouseOver(System.Windows.Form.MouseEventArgs mea)
{
mea.<code>[SomeMethod()]</code>
}
Sorry, not at home(with .NET Framework) to check the exact value, hope this will lead you in the right direction.
Nick Parker
J
This is a non-Calculus course as long as you know things like line integrals and surface integrals...
|
|
|
|
|
|
Thanks, GetChildAtPoint() works perfectly.. except for these two problems:
1) it takes relative x and y to that control's clientarea. so this.GetChildAtPoint(10,10) is very different from txtBlah.GetChildAtPoint(10,10)... which leads to my next problem:
2) get child only gets one child down. I would rather have this.GetChildAtPoint(x,y) get the control inside of the groupbox at x,y and not the groupbox. code to get only the second layer looks like this:
Control m_ctrl = this.GetChildAtPoint(new System.Drawing.Point( e.X, e.Y));<br />
Control m_subCtrl = m_ctrl.GetChildAtPoint(new System.Drawing.Point( e.X - m_ctrl.Left, e.Y - m_ctrl.Top ));<br />
any ideas (without recursion, please )
|
|
|
|