|
What server i am talking about ?
What do you mean ?
|
|
|
|
|
Yes what server?
Are your clients connecting to a SQL server, or a custom implementation for some application? What is the server that the clients are connecting to?
|
|
|
|
|
they are connected to sql server , sorry if i didn't say that directly
|
|
|
|
|
Well i'll try to help you out. Some applications are designed very weak. You might be able to find a table with a list of user names and passwords.
That's if the default sql login was not used.
|
|
|
|
|
|
Is there anyway for me to update a client app about how fast the download is going, how far along it is, using .Net remoting. I know when i used sockets, i could detect how large the file wise and divide by the currently downloaded bytes *to get the current download percent* is there a way to do this in Remoting, since the bytes and underlying information is *seemingly* hidden.
Thanks you.
Jesse
The Code Project Is Your Friend...
|
|
|
|
|
Jesse,
Remoting is intended to be a replacement for DCOM. As such it supports remote method calls but it is not intended for downloading files. That is why the data is 'seemingly hidden'.
Michael
This signature left intentionally blank
|
|
|
|
|
TIA for any help!
i want to set an event handler for AfterCheck on my treeview.
i found this piece of code but am not sure how to set the name
of the event.
what is supposed to go in place of the word "node" in node_AfterCheck
private void node_AfterCheck(object sender, TreeViewEventArgs e)
{
becuause the event is not firing.
|
|
|
|
|
Basically, an event handler is just a function with specific parameters.
The thing that makes an event handler different, is when it's actually hooked up to an event on an object.
So, your node_AfterCheck is a function that isn't hooked up to anything.
Typically, the event handler is prefixed with the object's name.
To hook this up to a treeview called treeView1, do this:
this.treeView1.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterCheck);
The easier way of doing this, is to double click the event you want in the object's properties window. This will automatically create the delegate assigning code as well as the stub method code.
Hope this helps.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG blog:: brokenkeyboards "It'll be a cold day in Hell when I do VB.NET...", Chris Maunder
|
|
|
|
|
Thanks that worked.
I put the line in the Form1 constructor. is there a better place to put
it?
also i first tried to take your advice:
The easier way of doing this, is to double click the event you want in the object's properties window. This will automatically create the delegate assigning code as well as the stub method code.
when i look at the the object's properties window (TreeView)
there is no event for AfterCheck. i couldn't find any events to select at all.
i see DataBindings,DynamicProperties,Name, AccessibleDescription...etc.
When i double click the object i get tvMenu_AfterSelect event
What am i missing?
TIA
|
|
|
|
|
In the design view of a form, double clicking an object will create the stub code for a default event that MS had in mind for the control.
eg: if you double click a form, the myForm_Load() event will be created for you.
When looking at the properties window for a treeview (in C#) select the small lightning bolt icon just below the object dropdown box at the top.
This switches the properties window into a "event listing" for the selected object.
Now you should be able to see the "AfterCheck" event under the behavior heading.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG blog:: brokenkeyboards "It'll be a cold day in Hell when I do VB.NET...", Chris Maunder
|
|
|
|
|
ahhh, a good dose of ego deflation.
Thanks!
|
|
|
|
|
Hi,
My application loads two assemblies. Now I want to transfer messages between the two loaded assemblies? Is it possible?
Cheers
CNU
|
|
|
|
|
Hi,
I am writing a Windows application using C#, in which I have to copy some files to the local web server's home directory (for ex. c:\inetput\wwwroot or something else). How can I find out the the local web server's home directory? Or is there any other work around?
Cheers
CNU
|
|
|
|
|
Open the IIS management console (Administrative Tools --> Internet Information Services) and select the website you want the root folder of (on Windows XP there is only the default website). Right-click the website, select properties from the menu. In the dialog select Home Directory, the information you want is on that tab.
Do you want to know more?
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
Thanks for the reply.
But I want to know the value of the Home Directory programmatically..
Is it possible?
Cheers
CNU
|
|
|
|
|
Okay, I didn't realise you meant programmatically. I thought you wanted to know where to copy your application to.
Cnu wrote:
How can I find out the the local web server's home directory? Or is there any other work around?
I would set the information in the config file of the application because the server editions of Windows can host many websites and therefore have many home directories.
Do you want to know more?
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
Hello there, does anyone know where I can find an example of a checkers program written in c# ??
Thanks!!!!
|
|
|
|
|
I did a Google and found this.
I haven't downloaded it and don't know if it's complete / a good reference, but it does say that source is included.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG blog:: brokenkeyboards "It'll be a cold day in Hell when I do VB.NET...", Chris Maunder
|
|
|
|
|
Heey thanks a lot, before I asked I did a google search but under c# not under c-sharp
Thanks a lot
|
|
|
|
|
As title,
I have some existing incoming email and would like to put them to the inbox of outlook. Can I? What is the code?
Thanks
|
|
|
|
|
Hi,
Q1: How can I transfer an SQL database manually? I have a database which is named mydb, I looked at the harddrive and found it on "C:\Program Files\Microsoft SQL Server\MSSQL\Data" there is 2 file one of them is mydb.mdf and the lof file of that. I copied these on another machine on the same path but couldn't make it to work???
Q2: I used the below code to EMPTY a table which is named people but it is not working???:
SqlConnection mySqlConnection4 = new SqlConnection("Initial Catalog=mydb;Data Source=" + comboBox1.SelectedItem.ToString() + ";Integrated Security=SSPI;");
mySqlConnection4.Open();
SqlCommand mySqlCommand4 = mySqlConnection4.CreateCommand();
SqlTransaction myTrans;
myTrans = mySqlConnection4.BeginTransaction(IsolationLevel.ReadCommitted,"SampleTransaction");
mySqlCommand4.Connection = mySqlConnection4;
mySqlCommand4.Transaction = myTrans;
mySqlCommand4.CommandText = "EMPTY people" ;
//mySqlCommand4.ExecuteNonQuery();
myTrans.Commit();
mySqlConnection4.Close();
Anyway What is the problem???
Any help would be greatly appreciated...
Cem Louis
|
|
|
|
|
Q1: What was the error message when you tried to attach it to the SQL Server on the other machine?
Q2: At a quick glance the line with the ExecuteNonQuery() is commented out. Also, I cannot find the EMPTY keywork in the Transact-SQL reference. Are you sure you are using the right command? I would have used DELETE.
Do you want to know more?
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
i'm trying to have a particular picture fade in and out on my form. so the simplest way i thought to achieve this would be to embed another form on my mainform, add a picturebox to that embedded form, and fade that embedded form in and out by incrementing/decrementing the opacity on that embedded form. problem is, changing the opacity on that embedded form does nothing. anyone know why? is there something i need to do differently when changing opacity with embedded forms? is there any easier way i can accomplish this? perhaps just inc/dec the alpha values on the image itself? will that work?
any suggestions/help appreciated!
|
|
|
|
|