|
hbez wrote: but the method does not accept a parameter.
You need to write the method that takes the parameter.
Or you can create the image as a property that is lazy initialised on a static class, making it load the first time it's accessed, and accessible from your entire project.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How to form regexp for ommiting hidden folders? I tried something like this:
^[A-Za-z]*
or
^\w*
but this doesn`t seem to work.
Thanks for help
|
|
|
|
|
Yoyosch wrote: How to form regexp for ommiting hidden folders?
That question makes no sense at all. What does a regex have to do with hidden folders ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yoyosch wrote: How to form regexp for ommiting hidden folders? I tried something like this:
^[A-Za-z]*
or
^\w*
What on earth is this? You don't string test to see if a folder is hidden or not?
|
|
|
|
|
No, WE don't do that. Apparently, HE does.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Suppose I don`t want any folders that have names started with dot "."
|
|
|
|
|
You don't need a regex for this. A simple test to exclude strings that StartWith('.') should do the job.
|
|
|
|
|
So how does the folder name starting with a "." make the folder "hidden"??
You might want to spell stuff like this out the next time you ask a question.
|
|
|
|
|
I remember it usually does on UN*X, although my UNIX days are long gone...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Yeah, I've since found out that you can't even name a folder starting with a period. An extension is optional, but not the filename.
|
|
|
|
|
Hi
Is there a way to turn off the edit functionality in excel when the user selects the export to excel funtionality from the report viewer?
Please let me know.
Thanks
J9
|
|
|
|
|
Hi coders.
At runtime i add textboxes and labels to the form. I want all selectable and can be aligned by user at runtime as .net UI does.
Any experience,source or idea???
|
|
|
|
|
You need to write code that captures mouse events, moves the controls and stores their position for next time.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
You can use drag and drop facility to thus
|
|
|
|
|
Hi,
Can i somehow detect (and obtain handle to) windows dynamicaly created from withing a window? (by calling (new Form()).Show())
It must be done from the outside, knowing only the handle to the main window.
Thanks
|
|
|
|
|
Hi All,
I have a scenario where i need to print a large windows form design in the runtime with all the values entered in it by the user. I searched for many articles, where they have given way to print the screenshot of the form. In my case as the Form size is bigger i cant get the entire form in one screenshot.
Is there any way to acheive this ??
Thanks in advance
Cheers
Mani.
|
|
|
|
|
I have a windows application which uses webservice. So when a web reference is added, VS will add the webservice URL in the app.config file. Is there anyway to overcome this behavior ? Problem here is, when the application is deployed, users can open the configuration file and take the webservice URL. My webservice is secure and users can't make any harm to that, but I am just wondering any method available to change this URL storage location. Any ideas ?
|
|
|
|
|
Hi
Vs automatically put this url in app.config. But this is not the mandatory.i mean u can remove th url from the app.confg, then u can use the dat file, there can store and use the encrypt adn decrypt.
then can assign to ur url in to web service.
|
|
|
|
|
Ravenet wrote: But this is not the mandatory.i mean u can remove th url from the app.confg,
So are you telling that it will work event if I remove that entry from the config file ?
Ravenet wrote: then u can use the dat file, there can store and use the encrypt adn decrypt.
I am not getting your point. Can you please explain it more ?
Thanks for replying me.
|
|
|
|
|
Hi,
I am working on C# 2.0, I have to save some xml files in a folder which is hidden.
(I am able to save it in same folder when i unchecked its hidden-property).
plz do needful
thanks in advance!
Ahuja
|
|
|
|
|
Ahuja.bangalore wrote: plz do needful
*sigh*
Ahuja.bangalore wrote: bangalore
ah....
Ahuja.bangalore wrote: (I am able to save it in same folder when i unchecked its hidden-property).
There's no reason why you couldn't save to a folder that is hidden, but also no reason why you can't unhide it, save the files, and make it hidden again, in code.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Remove the 'Hidden' attribute, save your files there and then apply the attribute again. Use the DirectoryInfo class for that.
|
|
|
|
|
actually i don't have to touch the (hidden) folder...this folder is on some other server where i have to copy some xml files.. for testing purpose i tried to copy some files at my local machine and found it doesn't copied at all
Ahuja
|
|
|
|
|
|
I'm not sure why you are having problems. This code works finne for me:
File.Copy(@"H:\Temp\00.xml",@"H:\Temp\MW Scripts\Hidden\bob.xml");
Are you getting any error message?
Bob
Ashfield Consultants Ltd
|
|
|
|