|
ContextMenuStrip offers both BackColor and ForeColor propreties. Set those.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Hello Everyone
In my project i have a modules in which sub modules are as.,
1. Admin( entering the Emp Details)
2. Operator ( Entering the Visitor Details)
3. Client (Emp's)
at start the login window will come and then deponding the user name and password they will login
i have already created Admin and Operator and working file
Admin will enter all the details of employee.
Operator : when visitor comes he will enter the details of visitor like name, company number Photo (using webcam) of Visitor etc.....
then this information needed to send the person whom the visitor want to meet ( Client) (Employee) through LAN.
As soon as the Operator send the information
and Emp will see the photo and details, he has the option of accepting or rejecting....... if accepting print the Visitor Card..... or else leave
i am not getting wat to use. Socket or Remoting or WCF ?
does socket support image sending?
i thought about WCF but finding it diffcult to implement
kindly help me
Thanks in adavance
|
|
|
|
|
amaankhan wrote: i am not getting wat to use. Socket or Remoting or WCF ?
Socket will be the simplest method of all.
amaankhan wrote: does socket support image sending?
Socket won't know any difference between image and data. You can have your own protocol and add some header information to the client side application to know that the data coming is a image file. The application can then display the image and name accordingly.
|
|
|
|
|
|
Any more Suggestions from anyone
thanks
|
|
|
|
|
|
|
|
collisa wrote: Where can I download source code for free?
No idea, try searching through Google!
|
|
|
|
|
I had to check, you are obviously new to CP, so read the guidlines, decide wether this is a forum you want to use as your development LEARNING resource.
From this question I do not expect to see you here again, except possibly to trade insults because we will not send you the code.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have a Problem in Printing Receipt using EPSION DotMatrix Printer using C# program. The Report has been designed in CrystalReport11-R2. My papers size is Heigth:10 inch Width:9.5 Inch.
Printing single page is ok, but when i print morethan one page at once datas are printed in unrequired location.
So, I want to ask which paper setting should be done for my paper and how?
In short, How can i Print receipt in continuous sheet paper having height 10 inch and Width 9.5 inch using EPSION Dot Matrix Printer using C# code?
Please Help Me:
|
|
|
|
|
Hello friends I want to call a function on pressing Ctrl+S button.
how can I do this?
Thanking in Advance
S.N.ALam
|
|
|
|
|
In a Winforms application? I'd make a Menu item and set Ctrl+S as the hot key.
(Or I could be completely wrong; I ate a handfull of chocolate-covered espresso beans.)
|
|
|
|
|
Just listen for the KeyPress event of the form (if it's in fact a WinForm application). When the key, or the key combination, is pressed just run your method. For instance:
this.KeyPress += new System.Windows.Forms.KeyEventHandler(this.MyApp_KeyPress);
private void MyApp_KeyPress(object sender, System.Windows.Forms.KeyEventArgs e)
{
if (e.KeyCode == Keys.F5)
{
this.MyMethod();
return;
}
}
private void MyMethod()
{
MessageBox.Show("MyMethod");
}
|
|
|
|
|
Hey,
I got a project to make an video application (that I can see myself on windows form).
The problem is that I dont know how to do that kind of things, so I searched the net and found the WIA COM and thinking of using it.
I found that article: WIA Scripting and .NET[^]
But for some reason my computter says that the COM "WIALib" not exists... so I continued search and found that:
http://www.codeguru.com/forum/showthread.php?t=439027[^]
But for some reason, the line
CommonDialogClass class1 = new CommonDialogClass();
Gives me an problem
Error 2 Interop type 'WIA.CommonDialogClass' cannot be embedded. Use the applicable interface instead. C:\Users\Yahav\Documents\Visual Studio 2010\Projects\ControlCamera\ControlCamera\Form1.cs 69 40 ControlCamera
and the same for that:
DeviceManager manager = new DeviceManagerClass();
Someone can explain me why?
Thank you very very moch! Yahav.
Gindi Bar Yahav - Web & Software developer.
|
|
|
|
|
|
hello i cant understand it all can u explain ....
WIA.CommonDialog Class' cannot be embedded. Use the applicable interface instead.
please ..
|
|
|
|
|
In the properties of assembly,
Change "Embed Interop Types" To 'False'
|
|
|
|
|
Hi all, I am trying to use SQLite database for my App. It seems like I can insert datetime into datetime column.
Does anyone know how to do this.
thanks in advance.
|
|
|
|
|
If you use a parameterised query, it will take care of any data type conversion for you. What have you tried ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
purpose
I am implementing a singleton "message queue". Several threads will enqueue messages to this queue and the worker thread will dequeue messages and process the message.
problem
in the line: "instance.threadWorker = new Thread(new ThreadStart(MessageWorker));" causes the error...
"An object reference is required for the non-static field, method, or property 'Application_Messaging.class_MessageQueue.MessageWorker()'"
code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
#pragma warning disable 0628 //suppress "new protected member declared in sealed class"
namespace Application_Messaging
{
public sealed class class_MessageQueue
{
private static class_MessageQueue instance = null;
private static readonly object padlock = new object();
private Thread threadWorker;
protected class_MessageQueue()
{
}
public static class_MessageQueue Instance
{
get
{
lock (padlock)
{
if (instance==null)
{
instance = new class_MessageQueue();
instance.threadWorker = new Thread(new ThreadStart(MessageWorker));
instance.threadWorker.Start();
}
return instance;
}
}
}
private void MessageWorker()
{
}
}
}
how can I get the worker thread running ?
|
|
|
|
|
Should the thread be spun off in the constructor?
And why have the constructor protected rather than private?
|
|
|
|
|
"protected" is how Microsoft showed the singleton pattern on MSDN
|
|
|
|
|
I bet they didn't seal it though.
|
|
|
|
|
A static constructor/method/property cannot access any non-static members in its class; that includes both data members and code members (constructors/methods/properties).
==> make MessageWorker() a static method.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|