|
Thank you.
I did that but the cmd screen waits with followong message at the call to the function process.StandardOutput.ReadToEnd()
Reading passphrase from file descriptor 0 ...
Bharat.
In life, failures teach you as much as — or perhaps more than — successes.
Thank you very much for the help.
|
|
|
|
|
please tell me if there is a way to run my project in c#.net 2005 on Linux platform
i heard about grasshopper and mono
1--> which one is better
2--> what i should do to make that happen
(any intigration with visual studio.net or recompile the code)
|
|
|
|
|
Use Mono
You can first try to compile it on both Windows and Linux. If it compiles and runs on Windows, check if it compiles and properly runs on Linux, too.
The mcs compiler is for .NET 1.1 and the gmcs for .NET 2.0 as far as I remember
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
thanks Greeeg
you seem to have a better knowledge of the topic will you please mind to put some more information so that everybody reading this get the benefit
|
|
|
|
|
There are already some articles on this site that explain it very well. Just type "Mono" into the search box at the top.
Here are two vey good ones:
Number 1
Number 2
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
Hello. Is there any way to read one by one the pixels that contains a Graphics class and know his color? And I can replace these color to other different?
Thanks.
|
|
|
|
|
Yes, Bitmap.GetPixel/SetPixel methods.
Best,
Jun
|
|
|
|
|
But how I can convert the Graphics class into a Bitmap class?
|
|
|
|
|
A graphic doesn't contain any pixel information per se. It's a Brush , Image or Bitmap that holds some pixels
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Yes, I need to replace the white pixel that appears in a Graphics class of a Print event, and I can´t create a Bitmap class.
|
|
|
|
|
This is what I see could be done:
1) Create and maintain a Bitmap object as the drawing buffer (canvas)
2) Construct a Graphics object from the Bitmap (optional)
3) Use that Graphics object to draw to the Bitmap (optional)
4) Change the colors of pixels to the Bitmap
5) Finally, use the Graphics object from the PaintEventArgs to draw the Bitmap to the screen
Hope this helps.
Best,
Jun
|
|
|
|
|
If you have a Bitmap-Object, then you can use GetPixel() and SetPixel() .
But both are very slow if you plan to use it on many pixels.
Use LockBits() and UnlockBits instead.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
please go through articles posted by
'Andrew Kirillov'
they cover a whole lot of the things
|
|
|
|
|
Hi guys,
I need some help please, I have a treeview with menu items where one of them opens an add form and allows the user to select a name. Once the name is selected and saved into the database, I would like to update/refresh the tree with the new node automatically on save.
Please help!
sasa
|
|
|
|
|
SASA_1 wrote: I would like to update/refresh the tree with the new node automatically on save.
You mean when your app starts it should restore the treeview?
You could additionaly save your username like that: users/admins/tony (depends on your structure of course)
You can then recursively call Node.Expand to restore your tree view.
Here's some sample code from a project I work on:
private void ExpandTree(string path)
{
path = path.Replace(@"\\", @"\");
string[] paths = path.Split('\\');
if (paths.Length > 0)
{
TreeNodeCollection currentNodePath = this.trTreeView.Nodes;
TreeNode currentNode = currentNodePath[0];
for (int i = 0; i < paths.Length; i++)
{
foreach (TreeNode node in currentNodePath)
{
if (node.Text.ToLower() == paths[i].ToLower())
{
node.Expand();
currentNodePath = node.Nodes;
currentNode = node;
break;
}
}
}
}
}
You might need to modify it for you needs, though.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thank you for your suggestion but, my app does restore the treeview when I restart the app, I just want it to restore the treeview on every node added after it is started.
sasa
|
|
|
|
|
Hello
I don't seem to fully understand your problem. how do you populate your TreeView? I usually make a RefreshTree() that populates my TreeView, and call it each time a change happens. So refresh your TreeView just in the same manner you populate it the first time!!
Again I think I'm not aware of your true problem. Please post me more details on how you populate you TreeView, and if there is any Databinding involoved, or do you explicitly populate you TreeView from a DataSource without binding.
Regards
|
|
|
|
|
How do you compile to a library in C#. or how can i bring a DLL into the final exe so I don't have to install the dll.
I have classes that i use often and don't like just copying the .cs into my project. I'd like a library to link from but don't know how to make it.
Thanks
Ronald Hahn, CNT - Computer Engineering Technologist
New Technologies Analyst
HahnTech Affiliated With Code Constructors
Edmonton, Alberta, Canada
Email: rhahn82@telus.net
|
|
|
|
|
HahnTech wrote: How do you compile to a library in C#
Create a class library project and just compile it
HahnTech wrote: or how can i bring a DLL into the final exe so I don't have to install the dll.
copy the code over from the DLL to your form.
This is ugly, the better way is:
HahnTech wrote: I'd like a library to link from but don't know how to make it.
Add a reference to your DLL from your form.
In the solution explorer there a folder called "References". You can there rightclick, "Add Reference" -> "Browse" -> select your DLL
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I can make a DLL by using the create a class library project. And i can add a made dll as a reference into a new project but then i have to push the dll with the exe all the time. In C++ i can compile to a *.lib and tell the linker where the lib file is and it will compile the code from the lib into the exe and i don't need to push the lib all over the place. Is that possible in C#?
Ronald Hahn, CNT - Computer Engineering Technologist
New Technologies Analyst
HahnTech Affiliated With Code Constructors
Edmonton, Alberta, Canada
Email: rhahn82@telus.net
|
|
|
|
|
|
Yes I am!
Thank you!
Ronald Hahn, CNT - Computer Engineering Technologist
New Technologies Analyst
HahnTech Affiliated With Code Constructors
Edmonton, Alberta, Canada
Email: rhahn82@telus.net
|
|
|
|
|
I want to hide my Windows Application in System Tray on minimizing. How can I do that? The user may be able to maximize the Application on clicking the icon in System tray. Please give me suggestion of how to do that?
Thanks,
Sandeep S. Sekhon
|
|
|
|
|
Some threads below you find a description how to capture the minimizing of your form. Then you only need to call Form.Hide , set Form.ShowInTaskBar false and call Show of a NotifyIcon component dropped on your form at design time. To show your app again register to the NotifyIcon.Click event and reverse the steps described above.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|