|
One thing I see wrong is your specification of the directory. Try:
System.Environment.SetEnvironmentVariable("PATH", @"C:\Dev");
/ravi
|
|
|
|
|
Even though its not working
|
|
|
|
|
Per the documentation:
"Creates, modifies, or deletes an environment variable stored in the current process." (Emphasis mine)
If you expect the settings to remain in place after the program completes, you'll be disappointed.
|
|
|
|
|
Following on PIEBALDconsult's reply, specify EnvironmentVariableTarget.User as the target if you want the environment variable to be set after your process ends.
/ravi
|
|
|
|
|
hey I have to make a major project in c# .net. It should not be any management project.
Please can anyone suggest me some.
|
|
|
|
|
Some form of game is a good idea, for it shows you understand GUIs, General Programming, Threads and Timers.
It can be expanded upon to give online high score tsbles etc.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Time and again some guys ask for code for their homework. Sometimes quite interesting projects.
One of them was an application for sharing photos with his friends/family, with users being able to add comments etc. I think that something which can be used by your friends/family is a really good project, because that will teach you the most important point in software development: dealing with users, how to turn their requirements into functionality.
|
|
|
|
|
Come on man! Do you not have any ambition or interest in IT? Do something relevant to you and what interests you. If you have no interest try a career switch.
Regards,
Rob Philpott.
|
|
|
|
|
Final year project planning comes around so quickly doesn't it? The usual approach is to wait until April or May and then post a query starting Urgntz!
Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
|
|
|
|
|
I've to submit the project by December.
I am new to .net. I've to submit the project in my college.I'l make the projec by myself, just want to know some ideas.
thank you.
|
|
|
|
|
Nagy Vilmos wrote: and then post a query starting Urgntz!
and gimme codes. send codes to my email: stupidfool@gmail.com
|
|
|
|
|
Hello!! Somebody help me
I m new in c#, I want to do practical like this
First I create two textbox and then one checkbox. I want that if i check the checkbox whatever I have to write in one textbox that display same text in other textbox and dispay readonly
Like temporary and permanent address same field in most of fill application form. please send me code
|
|
|
|
|
My dear friend, I shall not flame you, for you are new.
This is exactly the sort of thing you need to learn.
If we told you or gave you code you would have learnt nothing.
I suggest you use This[^] excellent research tool to find the answers you need.
There are many c# Tutorials available that can help an absolute beginner, and they will help you progress.
There is no other way you can advance, and certainly not by others doing it for you.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Very nice answer for a beginner....
I quit being afraid when my first venture failed and the sky didn't fall down.
|
|
|
|
|
Thank you.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Try this out. If you face issues, please post them (with code) here and someone will help you.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
I think you have missed the links Abhinav... Everything is appearing as a text only.....
I quit being afraid when my first venture failed and the sky didn't fall down.
|
|
|
|
|
Where would be the point of giving you the code?
What would you learn? How to do it next time? Probably not. How to do the next task you come up with? Definitely not.
This is not a difficult task: You need one text box property (Text) used twice, one CheckBox property (Checked) used once, and a single event handler - I'll let you guess the name of that.
Total code you need to write? About two lines, if we let Visual Studio handle the hook up code (and mostly, we do).
Seriously, you need to get a book and follow the whole thing from the beginning to the end, doing all the exercises. If you continue to learn by asking for a bit here and a bit there, you will miss so much important stuff that you will effectively have wasted all the time you put into it.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
|
hai ,
I have to dock a windows form into ppt application window. I try to do this
by using this code
PowerPoint.Presentation presentation = Globals.ThisAddIn.Application.ActivePresentation;
MyForm.Parent =(System.Windows.Forms.Control) presentation .Parent;
then the following error message shown
"Unable to cast COM object of type 'System.__ComObject' to class type 'System.Windows.Forms.Control'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface."
is there is any way to solve this problem?
Thanks.
|
|
|
|
|
Even if you got past this error, you can't set forms to be parented across AppDomains anyway. I think that add-ins are run in a separate AppDomain, though I'm not sure about that.
Does the add in API not provide you with a way to create a custom tool window? I doubt you are supposed to create your own forms and then try to push them into the existing docking framework (since, if you try to do that, if MS change the docking framework your form will no longer work right).
|
|
|
|
|
Don't cross post your question in multiple forums and don't create new accounts for every post you make.
You cannot do what you want. Setting the Parent of a Form to that of a seperate process or AppDomain will not work.
PowerPoint will never notify your window that it needs to be repainted. It exposes no framework for you to "add" your window to the PowerPoint application.
|
|
|
|
|
I have a winform application and beside it i have a VSTO Project.
How can i open the word document embedded in the winform project?
Thanks.
I would be thankful if you could answer the question.
|
|
|
|
|
Do not cross post.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Hello.
I am fairly new to C# programming, (I am trying to teach myself), and I would like to know how to make custom (either WinForms, or WPF) components.
The components that I am trying to make need to be fairly efficient, as I want to repaint them at least 30 times a second (with new data to display each time).
I am fine with using unsafe code blocks if they are needed.
The data that is going to be displayed is in the form of 1-dimensional HSL (Hue Saturation Luminescence) pixel data.
I want to show a moving display of this data, a graphical FIFO stack (one that discards the first inputs upon overflow).
Working on a digital signal processing article.
(My first article on this site)
|
|
|
|