|
The TreeNode class has a Tag property that is an Object , since everything (practically) descends from Object , you can store anything there.
There is a reasonable example of doing this in the MSDN documentation for TreeNode.Tag .
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi,
How to get the child node text of all the checked child node in a tree view control?
Thankyou,
YPKI
|
|
|
|
|
check it recursively.
if(node.Checked) {stringBuilder.Append(node.Text);}
|
|
|
|
|
how can i make datagrid text box cell editable on double click so that when i double click on it it comes to edit mode.
|
|
|
|
|
To answer your question, look up the documentation for the CellDoubleClick event.
Although, why? The cell should go into edit mode when you click on it.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
i have set readonly property of textbox cell to false in cell double click event but it comes to edit mode after 3 clicks.
|
|
|
|
|
I am sure that there must be a way to put the cell into edit mode in code, but I cannot find one at the moment.
I have not tested this, but until you find a better way, you could call the RaiseClickEvent() method at the end of your DoubleClick handler.
If I find a better way, I'll get back to you.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi.
I have this console based Asynchronous VS project that works fine.
And then i have a remoting project which also works fine. I want to edit the remoting project so it is non-blocking, using asynchronous calls.
I´ve tried different examples, but I cant get it to work. None of them seems to call my callback method back.
Here is the relevant snippets:
The remote object:
....
public class MultiContainer : MarshalByRefObject, IMultiContainer
{
public string GetClientsList()
{
Thread.Sleep(1000);
return Program.ServerForm.GetClientsList();
}
....
The client which accesses the remote object with asyn call:
namespace Client
{
public partial class Form1 : Form
{
Server.IMultiContainer mc;
private delegate string Delegate();
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
mc = new Server.MultiContainer();
Delegate del = new Delegate(mc.GetClientsList);
AsyncCallback callback = new AsyncCallback(Callback);
del.BeginInvoke(callback, null);
}
private void Callback(IAsyncResult ar)
{
Delegate del = (Delegate)((AsyncResult)ar).AsyncDelegate;
richTextBox1.Text = del.EndInvoke(ar);
}
...
Been sitting with this problem for hours, hope you can help!
Thanks alot 
|
|
|
|
|
I made a Server / Client ( socket Connection)
in Server Form i am having a Panel in which a Video will be played selected by the Server Admin, i want to same file should be played on 25 client machine. whatever actions done by the admin like forwarding etc. should be showen on the client . is this possible.
can we stream the video files like this. help me
thanks in advance
|
|
|
|
|
Why did I spent hours explaining to you how to do this, if you're going to just ask the same question all over again ? Why should anyone answer you, if you're not going to bother to do anything that I suggested before ?
amaankhan wrote: can we stream the video files like this. help me
As discussed, you'd be a moron to stream the actual video. You've got next to no chance of keeping things in synch that way.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Sir last time u told me to store the file on shared location.
i used that i am running on 2 client and its working fine. but how come forwarding and pausing that option .
As when server will forward the video the video on the client should also be forwards
sorry sir,
|
|
|
|
|
amaankhan wrote: As when server will forward the video the video on the client should also be forwards
I don't know what this means, but I told you to put the file on a network share, send the path to the file to each client, who could then copy it locally, and to use the network connection to send commands telling it when to play/pause/etc. There is NO way you're going to stream the file and keep it in sync.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Now *THIS* one, I remember...
|
|
|
|
|
You can. First you need to create so that there a frame capture or screen capture with a speed atleast 25 fps(This is for Europian PAL. USA uses almost 30 fps)and then send over network. Also you would need to make sure the client uses buffer for smoother streaming
|
|
|
|
|
thanks. can u give any example/sample reference link
|
|
|
|
|
|
thanks i will see it ....... thanks
|
|
|
|
|
Streaming video, over the network, to multiple users, with sound, at 25 FPS, and keeping it in synch ? You're insane.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: You're insane
Yep. But I (and probably you) worked that out last time...
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Hello. I have a question that i would like to ask all the codeproject members.
I have this cenario:
TextBox.DataBindings.Add("Text", DataTable, "Field", false, DataSourceUpdateMode.OnPropertyChanged)
A textbox is binded to a DataTable field. When i change the text on the textbox the cell from the datatable receives the new value, but the RowState of the current row doesn't changes to Modified, it keeps the Unchanged state. Only when i change to another row in the DataTable (the DataTable is binded to a DataGrdiView) that the RowState of that row is changed to Modified. The problem is that when i have only one row and the user saves the information, i use a batch update to save the changes in the DataTable, but as the row keeps the Unchanged State is doesn't gets to the update.
Is there any way to solve this?
Thanks in advance.
|
|
|
|
|
It is possible that the Row is still in Edit Mode.
When the user saves, does your code call EndEdit ?
If this is a possibility, see How to: Commit In-Process Edits on Data-Bound Controls Before Saving Data[^] on MSDN.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Right before you call update on the data set, call this:
private void CommitChanges(DataSet ds)
{
foreach (DataTable dt in ds.Tables)
{
foreach (DataRow dr in ds.Tables)
{
dr.EndEdit();
}
}
}
Or, you could first subscribe to the ColumnChanged event on the table
dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);
then in the event do this:
static void dt_ColumnChanged(object sender, DataColumnChangeEventArgs e)
{
e.Row.EndEdit();
}
Everything makes sense in someone's mind
modified on Wednesday, October 7, 2009 11:28 AM
|
|
|
|
|
Thanks to the both of you. Although i'm using .net 2.0 the answer from Henry Minute was correct for that i thank you.
The asnwer from KMAROIS was exactly what i was looking for. Thanks 
|
|
|
|
|
Hi all..
========================================
TYPE Public_Rec IS RECORD
(user_id SETUP_TAB.user_id%TYPE,
tool SETUP_TAB.tool%TYPE,
database SETUP_TAB.database%TYPE);
========================================
FUNCTION Get (
id_ IN VARCHAR2 ) RETURN Public_Rec
IS
temp_ Public_Rec;
CURSOR get_attr IS
SELECT user_id, tool, database
FROM SETUP_TAB
WHERE id = id_;
BEGIN
OPEN get_attr;
FETCH get_attr INTO temp_;
CLOSE get_attr;
RETURN temp_;
END Get;
========================================
can any one tell me how to this function and set return value to dataset. 
|
|
|
|
|
The same way you'd call a stored proc. Use ExecuteScalar if your function has a single return value.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|