|
Google the WMV file format. You'll need to extract the data from both files and append them together with a new WMV header.
|
|
|
|
|
hi
i have an app that work with Sql server 2005 Database,for insert to it i used Stored Procedure as "sp_AddToPersons" and use this code to insert action :
SqlConnection con = new SqlConnection(Properties.Settings.Default.ExpressDBConnectionString);<br />
SqlCommand cmdInsert = new SqlCommand();<br />
cmdInsert.CommandType = CommandType.StoredProcedure;<br />
cmdInsert.CommandText = "sp_AddToPersons";<br />
cmdInsert.Connection = con;<br />
<br />
SqlParameter p1 = new SqlParameter("@personName", this.txt_name.Text);<br />
SqlParameter p2 = new SqlParameter("@personFamily", this.txt_family.Text);<br />
SqlParameter p3 = new SqlParameter("@personTel", this.txt_tel.Text);<br />
SqlParameter p4 = new SqlParameter("@personAddress", this.txt_address.Text);<br />
<br />
cmdInsert.Parameters.Add(p1);<br />
cmdInsert.Parameters.Add(p2);<br />
cmdInsert.Parameters.Add(p3);<br />
cmdInsert.Parameters.Add(p4);<br />
<br />
try<br />
{<br />
if (con.State == ConnectionState.Closed)<br />
con.Open();<br />
<br />
cmdInsert.ExecuteNonQuery(); <br />
}<br />
catch (SqlException se)<br />
{<br />
MessageBox.Show(se.ToString());<br />
}<br />
finally<br />
{<br />
if (con.State == ConnectionState.Open)<br />
con.Close();<br />
cmdInsert.Dispose();<br />
}
but the table in my database was not update and don't insert to it, how to solve my problem ?
|
|
|
|
|
I don't see anything obviously wrong with that code. What about the code of the stored procedure?
Also, you should avoid naming stored procedures starting with "sp". This is because SQL Server has a number of stored procedures beginning with sp and if you call one it will look in the master database first and might ignore your stored procedure. At least, that was the case with previous versions of SQL Server.
|
|
|
|
|
Colin Angus Mackay wrote: Also, you should avoid naming stored procedures starting with "sp".
Actually "sp" works fine, but "sp_" is the special prefix that is used for system procedures. Starting a procedure name with "sp_" does not only risk a name conflict with the system procedures, it will also prevent caching of the execution plan for the procedure. The database looks for a cached execution plan for the procedure in the master database, and as it doesn't find it there, it will always be recompiled, eventhough there might be a cached execution plan in your database.
---
single minded; short sighted; long gone;
|
|
|
|
|
I'm using FileSystemWatcher class to be notified upon any change in the file system of my server. But I wonder how I can obtain the information about the user that made the change. Any idea?
|
|
|
|
|
You don't. The FSW doesn't supply that kind of information.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
i dont think FileSystemWatcher can do that
Keshav Kamat
India
|
|
|
|
|
Well is there any other way to get the information I need?
|
|
|
|
|
In a WinForm if you create different BindingSources based on related tables in a DataSet, each time you create a new row in the child BindingSources the relationship key(s) value(s) are automatically entered in the child rows. This works really good.
My problem is I would like to be able to edit the key(s) in the master row.
If I do this then the child rows have no values created for the key(s) they take the value of null.
Is there a way to change the behaviour of the child BindingSources for them to take the new key(s) value(s)?
Is this even possible?
Thanks in advance for any ideas I am running out fast!
|
|
|
|
|
Hopefull that this helps someone in the future, all I had to do is EndEdit() on the master BindingSource!
A bit stupid from my part or was I
|
|
|
|
|
I'm thinking ahead, and wonder if anyone knows how a Type property is handled by its designers/typeconverters (if any)? What I'm hoping is that the designers/typeconverters for a Type property will allow entering the String class name of the type, and translate that to an underlying type field, f_MyType:
protected internal Type f_MyType = null;
public Type MyType
{
get
{
return f_MyType;
}
set
{
f_MyType = value;
}
}
TIA,
mike
|
|
|
|
|
Never tried it. I would suggest trying it real quick with a PropertyGrid. If it doesn't work, it shouldn't be too tough to write a custom type converter for that. I'm guessing it won't work, but shouldn't take much to test that.
|
|
|
|
|
Actually, I'd be tempted to write a type converter and maybe a UITypeEditor implementation that shows possible types to choose from.
|
|
|
|
|
Hello
http://www.computerworld.com/action...ticleId=9012149
May someone explain about "SendMessage API call"?
Thanks
Reply With Quote
|
|
|
|
|
Help me!! How to code by C#
Input: 3 matrix 2 dimension(values: R G B from image file)
Output: EZW
Thanks!!
ok
|
|
|
|
|
This is a google question, you need to find articles on the algorithm you want to impliment. What does it do ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i need to make a methed send me arabic number even in string formate....this will be used as class library project...not windows..or web application,
the problem that always .Net deal with number in english formate
i am using C#2.0,have any one any suggstions?
|
|
|
|
|
Do you want to generate devanagri script numbers like: ०१२३४५६७८९
If Yes read on:
You can declare chars with the appropriate unicode and then do a ToString() to get the number in the desired format:
//Following will return the Devanagri Font '2'.
char HindiTwo = '\u0969';
HindiTwo.ToString();
The Unicode for the devanagri fonts 0 to 9 is '\u0967' to '\u096F'
|
|
|
|
|
thx alot,
that what i wanted ...and that was the only way to use unicode instead depend on the enviroment culture,but may be the only problem we cannot parse that unicode as number,
but anyway it will be appear as i want
|
|
|
|
|
I am making a custom host designer[^] and I am having a problem with my selection band updating. When I change the size of an item that is selected in my custom host designer fails to update the selection band. The control itself has a larger size but the selection band doesn't update to the larger size until I unselect the control and reselect it again.
Chris
|
|
|
|
|
hiii,
i want to import flash file to c#... how can i do it??
i wana play a flash file bfoe my form starts ..
how can i do it???
help me....
sushant kaura
|
|
|
|
|
To construct the events of menuitems i need a filename initialization. How do i do that? ... Thanks
|
|
|
|
|
What does a filename have to do with creating menuitems?? What do you mean by "filename initialization"??
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Uhh.. wanna restate your question? I have no idea what you're asking.
|
|
|
|
|
Well menu item events are separate. One does not need Filename initialization. BTW, what is filename initialization?
Keshav Kamat
India
|
|
|
|