|
<br />
datagridview.Rows.Clear();<br />
|
|
|
|
|
My code:
New line:
TLNode tln1 = new TLNode(1, treeList1.Nodes, new_item.Name_Link.Text, new_item.Link.Text);
treeList1.Nodes.Add(tln1);
This is new folder:
TLNode tln1 = new TLNode(1, treeList1.Nodes, new_folder.textEdit_New_Folder.Text, "");
tln1.HasChildren = true;
TLNode tln_children = new TLNode(2, tln1.Nodes, "", "");
tln1.Nodes.Add(tln_children);
treeList1.Nodes.Add(tln1);
If TreeList hot have folder - Ok! (new node can have focus)
If TreeList have folder and it is close - Ok! (new node can have focus)
If TreeList have open folder - new line in TreeList not can have focus.
Help me please!
|
|
|
|
|
Try to select the node: (for example you want to highlicht tln_children)
this.treeList1.SelectedNode = tln_children;
|
|
|
|
|
TreeList not have SelectedNode, it have FocusedNode.
But this dont help me.
If 1 folder is open in treelist:
node-
-node-
|node-
node-
I add node:
node-
-node-
|node-
node-
node(not focus, by FocusedNode)
I add node:
node-
-node-
|node-
node-
node(focus may be)
node(focus Ok, by FocusedNode)
I add node:
node-
-node-
|node-
node-
node(focus may be)
node(focus may be)
node(not focus, by FocusedNode)
...
I add node:
node(focus Ok, by FocusedNode)
I add node:
node(not focus, by FocusedNode)
...
May be you help me? I don't know how to fix this problem.
My code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;
using System.Reflection;
using DevExpress.XtraTreeList;
using DevExpress.XtraTreeList.Nodes;
namespace video
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void simpleButton1_Click(object sender, EventArgs e)
{
TLNode tln1 = new TLNode(1, treeList1.Nodes, "dfhdfhgdf", "234523");
treeList1.Nodes.Add(tln1);
treeList1.FocusedNode = tln1;
}
private void simpleButton2_Click(object sender, EventArgs e)
{
TLNode tln1 = new TLNode(1, treeList1.Nodes, "4567rtyu4567", "ertye3456ertye");
tln1.HasChildren = true;
TLNode tln_children = new TLNode(2, tln1.Nodes, "trtr3636yryr", "6868cncn2525");
tln1.Nodes.Add(tln_children);
treeList1.Nodes.Add(tln1);
}
}
public class TLNode: TreeListNode
{
string name;
string url;
public TLNode(int id, TreeListNodes owner, string name_, string url_) : base(id, owner)
{
name = name_;
url = url_;
}
public override void SetValue(object columnID, object val)
{
}
public override object GetValue(object columnID)
{
return "text";
}
}
}
-- modified at 6:50 Monday 29th May, 2006
|
|
|
|
|
I'm using the System.Diagnostics.Process class to launch processes. I would like to trigger an event when a process exit. Do I have to use the Process.Exited event. How do i use it?
|
|
|
|
|
Mridang Agarwal wrote: Do I have to use the Process.Exited event.
Yes, unless you want to use the WaitForExit method.
Mridang Agarwal wrote: How do i use it?
Set the EnableRasingEvents property to true, and prescribe to the event as usual.
---
b { font-weight: normal; }
|
|
|
|
|
process.EnableRaisingEvents = true;
process.Exited += new EventHandler(process_Exited);
|
|
|
|
|
i can not found textbox for get password.plz help me.
|
|
|
|
|
I think this is the code, what will help u.
<asp:textbox id="txtPassword" Runat="server" MaxLength="15" Width="120px" TextMode="Password"></asp:textbox>
Thank you
BILLAH
|
|
|
|
|
thanks for ur help. i get my solution from ur message.
|
|
|
|
|
How to send sms from internet ?????
Please help me
-- modified at 17:12 Tuesday 30th May, 2006
|
|
|
|
|
How to send sms from internet ?????
Please help me
|
|
|
|
|
Hi,
I've been seeing of lot of Lua everywhere lately and i was planning to use it in one of my C# projects. i found this:
Lua interface[^]
basically what my application does is scrpae some information off a webpage. Since the website pattern could change anytime, i decided to use Lua for do the screen scraping. What would be better -
have my C# application get the source of the wepage and pass it to the Lua interface for data extraction and then have Lua return the extrcated data to my program
--or--
Make Lua, get the source of the webpage itself, extract the data itself, and then pass the data to the C# Program
I'm really confused (like I always am ). Could someone help me out here?
|
|
|
|
|
That depends on the reason why you want to use Lua for this. If it's good for requesting web pages, use it for that, otherwise not.
---
b { font-weight: normal; }
|
|
|
|
|
Well, after all I've read on the Internet my heads ringing with one thing. Thye all say Lua is excellent for small scripting, stuff like AI, data extraction etc. I came across this sotware called FreePOPs[^]. It basically lets you use your email client with email sites such as Yahoo and Hotmail which natively dont support POP access. They use Lua as the Screen Scraping code. When the design of the emil site changes, the software doent work and you can just download a fresh working version of the screen scraping script. Now, would this help you to reach a decision.
|
|
|
|
|
Hello All,
I'm using a BackgroundWorker to check database permissions in the background while my GUI is servicing request from the client. The user enters the db host name, username and password then a BackgroundWorker thread gets kicked off to retrieve the list of databases that are available on the specified host. When the correct information is passed into the textboxes everything works fine. When the user enters wrong information (like a wrong password), I would like to display an error message and disable the combobox that holds the list of available databases.
I'm doing all the database work inside a method called bgWorker_DoWork() which is triggered by the BackgroundWorker.RunWorkerAsync() delegate. It is in this method where I catch an OleDbException that gets thrown when the login to the database fails. Inside my bgWorker_RunWorkerCompleted() method I look at the RunWorkerCompletedEventArgs to see if there were any problem while running the bgWorker_DoWork() method however even when an exception has been thrown RunWorkerCompletedEventArgs.Error is always null. Am I missing something else that I should be doing or is this a bug in the framework ?
|
|
|
|
|
Are you sure your bgWorker_DoWork() method throws an exception? Did you try stepping through the method under the debugger?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
How can I open (popup... not in browser) notepad from browser.
For example: I have some .txt file in my database. I want to open it from browser, where user can edit the .txt file and at this time database will be update internally.
OR
I have some file which I want to open in notepad from browser, it will be display on popup.
JUST LIKE:
Windows Platform where we use
System.Diagnostics.Process.Start(@"C:\Documents and Settings\Billah\My Documents\Data Grid.txt"); OR
System.Diagnostics.Process.Start("notepad.exe",@"C:\Documents and Settings\Billah\My Documents\Data Grid.txt");
If I start a process from ASP.NET using System.Diagonistics.Process.Start method. It start in the background (we can see it in task manager), but I can't see it on the browser.
private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
System.Diagnostics.Process.Start("Notepad.exe");<br />
}
IIS Admin Service runs as a local system
So, how can I see the notepad which runs at background?
Thank you
BILLAH
-- modified at 4:49 Sunday 28th May, 2006
|
|
|
|
|
Billah wrote: If I start a process from ASP.NET using System.Diagonistics.Process.Start method. It start in the background (we can see it in task manager), but I can't see it on the browser.
Also, you should realise that it is running it on the server, not the client. If you have the client browser running on the same machine as the server then you are obviously getting confused about what is running as part of the server and what is running as part of the client.
You cannot run applications on the client because it is a security risk for the person using the client.
Billah wrote: I have some .txt file in my database. I want to open it from browser, where user can edit the .txt file and at this time database will be update internally.
Create a page with a big text box and load the text in to that. On the post back you can update the database.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Dear Colin Angus Mackay,
Thank you for your reply.
I want a popup notepad which will retrieve data from database. Now it will display in IE. If possible, please Send me a project which display a popup notepad with data or without data where user can edit text and save it in Hard Drive.
Thankyou
BILLAH
|
|
|
|
|
Billah wrote: I want a popup notepad which will retrieve data from database.
Notepad cannot retrieve data from the database. It is beyond the scope of the application.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Hi everyone,
I have a set of data(I call it a docket), which I can quite happily represent with an object. Now the data contained in this object has to be sent to various customers - only they all need it in different formats! And worse still, some of the "general" formats change between customers - so for exapmple, one customer needs the data in a fixed width file, whilst another needs it in fixed width, but in a slightly different fixed width format.
So, taking the one problem of multi-version fixed width format (I think the answer to this will enable my to solve the other formatting problems), how can I use OOP technology in C# to implement a writer/formatter type object? I've had a look in the .net framework, and seen many objects called formatters, but I'm not sure how these have been implememnted, or even if their definition of formatter is the same as mine...
Thanks,
Martin.
|
|
|
|
|
Hi all, i posted a msg earlier, but unfortunately nobody happened to know the answer.. so its more like a challange...
can you figure out the algorithm for the following problem:
Consider a = {a , a , a ,...., a } //random values within set a
----------i----0--1---2-----n //these are the sub values
also
b = {b , b , b ,...., b } //random values's within set b
-i----0---1---2------n //these are the sub values
And
S = a + b
-i----i----i //these are the sub values
Find an algorithm O(n), that can return the n largest number(s) using c#..
Thanx soo much in advance..
Elie
|
|
|
|
|
Eliee wrote: but unfortunately nobody happened to know the answer
Perhaps noone knew the question...
The C# language does not use sets. Would that be a set in the same manner as it's used in Pascal? What are the sub values you are talking about? Why are you adding the two sets? Where should the algorithm be looking for the largest numbers?
---
b { font-weight: normal; }
|
|
|
|
|
HEy there Guffa..
Well a set could be intstantialized and taken to be as an array of values.. so take it as in this perspective.. The sub values are the elements of an array..
S is the set where the combinations of values of both {a} & {B} are combined..
What is required is to look in S and to find the greatest value (s) and directly return it with a speed algorithm of O(n)..
Hope i helped u a bit..
Thanx 4 all participating in this question..
Elie
|
|
|
|
|