Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
QuestionChanging Win XP Registry via C# Pin
Yasin7521-Jan-09 20:12
Yasin7521-Jan-09 20:12 
AnswerRe: Changing Win XP Registry via C# Pin
Mycroft Holmes21-Jan-09 20:46
professionalMycroft Holmes21-Jan-09 20:46 
Questionglobal.aspx Pin
santoshsavita21-Jan-09 19:48
santoshsavita21-Jan-09 19:48 
AnswerRe: global.aspx Pin
Harvey Saayman21-Jan-09 19:52
Harvey Saayman21-Jan-09 19:52 
QuestionDrag and Drop Treeview Item into listview Pin
Udayaraju21-Jan-09 19:36
Udayaraju21-Jan-09 19:36 
AnswerRe: Drag and Drop Treeview Item into listview Pin
Udayaraju22-Jan-09 0:31
Udayaraju22-Jan-09 0:31 
AnswerRe: Drag and Drop Treeview Item into listview Pin
DaveyM6922-Jan-09 1:51
professionalDaveyM6922-Jan-09 1:51 
GeneralRe: Drag and Drop Treeview Item into listview Pin
Udayaraju22-Jan-09 3:01
Udayaraju22-Jan-09 3:01 
Hi,

Thanq for ur Suggestion But i tried inthes way..can you corect the problem here.

See the below code. Here I have a Problem. Treeview has already one root node and twochild nodes with it.
They have to be dragged and dropped in listview.

The main Problem is wen I drag an item..the Itemdrag event is not fired.?? Please try to resolve it.


private void tvwSalesProducts_ItemDrag(object sender, ItemDragEventArgs e)
{
tvwSalesProducts.DoDragDrop(e.Item, DragDropEffects.Copy | DragDropEffects.Move);
}

private void lstMultiProItems_DragEnter(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.Copy | DragDropEffects.Move;
}

private void lstMultiProItems_DragDrop(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent("System.Windows.Forms.TreeNode", false))
{
string[] Items = new string[5];
TreeNode SourceNode;
SourceNode = (TreeNode)e.Data.GetData("System.Windows.Forms.TreeNode");
Items[0] = Convert.ToString(SourceNode.Tag);
Items[1] = SourceNode.Text.ToString();
Items[2] = SourceNode.FirstNode.Text.ToString();
Items[3] = SourceNode.LastNode.Text.ToString();

lstMultiProItems.Items.Clear();
lstMultiProItems.Columns.Add("ID", 100, HorizontalAlignment.Left);
lstMultiProItems.Columns.Add("Product Name", 100, HorizontalAlignment.Left);
lstMultiProItems.Columns.Add("Selling Price", 100, HorizontalAlignment.Left);
lstMultiProItems.Columns.Add("Conversion", 100, HorizontalAlignment.Left);

ListViewItem Item1 = new ListViewItem(Items);
lstMultiProItems.Items.Add(Item1);
lstMultiProItems.AllowColumnReorder = false;
lstMultiProItems.FullRowSelect = true;
}
}
GeneralRe: Drag and Drop Treeview Item into listview Pin
DaveyM6922-Jan-09 4:07
professionalDaveyM6922-Jan-09 4:07 
GeneralRe: Drag and Drop Treeview Item into listview Pin
Udayaraju22-Jan-09 4:14
Udayaraju22-Jan-09 4:14 
QuestionRe: Drag and Drop Treeview Item into listview Pin
Udayaraju22-Jan-09 4:10
Udayaraju22-Jan-09 4:10 
QuestionIssue with the Windows Service OnTimeElapsed Pin
mpavas21-Jan-09 19:33
mpavas21-Jan-09 19:33 
AnswerRe: Issue with the Windows Service OnTimeElapsed Pin
Guffa21-Jan-09 21:51
Guffa21-Jan-09 21:51 
GeneralRe: Issue with the Windows Service OnTimeElapsed Pin
mpavas21-Jan-09 21:57
mpavas21-Jan-09 21:57 
GeneralRe: Issue with the Windows Service OnTimeElapsed Pin
mpavas21-Jan-09 22:18
mpavas21-Jan-09 22:18 
GeneralRe: Issue with the Windows Service OnTimeElapsed Pin
Guffa22-Jan-09 0:45
Guffa22-Jan-09 0:45 
AnswerRe: Issue with the Windows Service OnTimeElapsed Pin
#realJSOP22-Jan-09 0:21
professional#realJSOP22-Jan-09 0:21 
GeneralRe: Issue with the Windows Service OnTimeElapsed Pin
S. Senthil Kumar22-Jan-09 3:27
S. Senthil Kumar22-Jan-09 3:27 
Questionhow to make gridview1 inside gridview2 inside gridview3 Pin
thanhtike21-Jan-09 19:25
thanhtike21-Jan-09 19:25 
QuestionHow do you name controls? Pin
CooperWu21-Jan-09 19:14
CooperWu21-Jan-09 19:14 
AnswerRe: How do you name controls? Pin
Vikram A Punathambekar21-Jan-09 20:00
Vikram A Punathambekar21-Jan-09 20:00 
GeneralRe: How do you name controls? Pin
CooperWu21-Jan-09 21:14
CooperWu21-Jan-09 21:14 
AnswerRe: How do you name controls? Pin
DaveyM6921-Jan-09 21:34
professionalDaveyM6921-Jan-09 21:34 
AnswerRe: How do you name controls? Pin
#realJSOP22-Jan-09 0:24
professional#realJSOP22-Jan-09 0:24 
GeneralRe: How do you name controls? Pin
CooperWu22-Jan-09 14:47
CooperWu22-Jan-09 14:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.