|
I think its quite easy to use the TAO OpenGL framework.
The installation provides libaries enabling c# for OpenGL. The installation comes with the NeHe examples.
Just don't know where it works for .net3
|
|
|
|
|
Hi,
How can we disable individual nodes in a treeview in .Net?
Tin
|
|
|
|
|
I'm pretty sure you can't.
Christian Graus - C++ MVP
|
|
|
|
|
You cannot disable individual nodes.
|
|
|
|
|
|
Depends on what you are doing:
WPF: Individual nodes can be disabled, so no problem.
WinForm: Handle the events on the tree - so if your node is selected, deselect it again (this probably won't be pretty to look at - in the Form or in the code, but that is the price you pay when using an obsolete GUI)
ASP.NET: You might pull something off client side, but I do not know how to do it - and if it is possible.
|
|
|
|
|
Hi,
Ok my database sheme I use is XML, i am trying to populate the data in a treeview control but it gives me unhappy results.
Would it be easier or better by using an Access database rather than XML?
ok ine more question sorry, i have seen many times before a couple of application that store information in a file where they have their own extension. for example storing information in a file database like databse1.dat or smth. How do people do this or is this not C# at all?
Thanks guys
Regards
|
|
|
|
|
If you use the System.IO namespace to writ binary data, you can write any byte sequence you want, and call it whatever you like.
I doubt that moving to Access will, by itself, change how the tree control behaves.
Christian Graus - C++ MVP
|
|
|
|
|
Hi,
Thanks for the reply,
ok im using a binary file now to store my data and it writes perfect. but i have a problem with reading the data.
basically every line in the dat file is one record. how can i read only a specific line and retrieve those values?
Is it possible to populate a treeview control from a .dat binary file?
Thanks
|
|
|
|
|
You could tag the line with some string that you are pretty sure will be unique and then process the file line by line looking for that unique string. When it finds the line, parse the line into whatever format you require.
|
|
|
|
|
that wouldnt work really because i use a binary file not a text file so you cannot process line by line.
i have changed my mind am gonna stick with xml its alot better
thanks for ur helps guys did learn alot though yay
|
|
|
|
|
It shouldn't matter whether the file is binary or not. When you read the file into memory it has to be parsed into a non-binary format in order for it's elements to be used by the program that is reading it.
|
|
|
|
|
Hi all,
Can somebody please post me an example of how to make a hyperlink in c#. I have put down a Linklabel onto my form and i want the click event to go to the url "www.paologios.com".
I just need an example please.
Thank you in advance.
Nico
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
protected void linkLabel1_LinkClicked(object sender, System.EventArgs e)<br />
{<br />
System.Diagnostics.Process.Start("IExplore"," http://www.paologios.com");<br />
<br />
}
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
|
|
|
|
|
Thank you,
It didn't work when i used the System.Diagnostics.Process.Start("IExplorer", "http://www.paologios.com") but it did work when i used System.Diagnostics.Process.Start("http://www.paologios.com") and it uses the default browser.
Thank you for you time.
Enjoy your day.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
You are welcome..
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
|
|
|
|
|
Never assume that the user is using a specific browser. Just open the url, and the default browser will open it.
|
|
|
|
|
Hi,
I need a little help regarding writing a file system driver for folder operations. If there is any thing any body could contribute in form of articles, tutorials or source code... it will be a great favor...
Thanks,
Regards.
|
|
|
|
|
What exactly are you trying to do?
What have you done so far?
|
|
|
|
|
hello every one !!
i have one problem i need to write a windows service that creates a folder and then on that folder i have a filesystem wathcher class to see if the file is created if created then move a file to remote computer. when i had hardcoded the folder to find file like c:/myfolder then i implemenetd filesystemwathcher on myfolder it worked fine now i have a case where i need to create a folder i.e my folder so that i can implement a file system watcher on any folder that is created on runtime.
to be short and precise i just want to create a folder(directory) by windows service not windows application.
any help would be greatly aprrecaited. happy windows servicing
|
|
|
|
|
If you run the service as user "LocalSystem", there a number of things you cannot do, by default (e.g., access a disk that is mounted as a network disk). The reason I mentioned default is because if you modify the default system policies you might overcome a number of these limitations.
You could run the service as an Administrator user. Then you would have access to doing pretty much anything you want.
|
|
|
|
|
hi
i want to ask that if there exit any function through which we can rotate image in c#.
i used the functions
rotateTransform( , ,)
and
RotateAt(, ,)
but the problem with these functions is that it create multiple data of the that image
i want to rotate the text from the image
thanx in advance
|
|
|
|
|
s4_sabahatf wrote: ut the problem with these functions is that it create multiple data of the that image
It creates a copy, yes. You can also set a rotate transform on your Graphics object, and so render the bitmap rotated, without ever rotating it.
s4_sabahatf wrote: i want to rotate the text from the image
You want to render text that is rotated on an image ? Well, you just need to set the rotation and translation on the graphics object, and you can draw your text that way.
Christian Graus - C++ MVP
|
|
|
|
|
ya i m using the graphics object by overridng the paint method but still it creates mulipte copies
then what shud i do??
|
|
|
|
|
I'm not sure what you mean by 'multiple copies' ? Do you have a memory leak ?
You can't rotate an image in place, you can't rotate it without making a copy. Doing it in your paint method makes a copy direct to the DC, and so costs nothing.
Christian Graus - C++ MVP
|
|
|
|