|
thanks for help...but in that way have to use a commen dialog box. isn't it? but i want to show my webcam preview in a panal or picturebox without using commen dialog box...is there a way to do that....?
A S E L A
|
|
|
|
|
S K Y wrote: but i want to show my webcam preview in a panal or picturebox without using commen dialog box...
I don't understand that.
The source code from the second link uses exactly the PictureBox control to show the captured video (picture by picture using timer). Please check out the provided source code for the article. The are 2 versions of the code available (for C# and VB). You can use the provided technique and place the PictureBox wherever you want.
Best wishes!
Nuri
|
|
|
|
|
hi...i couldn't download the zip file bcz got server error. do you have that zip file with you...(first article)
A S E L A
|
|
|
|
|
I also have the server error for the first article.
But i have downloaded and tested the source from the second one. It uses exactly the WIA, the PictureBox control and it is working!
|
|
|
|
|
Bloody hell. You've been given explicit instructions, day after day. Perhaps you should just abandon this project ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi,
When i click on a button ,it will check which version of mediaplayer is installed in that system. I am stucked here.What is the code for this in c#.
Pls help
|
|
|
|
|
string wmpExe = string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"\Windows Media Player\wmplayer.exe");
if(File.Exists(wmpExe))
{
FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(wmpExe);
}
|
|
|
|
|
Thanks for the replay, stancrm.
|
|
|
|
|
Hi rakesh312,
#1. Add a reference to your project point to \windows\system32\wmp.dll
#2. add this one in top of code :
using WMPLib;
#3 to get media player version is something like this :
WindowsMediaPlayer wmp = new WindowsMediaPlayer();
MessageBox.Show( wmp.versionInfo.ToString());
Good luck
|
|
|
|
|
How can i convert a List to Dataset?
Regards,
Alim
|
|
|
|
|
|
I try to develop windows mobile application. Pro grammatically i create database but it does not crate password. so it show password mismatch.
Plz help me this is my first windows mobile application...
My code is given below:
DataTable dt = new DataTable("ServerSettings"); dt.ReadXmlSchema(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + ("\\ServerInformation.bin"));
dt.ReadXml(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + ("\\ServerInformation.bin"));
SqlCeReplication repl = new SqlCeReplication();
repl.InternetUrl = @"http://" + dt.Rows[0]["PCName"].ToString() + "/DBRestaurant/sqlcesa30.dll";
repl.Publisher = dt.Rows[0]["PCName"].ToString();
repl.PublisherDatabase = @"DBRestaurant";
repl.PublisherSecurityMode = SecurityType.DBAuthentication;
repl.PublisherLogin = @"sa";
repl.PublisherPassword = dt.Rows[0]["PublicatrionPassword"].ToString();
repl.Publication = @"DBRestaurant";
repl.Subscriber = @"DBRestaurant";
repl.SubscriberConnectionString = @"Data Source=""My documents\DBRestaurant.sdf"";Password=" + dt.Rows[0]["SubscriptionPassword"].ToString() + ";Max Database Size=128;Default Lock Escalation =100;";
try
{
if(!System.IO.File.Exists("My documents\\DBRestaurant.sdf"))
repl.AddSubscription(AddOption.CreateDatabase);
repl.Synchronize();
}
catch (SqlCeException e)
{
System.Windows.Forms.MessageBox.Show(e.ToString());
}
|
|
|
|
|
Ignore repost
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Create database in windows mobile but when i run doesn't create password so exception for password mismatch.If i Create database in windows mobile it works fine...
How solve it...
Plz Help me . this is my first project of windows mobile.
Code is given below:
DataTable dt = new DataTable("ServerSettings");
dt.ReadXmlSchema(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + ("\\ServerInformation.bin"));
dt.ReadXml(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + ("\\ServerInformation.bin"));
SqlCeReplication repl = new SqlCeReplication();
repl.InternetUrl = @"http://" + dt.Rows[0]["PCName"].ToString() +"/DBRestaurant/sqlcesa30.dll";
repl.Publisher = dt.Rows[0]["PCName"].ToString();
repl.PublisherDatabase = @"DBRestaurant";
repl.PublisherSecurityMode = SecurityType.DBAuthentication;
repl.PublisherLogin = @"sa";
repl.PublisherPassword = dt.Rows[0]["PublicatrionPassword"].ToString();
repl.Publication = @"DBRestaurant";
repl.Subscriber = @"DBRestaurant";
repl.SubscriberConnectionString = @"Data Source=""My documents\DBRestaurant.sdf"";Password=" + dt.Rows[0]["SubscriptionPassword"].ToString() + ";Max Database Size=128;Default Lock Escalation =100;";
try
{
if(!System.IO.File.Exists("My documents\\DBRestaurant.sdf"))
repl.AddSubscription(AddOption.CreateDatabase);
repl.Synchronize();
}
catch (SqlCeException e)
{
System.Windows.Forms.MessageBox.Show(e.ToString());
}
|
|
|
|
|
|
Is it possible to create a custom control with two buttons that is , one custom control has to have two buttons together with different events. Is it possible? If so please give me some kick-off points.
|
|
|
|
|
|
Looks like the possibilities are infinite.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: Looks like the possibilities are infinite.
No, only 1.4 million possibilities. (from that link)
|
|
|
|
|
Hello,
VS 2008 SP1
I am using the code below to test whether the user is connected using either a wireless or LAN connection. i.e. that the cable is plugged in, or the wireless is switch off. The code works fine for this. However, if you can spot any potential problems with this or you know of a better way I would be interested to learn more.
However, the client would like us to check if the user is connected using a modem as well. As you can see from my source code I am looking for connection that start with either "Local Area Connection" or "Wireless Network Connection". This is ok.
However, the problem is that the modem name could be anything, as when the user sets up their modem connection using the 'new connection wizard' they can call this anything. So if my switch statement I don't know what to look for.
Any suggestions would be most helpfull,
public bool IsNetworkConnected()
{
NetworkInterface[] networkCards = NetworkInterface.GetAllNetworkInterfaces();
bool connected = false;
foreach (NetworkInterface nc in networkCards)
{
if (nc.Name.StartsWith("Local Area Connection"))
{
if (nc.OperationalStatus == OperationalStatus.Up)
{
connected = true;
}
}
if (nc.Name.StartsWith("Wireless Network Connection"))
{
if (nc.OperationalStatus == OperationalStatus.Up)
{
connected = true;
}
}
}
return connected;
}
|
|
|
|
|
Why search by adapter name! It can be renamed. There is the NetworkInterfaceType property in the NetworkInterface class so you can know if an adapter is a GenericModem, Ethernet...
Network.IsAvailable[^] indicates network availability (which can be just a LAN without internet access). NetworkInterface.OperationalStatus indicates network adapter state. Both don't indicate internet access which I assume it's what you seek. In this case, use the System.Net.NetworkInformation.Ping class.
Eslam Afifi
|
|
|
|
|
Hello Everyone-
I'm just getting started with doing some Windows Forms programming. I'm wondering what the proper way to go about designing a Form with multiple pages in it is. I am wondering if there is a way to design this all in the Visual Studio Editor rather than create all the controls in code and place them.
Here's an example of what I want to do. If you've ever seen Outlook. Left hand side there is a bunch of options. Calendar, Mail, etc. You click Calendar and the right hand page shows you the calendar view. If you click on Mail, the right hand side shows you your mail. I'm looking to have functionality similar to this. You select an option on the left hand side, and the right hand page is displayed based on what the end user wants to do.
I'm wondering if it is possible to create all of this in the Visual Studio Editor so I can draw controls and size them and all that good stuff. What I am basically looking to do is almost have a Tab Control on the right hand side with multiple tabs and different controls on those tabs, and the ability to edit them easily in the editor (like with the tab control, you click on the page and presto, you can draw whatever you like on there) ... looking for the tab control without the tabs on the top!
Thanks so much in advance. I'm just looking to be pointed in the proper direction is all. Spent two hours searching but can't find exactly what I am looking for.
|
|
|
|
|
shultas wrote: I am wondering if there is a way to design this all in the Visual Studio Editor rather than create all the controls in code and place them.
Of course - there's a forms designer in visual studio.
The way I'd do this, is to create controls for all the views, put them all in a control, and just change which one is visible as the option is selected to show them.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Ok I'm familiar with the form designer in VS. What I'm not familiar with is ... "create controls for all the views, put them all in a control, and just change which one is visible". So "Put them all in a control", what control? What would I draw using the forms designer to place all of these controls into? I was thinking of something such as a panel, but when I set Visible of the panel to false in the designer it does not "disappear" from view, making it impossible to draw multiple panels with multiple controls and design it easily.
Thanks!!
|
|
|
|
|
shultas wrote: So "Put them all in a control", what control?
Any control you like. Create a user control for each pane, you can set that up in the designer. create a control to hold them all with a property to set which one is visible.
shultas wrote: when I set Visible of the panel to false in the designer it does not "disappear" from view,
Which is why you create each one as a seperate control, THEN put them all together.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|