|
How can i create the registries ? i made a image Editor software. now i want that only authorize person can only access to it via registry..
i dont know about it...
plz explain me in simple form or words which can i understand....
and with some code
hghghgh
|
|
|
|
|
Hello,
I noticed today that the System.Runtime.InteropServices.Marshal class has overloads of the Copy method in the form: Copy(IntPtr source, int[] destination, int startIndex, int length); , but there are no overloads for unsigned data (e.g. uint ). I wonder why?
Thanks in advance.
|
|
|
|
|
Perhaps because uint type is not CLS[^]-compliant.
|
|
|
|
|
Thanks. But I'm wondering, since I'm creating a class library with methods that take uint , does this mean the library will not be usable except in C#?
|
|
|
|
|
You dont have problem with existing languages like c++.net or vb.net. But someone may develop a language that uses .net components, without support for unsigned integers. For such senarios stands the CLS.
|
|
|
|
|
How can i create a single instance while deploying an software?
hghghgh
|
|
|
|
|
|
i made three forms.
one is mdiContainer and other two are its child ... One COntain toolBox,Other(editable) can contain many things.
e.g ellipse,rectangle,line,image, text or etc...
i want that when user draw all the things on editable form he can save all it, in that position,in that size or in that color...
and he can also open these thing........
hghghgh
|
|
|
|
|
|
hi
how can i catch an exception that is thrown in business_logic layer
i have tried application.exception but it will catch (form1.cs defined members)
but i want to catch exceptions on separate dll ?
|
|
|
|
|
Hello @ all,
i have a problem: for our application (C#) we have create a language logic.
When you press CTRL and click with a DoubleRightMouseClick on a Control (exp: Label or other controls), a function will be called. For the most Controls no Problem, but i have a big problem to catch a DoubleRigthtMouseClick for the WindowsForm CheckBox....
What can i do??? MSDN says that the right MouseClick is not supported for checkboxes....
Maybe you can help me.
Thank you
Steven
|
|
|
|
|
Right click and Double click functionality are disabled in the source for the check box so you'll heve to create your own.
This should get you started
public class MyCheck : CheckBox
{
[Browsable(true)]
public new event MouseEventHandler MouseDoubleClick;
public MyCheck()
{
SetStyle(ControlStyles.StandardClick |
ControlStyles.StandardDoubleClick, true);
}
protected override void OnMouseDoubleClick(MouseEventArgs e)
{
if (e.Button== MouseButtons.Right && MouseDoubleClick != null)
MouseDoubleClick(this, e);
}
}
You'll need to stop the right click from changing the CheckedState though and there's probably other functionality that maybe a little strange or broken so test it thoroughly.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
Thats what i need,
thanks for fast reply
|
|
|
|
|
No problem, you're welcome.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
Hi
When u start internet explorer on Windows mobile and u don't have connection yet then explorer automaticly starts connecting to internet. The same thing i would like to do in C#.
I want that my aplication looks if i am connected to internet and if i am not then it should connected it self automaticly.
Thank you for the answer.
|
|
|
|
|
Hey,
I'm a high-school student. and I have to do a final project in C# or in any other language. I was thinkin' of a particular project. and this project needs a lot of graphic working.
I want to work with pictures... I want to work with the pictures as an array of pixels so I can compare it with another picture.
and I want also ro crop it and resize it.
so if anyone knows any eBook that I can use it will be great.
and also if there is another language that I can use instade of C#
Please I need your help,
Programmer.Nick
|
|
|
|
|
Search the articles on here, there are MANY exmples.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
I know there are many examples... but I don't know what examples to look for.
I need a paricular eBook or Book... that I can use which has the whole information that I need. Cause I want to start from the beginning.
Thanks
|
|
|
|
|
Have a look at Christian Graus' Image Processing for Dummies with C#[^] series. That should get you started
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
|
your welcome
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
please send me how to show list when i entered letter in textbox i am using asp.net 2.0 ajax the i want to lool like gmail
@nil
|
|
|
|
|
You should maybe ask in the ASP.NET forum but does this[^] help?
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
I am writing a windows application to upload file by using Backgroundworker and EventWaitHandle. But it doesn't get any respond after run the line 'handle.WaitOne();'. Can anyone help?
<br />
private void btnUpload_Click(object sender, EventArgs e)<br />
{<br />
BackgroundWorker worker = new BackgroundWorker();<br />
worker.DoWork += new DoWorkEventHandler(worker_DoWork);<br />
worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);<br />
MessageBox.Show("FTP 1");<br />
worker.RunWorkerAsync();<br />
MessageBox.Show("FTP 2");<br />
handle.WaitOne();
MessageBox.Show("FTP 3");<br />
}<br />
static void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)<br />
{<br />
MessageBox.Show("FTP 4");<br />
handle.Set();<br />
}<br />
<br />
|
|
|
|
|
One of the nice things about BackgroundWorker is that RunWorkerCompleted is raised on the UI thread. In your example, you have blocked the UI thread with the call to handle.WaitOne() , so worker_RunWorkerCompleted can never run and signal your handle
Also, the point of BackgroundWorker is to avoid blocking the UI thread. Why are you blocking it?
Nick
----------------------------------
Be excellent to each other
|
|
|
|