|
Thanks.
The solution I went with was to add:
protected override bool ProcessCmdKey(ref System.Windows.Forms.Message m, Keys k)
{
if(k == Keys.Enter)
bEnterPressed = true;
return false;
}
|
|
|
|
|
Hi,
my team is trying to develope an capture tool in c#.Net. It should have follwing fuctionalities......
1) can capture From dv-avi (camcoder) to MPEG2 directly
2)while capturing the date and time information (which was in raw format ) is lost. We want that information to persist in MPEG2 format
can u pls help or guide me to do this..coz i m very new to C#.Net programing...
|
|
|
|
|
I need a Cyclic Visual for a form I am developing. A cyclic is the control in a helicopter that the pilot usings to steer the aircraft. What I need is an overhead view of the position of the cylic. I.e. a circle with maybe a dot or something indicating its position. Any help would be much appreciated. Thanks
D
D
|
|
|
|
|
I don't you'll find one for this specialized of a purpose. You'll have to write your own control to do this.
|
|
|
|
|
I don't think you'll find one for this specialized of a purpose. You'll have to write your own control to do this.
|
|
|
|
|
Hi,
I have a project in which i have to load a avi file and capture x number of frames (viedo only) from it and save in a web compatible format (JPEG , GIF) , also this needs to be done as a back-end process with the front end being ASP.Net . Can any one help ?
I have browsed through the samples here but they deal with capturing from a video source(web cam, tv etc) and not from a avi file. This means they are also very difficult to comprehend as i am not a experienced programmer. So I am hoping for a simpler solution to this , a simpler problem !
Thanks
balien
|
|
|
|
|
Hello
You should search more deeply. Look at my article "Motion Detection Algorithms" [^]. You can find there a small interop library for AVI reading using Video for Windows .
You can try to interop DirechShow also, or to use managed extension of DirectX 9 .
With best regards,
Andrew
|
|
|
|
|
By the way, here is another article[^], which is fully dedicated to AVI's using C#.
With best regards,
Andrew
|
|
|
|
|
Hi,
I created a web application in c# to create a record with attachment. While creating a new record I have an option to create an attachment on a separate window? What I am doing is once the user click the attachment button I automatically create a header record then from the new window upon saving the attachment I created the detail information using a temporary primary key. When its time to save and press the SUBMIT button, I update the primary key to a standard primary key that is readable to the users.
Please tell me if what I am doing is correct, or if you have any suggestion on how implement in a correct way.
DRAWBACK: After pressing the attachment button (It means I create a header record) the user will change his mind an abort everything that he is doing and just close the window. I will have 1 record from the database (garbage).
/Dabuskol
|
|
|
|
|
Is it possible to identify which control is on a form. For example can i return a string which saya that there is a textbox control on a form, etc.
|
|
|
|
|
Use FindControl method
HVP
|
|
|
|
|
You can also use the Controls property of the Form class for this purpose. It returns an object of the Control.ControlCollection class whose members can be used for the purpose desired by you.
Regards,
Ashok Dhamija
_____________________________
Padam Technologies
|
|
|
|
|
Hi
Can anyone help me with this problem.
------------------------------
PDA Transportes.exe
TypeLoadException
FormTransMain::.ctor+0x2c
FormTransMain::Main+0x5
------------------------------
This happens on an application that uses a library that uses Web Services.
And i allready made debugging of the problem, the error comes when calling
the web services.
This occurs in the emulator of VS2003 and in the Pocket Pc.
Both library and application where built on C#.
I reall don't what to do anymore.
Thanks for all the help.
|
|
|
|
|
Usually this comes when the type's static constructor throws an exception.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
hye there. I need to hide the column of datagrid. the story is I am fetching the record from one table containinng primary keys and some other information which I need for processing at latter stage but dont want to show it to user. Can any one tell me how to do it. Plus need change the caption of the columns with out changing the names in DataTable
any support would be appreciated.
thanks in advance.
|
|
|
|
|
Hi,
Just make the column visible=false. You can still use the value of that column though it's invisible. You can use the E.Item.Cells[x].Text to get the current value.
Other way is to Grid.Columns[1].Visible = false;
/Dabuskol
|
|
|
|
|
I think you are using any third party data grid. I was talking about the Dot net DataGrid in Visual Studio 2003. there isnt any property like you mentioned.
please have a look and let me know if I am missing any thing.
regards
|
|
|
|
|
There are two ways to do it.
(1) Create custom table style. And dont add DataGridTextBoxColumn for the columns you dont want to display.
http://www.codeproject.com/cs/miscctrl/noogenwinforms.asp
(2) You can use your DataSet's ColumnMapping property to hide a column.
// Creating connection and command sting
string conStr = @"Provider=Microsoft.JET.OLEDB.4.0;data source=C:\northwind.mdb";
string sqlStr = "SELECT * FROM Employees";
// Create connection object
OleDbConnection conn = new OleDbConnection(conStr);
// Create data adapter object
OleDbDataAdapter da = new OleDbDataAdapter(sqlStr,conn);
// Create a dataset object and fill with data using data adapter's Fill method
DataSet ds = new DataSet();
da.Fill(ds, "Employees");
// Hide the column and attach dataset's DefaultView to the datagrid control
ds.Tables["Employees"].Columns["LastName"].ColumnMapping = MappingType.Hidden;
dataGrid1.DataSource = ds.Tables["Employees"];
|
|
|
|
|
Hi,
Im not using any third party its part of the C# .net datagrid controls.
Please follow this link, it has everything you need to know about datagrid.
DataGird Girl[^]
Hope this would help you.
Good Luck.
|
|
|
|
|
Hi.. sorry if this is counted as a double loop.
My situation is i wanna seen a string though serial but with the enter key..<cr>
but right now is i sent use what i type in a textbox(words i type +enter key)
then click sent..
the send button is open()-> write () read () then close().
so how guys..
secondly i have another.. problem..
the program is link to a PLC and whenevrer i sent a order command using series, it wil reply me.. but the problem is i only reply some time.. even with e same command..
What can be the pro?
or should i start a thread just for listening?
private void btnSent_Click(object sender, System.EventArgs e)<br />
{ <br />
line.Open(); <br />
<br />
string SentString = txtbox.Text ; <br />
ArrayByte_Data = new byte[SentString.Length];<br />
for( int i = 0; i < SentString.Length; i++ )<br />
{<br />
ArrayByte_Data[i] = Convert.ToByte(SentString[i]);<br />
<br />
}<br />
line.Write(ArrayByte_Data); <br />
<br />
string ReplyString;<br />
ReplyString = Encoding.ASCII.GetString(line.Read(10));<br />
txtStatus.Text=ReplyString;<br />
line.Close();<br />
<br />
<br />
}
this is my send code..
pls advice
|
|
|
|
|
i am working with c#.net Console application.
i m using the following code snippet
NavigateDocumnet()
{
object o = null;
// some code here
// Every time "NavgateFile" value is changed"
m_WebBrowser.Navigate(NavigateFile,ref o,ref o,ref o,ref o);//problem is here
// some code here
NavigateDocument(); // Recursive funtion
}
in Document_Completed
{
mshtml.IHTMLDocument2 doc=(mshtml.IHTMLDocument2)m_IExplorer.Document;
mshtml.IHTMLElement BodyElement=doc.body;
//Retrieve all Text from Body Tag
string BodyText=BodyElement.innerText;
// writing text into file
}
Now my problem is that every time when m_WebBrowser.Navigate(NavigateFile,ref o,ref o,ref o,ref o) is called it did not wait for document complete. it called continuesly without wait for document complete. for example if Recursive loop call 10 time. documnet complete is called only 2 or 3 times. first time it called for 1 page after that it skip some address and then it called for 5 0r 6 page and then so on........
i want every when m_WebBrowser.Navigate(NavigateFile,ref o,ref o,ref o,ref o) is called it wait for document complete and then Navigate another address and so on.......
Amit Grover
CDAC R&D
Gist Group
pune
|
|
|
|
|
I got a question for you, why you using webbrowser control in C# console applicaion?
- ashish
|
|
|
|
|
Sorry its not a Web Browser Control . Its internet Explorer . i used the following coding
m_IExplorer = new SHDocVw.InternetExplorer()
Amit Grover
CDAC R&D
Gist Group
pune
|
|
|
|
|
For what you are using Internet explorer from Console Application?
- ashish
|
|
|
|
|
Could someone please tell me how to convert existing form data(say data in a textbox) into XML on the basis of a already created XSD. Basically how do you associate an XSD to u're C# code.
|
|
|
|