|
i am working on an application in which i want to get user login information from client pc and save this information on server in a hashtable and then broadcast this hashtable data to all clients in a LAN and this data should be store in a listviewbox so that next time i can select a user informtion from the listviewbox.
Please if some body have any solution.
|
|
|
|
|
Hi Friends,
I am developed a new personal web site. I want to host it in my LAN. I installed IIS 5.0. How can I host it in my lan.
Please help me
Thanks in advance
Jijo
JIJO BABY - Lets Play C#
|
|
|
|
|
Maybe by asking in the ASP.NET or the OS / SysAdmin forums?
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
Jijo,
After IIS 5 is installed, you can right click the folder which you want to be accessible from IIS, select 'WebSharing' and click 'Share this folder'. Give a name for the virtual directory name.
Now your application is accessible from http://<yourservername>/<virtualdirectoryname>
If your Windows is a server flavor like Windows 2000 Server or Advanced Server or Windows Server 2003, you would be getting a 'New Website wizard' in inetmgr.
But to make a new DNS Name etc, you may need your system administrator or helpdesk assistance.
Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At:
http://www.dotnetjunkies.com/weblog/deepak/ http://deepakvasudevan.blogspot.com/ http://deepak.blogdrive.com/
|
|
|
|
|
i use .net framework1.1, i would like to double-click notifyIcon to show a webbrowser,but the webbrowser always shows in the left and top of the screen,
i want your help, the code is follow :
namespace WindowsApplication8
{
///
/// Form1 的摘要说明。
///
public class Form1 : System.Windows.Forms.Form
{
private AxSHDocVw.AxWebBrowser axWebBrowser1;
private System.Windows.Forms.NotifyIcon notifyIcon1;
private System.Windows.Forms.ContextMenu contextMenu1;
private System.Windows.Forms.MenuItem menuItem1;
private System.ComponentModel.IContainer components;
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
this.axWebBrowser1 = new AxSHDocVw.AxWebBrowser();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.contextMenu1 = new System.Windows.Forms.ContextMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).BeginInit();
this.SuspendLayout();
//
// axWebBrowser1
//
this.axWebBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
this.axWebBrowser1.Enabled = true;
this.axWebBrowser1.Location = new System.Drawing.Point(0, 0);
this.axWebBrowser1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWebBrowser1.OcxState")));
this.axWebBrowser1.Size = new System.Drawing.Size(292, 266);
this.axWebBrowser1.TabIndex = 0;
//
// notifyIcon1
//
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Text = "notifyIcon1";
this.notifyIcon1.Visible = true;
this.notifyIcon1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDown);
this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
//
// contextMenu1
//
this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1});
//
// menuItem1
//
this.menuItem1.Index = 0;
this.menuItem1.Text = "Exit";
this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(292, 266);
this.Controls.Add(this.axWebBrowser1);
this.Name = "Form1";
this.Text = "Form1";
this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).EndInit();
this.ResumeLayout(false);
}
#endregion
static void Main()
{
Application.Run(new Form1());
}
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Show();
object flags = (2 | 4 | 8);
object targetFrame = null;
object postData = null;
object headers = null;
this.axWebBrowser1.Navigate("http://www.google.com",ref flags,ref targetFrame,ref postData,ref headers);
if (this.WindowState==FormWindowState.Minimized)
this.WindowState=FormWindowState.Normal;
this.Activate();
this.notifyIcon1.Visible=false;
}
private void Form1_Load(object sender, System.EventArgs e)
{
this.notifyIcon1.Visible=true;
object flags = (2 | 4 | 8);
object targetFrame = null;
object postData = null;
object headers = null;
this.axWebBrowser1.Navigate("http://www.google.com",ref flags,ref targetFrame,ref postData,ref headers);
}
private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
e.Cancel=true;
this.Hide();
this.ShowInTaskbar=false;
this.notifyIcon1.Visible=true;
}
private void menuItem1_Click(object sender, System.EventArgs e)
{
this.notifyIcon1.Visible=false;
Application.Exit();
}
private void notifyIcon1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
Control control = new Control(null,Control.MousePosition.X,Control.MousePosition.Y,1,1);
if (e.Button==MouseButtons.Right)
{
control.Visible = true;
control.CreateControl();
Point pos = new Point(1,1);
this.contextMenu1.Show(control,pos);
}
}
}
}
Thanks
|
|
|
|
|
Perhaps you should mention what it is that you need help with?
---
b { font-weight: normal; }
|
|
|
|
|
i write the question in my message:i want to double-click notifyicon to open a webbrowser in it's right position.but it always show in left and top of screen
if you don't know my question clearly, please run the code i gived,i could forward your help
thanks
|
|
|
|
|
What in your opinion is the "right" position for the browser, then?
---
b { font-weight: normal; }
|
|
|
|
|
please run the code,then you will see the problem
|
|
|
|
|
No, I will not run the code to see the problem, unless you explain why you can't just tell me.
---
b { font-weight: normal; }
|
|
|
|
|
Sorry,i am a newer of codeproject,i don't know what do you mean :
Guffa wrote: unless you explain why you can't just tell me
i want a notifyicon to active the webbrowser,you can try it.
for example:
your form's location is(300,200),
and have a webbrowser fill the form ,
when you minisize the form to the notifyicon,
and then double-click the notifyicon,
you'will see the webbrowser's location is(0,0),always (0,0)
Thanks
|
|
|
|
|
Which takes us back to the question I asked before:
"What in your opinion is the "right" position for the browser, then?"
---
b { font-weight: normal; }
|
|
|
|
|
Perhaps my English is not very well,i mean i want control the webbrowser's position,but i can't.
ex:if i want webbrowser's location in(200,200),but it always in (0,0)
|
|
|
|
|
In your double-click event handler for notifyIcon1 just set this.Location to wherever you want it positioned onscreen.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
i have try this already,it can't solve my problem
would you run my code and solve my problem already?
wait you reply
|
|
|
|
|
Sorry, I just provide help on the forum where I can. For consultancy I charge £45/hr
Anyway, nobody can just copy your code and run it, were missing your resource file, the project etc etc.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
-- modified at 6:09 Thursday 27th April, 2006
|
|
|
|
|
Original code :
http://delltool.dell.com/email_images/TWBSDQ1WK11_i6400(main).jpg
Encoded code : http://delltool.dell.com/email+AF8-images/TWBSDQ1WK11+AF8-i6400(main).jpg
Ok guys, i really hope someone can help me here.
I have a system that code using c# but the support person is no longer available to help.
I'm still trying to understand the code, but it would be really great if someone can help me out.
The thing is, a html email submited by a user is always encoded by utf7/utf8 (depends on the user's region).
When that email sent out, the html become encoded, this cause a lot trouble where the images path is no longer valid.
Is there any way or "tag" i could put in so that the particular line won't be encode? Or any suggestion please please please.
Thanks in advance!
Regards,
KC
-- modified at 20:52 Wednesday 26th April, 2006
|
|
|
|
|
anyone
|
|
|
|
|
Hi i am having an issue about getting data from list view. I am wanting to get data from a listview and place it in 3 textboxes.
Here is the code i have to place it from the 3 textboxes to the listview but i am wanting to reverse this.
string[] myItems = new string[]
{
textBox1.Text,
textBox2.Text,
textBox3.Text
};
ListViewItem lvi = new ListViewItem(myItems);
listView1.Items.Add(lvi);
thanks for you help in advance
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
To get the data from a list view you use the Items property. For example if you wanted to get the data from the selected item in the list:
int selected = listView1.SelectedItems[0].Index;
textBox1.Text = listView1.Items[selected].Text
textBox2.Text = listView1.Items[selected].SubItems[1].Text;
And so on...
Hope that helps
|
|
|
|
|
Thanks for your help sean. I tried that but i couldn't get it to work. Let me explain what i have going on in this program.
First i have a button that opens an "openFileDialog". After i select the file it puts the fileName in textbox1.text, in textbox2.text it has the filetype, in textbox3.text it has "pending". Then after that i have it set up to move to the listview by the code i posted above.
What i'm wanting to do is to be able to push a button and it will move the filename back from the listview to textbox1.text. Then from there i will be able to do File.Copy(path, path2) ((path would be textbox1.text))
I don't know if you even understand what i'm saying (i think i just confused myself as i'm posting this). As you can tell i am still learning
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
I understand what your trying to do The only way I know how to get the data from the list view is by the way I posted earlier. Thats odd that this is not working for you though Could you post the code that you have written to get the data out of the list view?
|
|
|
|
|
Alright here is what i got going on:
This button does the openfile and puts it in the textboxes:
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog music = new OpenFileDialog();
music.Title = "Add a music file";
music.InitialDirectory = "C:\\";
music.Filter = "Supported File Types|*.mp3,*.wma|All files (*.*)|*.*";
music.FilterIndex = 2;
music.RestoreDirectory = false;
if (music.ShowDialog() == DialogResult.OK)
{
music.Multiselect = true;
foreach (string fileName in music.FileNames)
{
textBox1.Text = fileName;
textBox2.Text = "Audio";
textBox3.Text = "Pending";
}
string[] myItems = new string[]
{
textBox1.Text,
textBox2.Text,
textBox3.Text
};
ListViewItem lvi = new ListViewItem(myItems);
listView1.Items.Add(lvi);
}
}
what i'm wanting to do before i do file.copy is move the filename in the listview back to
textbox1.text (textbox2 and 3 also but it doesn't really matter as of right now)
private void button6_Click(object sender, EventArgs e)
{
string path = textBox1.Text;
string path2 = textBox4.Text;
try
{
File.Copy(path, path2);
this.syncstat.Text = "Status: Files Copied";
}
catch
{
this.syncstat.Text = "Status: Cannot copy into the same folder";
}
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
I'm sorry sean i shoulda read more clearly. this is how i tested it
private void button6_Click(object sender, EventArgs e)
{
int selected = listView1.SelectedItems[0].Index;
textBox1.Text = listView1.Items[selected].Text;
textBox2.Text = listView1.Items[selected].SubItems[1].Text;
textBox3.Text = listView1.Items[selected].SubItems[2].Text;
}
but i couldn't get it to show in the 3 boxes
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
I set up a program with the code you posted and it works fine. So I don't know what else to tell you
|
|
|
|