|
Assuming the name of your menu is MenuStrip1, then create a new ToolStripMenuItem and add it to the DropDownItems collection of MenuStrip1
|
|
|
|
|
|
xingselex wrote: may u give me as code?
He practically did just give you it as code. If you cant work out the code from what he said then you are way out of your league with what you are trying to do. You need to get a book on the basics of .Net, possible even programming in general if all you do is copy and paste code.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
MenuItem m = new MenuItem("aaa", "1");
Menu1.Items.Add(m);
m.ChildItems.Add(new MenuItem("bbb", "2"));
m.ChildItems.Add(new MenuItem("ccc", "3"));
Padmanabhan
|
|
|
|
|
Hi,
could anyone help me how to send sms using windows application c#
how to make that
Thanks & Regards
Nath
|
|
|
|
|
Some firms run web services which you interface with and use to send the text
You can usually plug a phone into the serial port and manually send the data using it's antenna
You could send an email to the phone and hope that it gets delivered as a text message
|
|
|
|
|
i have to send sms using windows application. If there is anything please
let me know
|
|
|
|
|
I already have. Those are the three main approaches to sending an SMS. Windows application, WPF or console application - they will (almost) all use one of those three approaches. You simply have to investigate which of those would be most practical to you, and research it
|
|
|
|
|
hai
please visit www.rinoshsasidharan.wordpress.com
to see the solution
regards
Rinosh.K.Sasidharan
|
|
|
|
|
Hi,
i am trying to get cursor position clicking anywhere except my application. I used keydown event on my form for checking, it works. But when i click anywhere it does'nt work
please check my code and tell me where am I doing mistak?
Thank you in Advance
(Riaz)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MM1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Click += new System.EventHandler(Raised_Click);
}
private void Raised_Click(object sender, EventArgs e)
{
label1.Text = Cursor.Position.X.ToString() + " ; " + Cursor.Position.Y.ToString();
}
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Space)
{
label1.Text = Cursor.Position.X.ToString() + " ; " + Cursor.Position.Y.ToString();
}
}
}
}
modified on Friday, May 22, 2009 2:27 AM
|
|
|
|
|
M Riaz Bashir wrote: But when i click anywhere it does'nt work
Can you explain this a bit more? I tested the code and where ever I clicked on the form the label displays the XY co-ordinates fine.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
except the running form, I need cursore position when I click anywhere on the desktop
|
|
|
|
|
You need to get the Mouse click location even if user DOES NOT clicks on the UI of your application. Is it? Then you need to use Global Mouse and keyboard hook.
This[^] article will help you.
जय हिंद
|
|
|
|
|
Thank you
|
|
|
|
|
I need to add excel 2007 piviot table functinality to my windows application For Business Intelligence Application. Data is take from the Cube. I already got office 2003 piviot table functinality. But I need office 2007 piviot table functinality to this application. Please help me how to this.
Dushan Perera
|
|
|
|
|
Hi all,
I have two problems
1. I have a comma separated string values. I want to load them all into checkedlistbox as items.....HOW?
2. how do I get the itemindex of checkedlistbox, passing the text?
regards and thanks
Jeet
|
|
|
|
|
Hi Dear,
You have comma seperated string value and want to bind it with checkboxlist.
first of all you split the value with comma and store it into the Array or ArrayList and now you can easily bind the checkboxlist with this Arraylist.
Let me know if you got any problem.
Regards,
_Anil
Anil Chauhan
|
|
|
|
|
Anil,
Logically thats correct - but sadly - this is windows application hence I can not bind checkedlistbox. There is no Datasource and Databind members ..it s in webcontrol!
thanks anyway,
Jeet
|
|
|
|
|
There is a DataSource property.. It's inherited from ListControl, and there's even an example provided (although granted, it's MSDN quality). Have you set ValueMember and DisplayMember, and (I think) put your data into a structure?
|
|
|
|
|
I am a newbie and do not know how it can be worked out to solve my problem!
plz bear with me and suggest something
regards
Jeet
|
|
|
|
|
Hi friends,
it was as simple as it looks!
arrFieldList = new ArrayList(strAllFields.Split(new char[] { ',' }));
for (int i = 0; i < arrFieldList.Count; i++)
{
checkedlistbox1.Items.Add(arrFieldList[i].ToString());
}
regards
Jeet
|
|
|
|
|
I had a .Net application developed in visual studio 2005, I was able to make msi setup of it, if I want to install my setup on other system in which .Net framework is not there, I want .Net framework also to get installed simultaneously with my application through msi setup?
How can I add .Net framework in msi setup?
|
|
|
|
|
Hi. IN the Setup Project under Soltution Explorer under the detected dependencies you should notice that the Micorsoft .NET Framework is listed there. Next go the the PRoject button on the Menu. THis should bring up the Propery Pages. Click on the Preequisites button. There it will show you the prerequisites. Make surethat the .NET Framework 2.0 is clicked. Below that you will notice three options. Select the one that states "Download prerequisites from the same location as my application" and this will install the .NET framework from the same location as you MSI.
Hope this helps.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
I'm using SMTP classes and sending notifications from my application, When we run the application on test LAN (Local Setup)it works smoothly, so my SMTP settings are correct, But when we deploy our solution on hosting server (GoDaddy.com) none of the emails are going out. No exception, No Error !
Has anyone faced similar issues before.
Thanks
|
|
|
|
|
Dear brothers,
I have read the book and searched from the internet. They told me the same way in retrieving data from SQL server. Unfortunately, it errors something when I do the same way. See my codes below :
private void btn_login_Click(object sender, EventArgs e)
{
string sSQL = "SELECT USERNAME, USERPASSWORD FROM TBL_USER WHERE USERNAME = '" + this.txt_username.Text + "' AND USERPASSWORD = '" + this.txt_username.Text + "'";
SqlCommand sCommand = new SqlCommand(sSQL, dbConnection.sqlCnn);
try
{
dbConnection.sqlCnn.Open();
SqlDataAdapter sReader = sCommand.ExecuteReader();
// It says : "Cannot implicitly convert type'System.Data.SqlClient.SqlDataReader' to 'System.Data.SqlClient.SqlDataAdapter'"
while (sReader.Read() == true)
{
frm_main frmparents = new frm_main();
frmparents.ShowDialog();
}
}
catch (Exception Er)
{
MessageBox.Show(Er.Message, "Exception");
}
Thanks for reading the entire article.
Chuon Visoth
Angkor Wat - Cambodia
asp.net - c sharp beginner
|
|
|
|