for example this function are for change picture
this function in from1 :
public void tas_pic()
int rand = tas.taas();
for (int i = 1; i <= 6; i++)
PictureBox picbox = ((PictureBox)this.Controls["pb" + i.ToString()]);
picbox.Visible = false;
PictureBox picboxtas = ((PictureBox)this.Controls["pb" + rand.ToString()]);
picboxtas.Visible = true;
i cant move to a class as method and use this method in form1
What should I do?
If you don't want to decrypt the video to disk, play it, then delete the decrypted version (which pretty much destroys the point of even encrypting it in the first place!), then you'll have to write a codec which you build into the graph that's going to decode and play the video and audio.
This is NOT for a beginner and you are not going to be writing it in anything but C/C++. Using managed code to write this would be a much bigger pain than it's worth.
Usually you temporarily decrypt the file... play it on any player... then encrypt it when done and get rid of the file. You could decrypt as you go if you make a codec, I believe someone else already suggested that, but that's probably not as common as you might think it is.
Make your subject descriptive of your problem: "Help" is not very useful as we already know you need help - or you wouldn't be asking... Perhaps in this case "Fingerprint reading for WinForms" would be better?
Then, give us details: remember that we can't see your screen, access your HDD, or read your mind - so give us all the relevant information. In this case, the make and model of your reader would probably help, as well as what you have tried so far, and what problem you have found.
Just asking "can some one help me about the finger print code" makes it look like you have done nothing yourself and want us to do your job for you. This can annoy a lot of people and isn't likely to get you a good response. Show us you have tried, show us what help you need!
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
In a C# 2008 windows application, I am getting the following error messages:
Process 9528 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\TrustedPeople
Process 8880 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\TrustedPeople
Process 9528 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\My
Process 8880 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\My
Process 9528 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\Disallowed
Process 8880 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\Disallowed
There is no code in the appliation to use registry, thus the only thing I think can be wrong is something about the connection string to the database.
Here is the connection string in the database to a sql server 2008 r2 database:
What makes you think those are errors? I don't see anything that says those are errors. Trace information...yes. But I have no idea what's generating them as the debugger doesn't normally output registry accesses by your code.
I am trying to determine what could be causing the registry keys to be open when I have no code form them.
I am thinking the problem can be one of the following:
1.objects are created? would you dispose of all the objects?
2. The connections to the database are linq to sql statements. Is there a way to close all the objects?
3. When I create a linq to sql database object, should I be disposing of each object after it is no longer needed?
The account that is being used is setup for an applicaiton by using a sql server
login. The account also has some kind of rights to windows.
Not sure what that means. The URL indicates you are using a SQL Server user to log in.
The application cannot be running with that user because it isn't an OS user. Even if the name is the same it is still a different user.
and/or tell me what you think can be wrong?
What happens when you comment out all of the code that accesses the database?
I wanted ention/ask the following:
1. I did find out that the username and password for both windows and sql server are the same name and value. Basically windows username and password are exactly the same as the sql server login. Could this cause a problem? if so, what would the problem be?
2. Since the value for connecting to the database comes from an app.config file, is there any way to comment out that connection string information and the vale and the application still works? I would think this would be possible if integrated security=true in the app.config file. I would think if integreated security is not set, and a user name and password is supplied, then the sql server login would be true, correct?
I did find out that the username and password for both windows and sql server
are the same name and value
Which doesn't mean anything. There are two users, in two different contexts and thus they have different access abilities.
Since the value for connecting to the database comes from an app.config file, is
there any way to comment out that connection string information and the vale and
the application still works? I would think this would be possible if integrated
security=true in the app.config file
Phrased awkwardly but presumably if you are asking if you can remove the user/pwd from the connection string and user a windows user instead.
If so then yes.
I would think if integreated security is not set, and a user name and password
is supplied, then the sql server login would be true, correct?
I'm having a few issues with my code, i'm following this tutorial http://www.homeandlearn.co.uk/csharp/csharp_s12p6.html Can anyone point me in the right direction. I've included my code below.
The best overloaded method match for'System.Data.SqlClient.SqlDataAdapter.SqlDataAdapter(string, System.Data.SqlClient.SqlConnection)
<pre lang="c#">Argument 2: cannot convert from 'System.Data.SqlServerCe.SqlCeConnection' to 'System.Data.SqlClient.SqlConnection'
publicpartialclass Form1 : Form
public OpenFileDialog dialog = new OpenFileDialog();
privatevoid btn_sel_Click(object sender, EventArgs e)
//dialog.Filter = "*.sdf";
privatevoid btn_close_Click(object sender, EventArgs e)
con = new System.Data.SqlServerCe.SqlCeConnection();
con.ConnectionString = "Data Source=" + dialog.FileName + ""; //opening dialog (selected file)
ds1 = new DataSet();
string sql = "SELECT * From tbl_games";
da1 = new System.Data.SqlClient.SqlDataAdapter(sql, con);
And you think we can guess what trouble that is? Please show the exact code you are using and what errors you receive. If you look closely at the link I gave you it shows exactly what parameters are required by the constructor. Have you done it correctly?
You're trying to mix and match similarly named classes from System.Data.SqlServerCe and System.Data.SqlClient namespaces. Understand which platform you're targeting and use the appropriate namespace for the platform.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
Last Visit: 31-Dec-99 19:00 Last Update: 30-Apr-16 13:48