|
What is the socket config you have done? It will depend upon it.
I assume that the socket config is at fault
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
How to create my own .tsk theme file, change details in file?
Can't find any information in MSDN and internet.
Thank you
|
|
|
|
|
Just for reference as probably other people might come across this question like I did when searching how to build a Pocket PC Theme file (*.tsk). A TSK file is a simple CAB file renamed. When the Pocket PC reads this file it simply performs a install of this cab, which usually contains theme configuration info (but in truth could contain anything).
|
|
|
|
|
I want to access the induvidual frames of a video file (avi, mpeg) make some modifications and save the frame. Is this possible using C# ? if not what other languages can do it ?
|
|
|
|
|
Yes it is. Use the DX interop to get the reference to the frame buffer and bingo! its done.
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
Hi everybody
I'm looking for a way to automate telnet.
I looked around on the web for some information, but the closest thing I found is how to create web server, which is not exactly what I want...
Can anyone direct me a bit how can I control and automate a telnet, or at least a console (it would be a starting point).
Thanks alot!
|
|
|
|
|
Hello
If your telnet is a console, I don't know if this would work or not but you may give it a try!! Even consoles in WinXP are considered windows to some extent!! Than means that the window in which the console is displayed on is still a window and still has a handle. Try sending it messages with key strokes using Windows API SendMessage() function.
Regards
|
|
|
|
|
|
What do you mean by automation?
Implementing the Telnet protocol with the server shall do this easily and you can find tons of example on this
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
sorry for the ignorance, but how do I implement telnet protocol ? (or can you at least direct me to an example).
Its the first time I'm trying to implement a protocol
|
|
|
|
|
No Problemo Buddy. I am in India and it 2 AM here. Gotta catch some sleep )
Would it do if i sent you an implementation done earlier? Would that help?
Send me your id and will mail it to you....
YAWN!!! Sleepy I am )
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
hey, it would be a great help if you would just give me an article or something. I will start looking for one again.
Thanks again!
|
|
|
|
|
Hey, I got it myself!
Thanks anyway!!!
|
|
|
|
|
Well I am talking about a full fledged telnet client, that I had to code for one of my projects, to enable citrix console guys to hook in as per the policy defined. Anyways, good that you found soemthing. Many fo the samples out there, but then they have some potential loose ends as far as i have seen.
Excelsior
Arjun Bahree
"By The Might of Mjolnir"
I Came! I Coded! I Conquered!
|
|
|
|
|
hello,
Can anyone help me in creating an equivalent vb.net argument type property development in c#. I have one code tell me how to implement the same thing in c#
Public ReadOnly Property GetValues(ByVal index As Integer) As DataRow
Get
GetValues = m_RecordTypeDS.Tables(0).Rows(index)
End Get
End Property
|
|
|
|
|
Hello
The property you are talking about -If I got you right!!- is called indexer in C#. You use it like this
MyReturnValue = MyObject.MyProperty[Sometype];
MyObject.MyProperty[Sometype] = SomeValue;
To make an indexer like the property you posted you simply write this syntax
public DataRow this[int Index]
{
get
{
return m_RecordTypeDS.Tables[0].Rows[index];
}
set
{
m_RecordTypeDS.Tables[0].Rows[index] = value;
}
}
Regards
|
|
|
|
|
hi guys, is there any way to move from one line of code to another in C#, something like GOTO in some previous languages ?
Mr.K
|
|
|
|
|
Hello
Sure!! There are still gotos and labels in C#
private void SomeThing()
{
goto MyLabel;
MyLabel:
}
Regards
|
|
|
|
|
this is the way
<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
int i;<br />
for (i = 0; i < 10; i++)<br />
{<br />
if (i == 5)<br />
goto skip;<br />
}<br />
skip:<br />
MessageBox.Show("i = " + i);<br />
}<br />
<br />
but this is not so robust
try this
<br />
private void button2_Click(object sender, EventArgs e)<br />
{<br />
int i;<br />
i = skip();
MessageBox.Show("i = " + i);<br />
}<br />
<br />
private int skip()<br />
{<br />
for (int i = 0; i < 10; i++)<br />
{<br />
if (i == 5)<br />
return i;<br />
}<br />
return 0;<br />
}<br />
|
|
|
|
|
I am developing a windows application in which I am calling a dialog window in a thread. When I minimize the Dialog, it not only minimize but also closes. Why it is showing this kind of behaviour?
The code i used is:
On Form1:
private void button1_Click(object sender, System.EventArgs e)
{
Thread td = new Thread(new ThreadStart(initiateForm2));
td.Start();
}
private void initiateForm2()
{
Demo frm2 = new Demo();
this.Hide();
frm2.ShowDialog();
}
On Form2:
private void btnMinimize_Click(object sender, System.EventArgs e)
{
this.Hide();
}
The problem is that when I hide the second form, it also call the Closing event of the Dialog form. It closes the dialog window. Why it is so?
Thanks,
Sandeep S. Sekhon
|
|
|
|
|
I guess this behaviour is caused by the fact that you show the second form as modal dialog. Use the Form.Show method to display the second form. Furthermore you should no longer need to do this inside an extra thread, so the whole thing cuts down to:
private void button1_Click(object sender, System.EventArgs e)
{
Demo frm2 = new Demo();
this.Hide();
frm2.Show();
}
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
hello
i want to make report in my WinApp
i want to dispaly just One record at each page
plzzzzzzzzzzzzzzzzzzzzzzzzz
i want help give me an example to do that ...
Palestine
|
|
|
|
|
What kinf of reports are you talking about?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I have a datagrid view that has a number of cells that are readonly.
The default behavior of tabbing in a datagridview is to go to the next cell. What I'm looking to do is make it so that it skips readonly=true cells and goes to the next cell.
Here's my problem. No element(that I can find) within the datagridview has a tabstop property, so I need to handle the keypress event.
The problem I have is, I can't seem to catch it. I've tried handling datagridview.keypress, and even handling the EditingControlShowing event to assign a handler to the textboxes that make up the dgv to handle the tab.
So here's my question, has anyone done this themselves, or has any idea how to skip cells that are readonly in a datagridview?
|
|
|
|
|
Hello
If you have .Nt 2.0 you can handle PreviewKeyDown event which can catch the tab key, or handle the CellEnter event and shift the focus to the nearest non-readonly cell.
Regards
|
|
|
|