|
thx budy, its working
Maifs
|
|
|
|
|
You need to copy a file so why don't you Google or search msdn? Is it so difficult?
|
|
|
|
|
no, i didnt find it,
thx
Maifs
|
|
|
|
|
|
|
And there is a point to this post? Have you tried MSDN, Google, or even (heaven forbid) press F1 while in the ide?
I think you are in the wrong job if you are unable to do something this simple without posting to a forum.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I am facing simlar problem here. If you get it, plz send me also. my email is chandu_reddy86@yahoo.com. Please send
|
|
|
|
|
hi
man read first one ansers to search from googles.this is not a place of doing such questions.
read that articles in my replies then you can find your anser.
thry this one.
System.IO.File.Copy("C:\\abc.txt", "D:\\abc.txt");
and make sure the file is exist on c drive, if not then create a text file
named abc and save on c drive.
Maifs
|
|
|
|
|
Just post your bank account details and I'll email you all the codez you want as urgntz as you can take them. (I'm not joking. I'm serious. Just post them. I won't charge too much )
Alternatively, you can read the responses that are already here and stop wasting everyone's time.
Simon
|
|
|
|
|
Simon Stevens wrote: Alternatively, you can read the responses that are already here and stop wasting everyone's time
or just try a career change
Bob
Ashfield Consultants Ltd
|
|
|
|
|
can any body give me Idea about linq in VS 2008
|
|
|
|
|
Yes, there are thousands of articles. Try Google.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
MSDN - LINQ[^]
Wikipedia - LINQ[^]
LINQ is part of .net 3.5 which comes with VS 2008.
it provides an integrated query language for performing searches and sorts on collections.
various providers also allow LINQ to be used for the same operations over SQL connections and XML files. (Linq-to-sql and Linq-to-xml). (And with SP1, entities in the entity framework (linq-to-entities).
What is it you want to do with it?
Simon
|
|
|
|
|
Scott Gu[^] has nice introductory articles at his blog.
|
|
|
|
|
I'm writing a window application were I would need to use tab page as an template to be used multiple times.
I need an advice as to the best way to do it.
Is it better to create a dialog and insert it into a new tab or create a tab page as a different form/class?
10x,
|
|
|
|
|
Inbaljona wrote: Is it better to create a dialog and insert it into a new tab or create a tab page as a different form/class?
I'm not sure what you mean by "creating a dialog and inserting into a new tab".
I would create a base 'PageTemplate' class (inheriting from UserControl) that defined the template, and then have a class for each page that inherited from this base, and added the extras.
Simon
|
|
|
|
|
I'm writting a window application were I would need to use tab page as an template to be used multiple times.
I need an advice as to the best way to do it.
Is it better to create a dialog and insert it into a new tab or create a tab page as a different form/class?
10x,
|
|
|
|
|
Alright, why in the world did MS think that putting all of the tab page child controls under the control of the parent form was a good idea? I have a form that has about 15 tabs, all with a bunch of controls. Is it possible to make each tab page its own "form" so I can still modify them in the designer?
I would envision this as being like a PropertySheet in MFC, where you create a form with a propertysheet panel in it and then add separately-created property pages, each of which have their own controls.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
When I've used the tab control in the past, I've created a "UserControl" for each tab, set the control to be docked within the tab, and then you can setup the UserControl in a separate designer window.
Simon
|
|
|
|
|
I don't see a "UserControl" in the toolbox.
[EDIT] Never mind. It's an object in the templates. (My face is red.)
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Tuesday, November 25, 2008 7:04 AM
|
|
|
|
|
On the toolbar. Click Project->Add User Control.
Or Project->Add new item->Windows forms(in left hand tree view)->User control(in right hand list)
Layout your user control with the buttons/labels/textboxes that you want.
Rebuild
Then on the form with the tab control on it, you should see that the new user control you created has appeared in the toolbox. Add it to the form, and dock it on the tab that you want it displayed on.
You can expose properties on each user control (or initialisation methods or constructors or whatever) to allow you pass a manager class in to give you the data to populate your user controls child controls and/or respond to GUI events etc.
[Edit: well, I see you've found it, but I've typed this now, so I'm posting it anyway Look like it solves your problem?]
Simon
|
|
|
|
|
I found an issue.
The UserControl doesn't have a Dock property in the property list (but it's available through code of course). The problem is that if I set Dock to Fill , the designer goes nuts and sets the size of the control to the size of the designer window. Is there a way to NOT execute code in the designer?
I'm using the constructor of the control to set the Dock property. I'm gonna go try the Load function and see if that helps (but I'm not optimistic).
[EDIT] Nevermind again.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Tuesday, November 25, 2008 9:40 AM
|
|
|
|
|
John Simmons / outlaw programmer wrote: Nevermind again
One of those days John?
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Please can anyone tell Is there any way to create a global hook for Wince(Pocket PC,Smartphone).Is there any way to keep track of Mouse Events and Key Events in any application?
Please Help!!!
|
|
|
|
|