|
how send drawing over network connection
and how to make connected member see wat i drawing
in my board
|
|
|
|
|
You have given us very little to work with:
What do you mean by drawing: bitmap type (such as jpg, bmp or gif etc?) or vector type drawing?
What do you mean by send: You could e-mail this which would fulfil your requirements. It looks like you have a requirement to show changes live, how do you want to transfer the picture?
What do you mean by connected member?
What Board?
Just because you have some idea about your system, it does not mean we do!
You have not stated what you have done or what problems you are having (or even just said you have no idea how to proceed), just given a statement of some kind of requirement. Please read the site FAQs /the post at the top of the forum marked "How to Get an Answer to your Question". You are more likely to get a helpful response.
[Edit]
Seriously, read the FAQs and the top post: every single message you have posted has been voted 1 by multiple people.
|
|
|
|
|
imag bitmap or any thing in my board to see other member
in eboard messenger project
|
|
|
|
|
I assume you mean similar to an electronic whiteboard, crossed with a chat application?
If so, then it isn't too difficult: You will need drawing capture / storage / redraw application at both ends, with communications between them.
For the communications, Google for the Sockets class: they provide good solid machine to machine communications. MSDN[^] has a good description and an example.
For drawing, Google for "simple drawing c#" and you will find lots to start you off - remember that you only need to send the drawing elements between PC's (lines, circles, text, etc) - not whole bitmaps!
Good luck!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
|
|
|
|
|
Try telepathy, or carrier pigeons. Have you considered sacrificing a chicken? Right now, these are about the only ways you are going to have any chance with your project.
|
|
|
|
|
Stop asking the same question, go google or consider fast food as a career.
------------------------------------
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 have been working on some application which deletes a file on reboot...I used MoveFileEx function to do it...It works fine in WINXP...
but it doesn't works fine on WIN7....can any one suggest me to work it fine...
Thanks In Advance...
regards,
Avinash
|
|
|
|
|
Now how is this a C# question?
And what could we possibly tell you without seeing any code?
Maybe the issue is related to privileges?
Maybe the issue is related to your Win7 system being 64-bit, and your P/Invoke stuff being wrong?
Please read the "How to get an answer to your question" message on top of this forum, then ask your question properly.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Luc Pattyn wrote: Please read
You are getting hopeful, Luc!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
|
|
|
|
|
Hopeful is not the word I would use, as I now get some people stating they agree with a little bit of my answer, as has happened here[^].
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
It was the only bit that wasn't a question!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
|
|
|
|
|
When you make the call does the application actually create the registry entry at the location shown in the article at the link below; I.e. before you reboot, go and have a look at the registry and see if the file has been registered for deletion on reboot.
Also check the other registry setting that must be set to allow deletion of protected files (See very bottom of the article in the community content).
http://msdn.microsoft.com/en-us/library/aa365240(v=vs.85).aspx[^]
|
|
|
|
|
Hello,
Here is the answer for ur question... The following may help u well...
To have your C# (or any .NET program) run as Administrator in Windows, you'll have to create a manifest for it. What is a manifest file? I think Microsoft explains it best:
Every assembly, whether static or dynamic, contains a collection of data that describes how the elements in the assembly relate to each other. The assembly manifest contains this assembly metadata. An assembly manifest contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve references to resources and classes. The assembly manifest can be stored in either a PE file (an .exe or .dll) with Microsoft intermediate language (MSIL) code or in a standalone PE file that contains only assembly manifest information. (link to the entire MSDN article)
With a Manifest you're able to tell Windows Vista that your C# program wants to run as Administrator. This will cause the Vista confirmation window to pop up asking the user to grant the program access. Running as Administrator in Vista is required, for example, if your program is trying to create a WCF endpoint.
The following manifest XML tells the .NET Framework to run the Assembly that you specify as Administrator within Windows Vista:
<?xml version="1.0" encoding="utf-8" ?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="someExecName"
type="win32" />
<description>Your Program Description</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"><security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" />
</requestedPrivileges>
</security>
</trustInfo></assembly>
add this manifest file to ur c# application as follows
Goto project-->properties-->add manifest file
and debug ur program then it works better...
Avinash...
|
|
|
|
|
Hi,
Is there any good and easy way to iterate through all the outcomes of recursion? Basically, I've a maze solver algorithm which solves maze instantly and prints the solved maze. I've broken down the code into each recursive call, and I need iterate to through it one by one..like if I press some button, then execution should stop at that point and maze state should be returned to main class and execution should proceed from the same point when I press some button. There is java applet on this website, I need to make one similar to it.
[^]
Any help would be appreciated.
Thanks,
Shivam Kalra
|
|
|
|
|
|
I know. Is there any way of implementing "yield" on your own?
|
|
|
|
|
yes, you could do what the compiler does with yield , i.e. save and restore the entire state of the locals of all the nesting levels; it easily becomes quite cumbersome and I can't recommend it.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Alright. Thanks!
|
|
|
|
|
you're welcome.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
hi,
I can access what i need with this code in sql management studio Select SUM(total) From Income Where MonthName = 'February'
but can't do the same from c#. Thanks in advance
|
|
|
|
|
so?
are you the first person to have some difficulty with a database?
would you know of a site that holds some very relevant articles?
maybe you could use a search engine and get some suggestions?
BTW: I don't think storing months as strings is a great idea anyway.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
What have you tried? Show us your C# code and explain where it isn't working.
BTW: I agree with Luc on the "months as strings" bit: change them to a DateTime if you can. Consider this: every year has a "February" - do you want to sum last years in with this years?
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
|
|
|
|
|
I just changed the table names in my first question, in fact I don't hold months as nchar.
Below is what I tried. All I want is to get the sum of rows where MasaNo column value is "Gelir". I always check web before asking you.But eventhough I've done the suggested, no success
//one with parameters
string commandText = "Select SUM(Hesap) From Gecmis Where MasaNo = @MasaNo";
SqlCommand cmdGelir = new SqlCommand(commandText, sqlBaglanti);
cmdGelir.Parameters.Add("@MasaNo", SqlDbType.NChar);
cmdGelir.Parameters["@MasaNo"].Value = "Gelir";
//And this one
SqlCommand cmdGelir = new SqlCommand("Select SUM(Hesap) From Gecmis Where MasaNo = 'Gelir'", sqlBaglanti);
|
|
|
|
|
If this is all of the code that performs the query, then you're missing the command that actually launches the query. Did you see the ExecuteScalar[^] method of the SqlCommand object?
|
|
|
|
|
If you don't hold the months as nchar, what do you hold them as? Since you always test them against a string value (assuming as Dave says that you execute your query - I assume you do), you have to be storing them as a string of some kind.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
|
|
|
|