Click here to Skip to main content
15,909,091 members
Home / Discussions / C#
   

C#

 
GeneralRe: tracking mouse position Pin
Nish Nishant11-Jul-09 3:03
sitebuilderNish Nishant11-Jul-09 3:03 
GeneralRe: tracking mouse position Pin
Rajesh R Subramanian11-Jul-09 3:13
professionalRajesh R Subramanian11-Jul-09 3:13 
GeneralRe: tracking mouse position Pin
Nish Nishant11-Jul-09 3:15
sitebuilderNish Nishant11-Jul-09 3:15 
Questionthread not started Pin
Vivek Vijayan10-Jul-09 20:03
Vivek Vijayan10-Jul-09 20:03 
AnswerRe: thread not started Pin
dan!sh 10-Jul-09 20:24
professional dan!sh 10-Jul-09 20:24 
QuestionAAARGGHH - need example of building a multi-column list in memory unknown # of rows Pin
Robert Bone10-Jul-09 19:40
Robert Bone10-Jul-09 19:40 
AnswerRe: AAARGGHH - need example of building a multi-column list in memory unknown # of rows Pin
dan!sh 10-Jul-09 20:37
professional dan!sh 10-Jul-09 20:37 
Question<> command ? Pin
Ali Jahan10-Jul-09 19:20
Ali Jahan10-Jul-09 19:20 
AnswerRe: <> command ? [modified] Pin
OriginalGriff10-Jul-09 21:51
mveOriginalGriff10-Jul-09 21:51 
QuestionLINQ, XML to tree class Pin
VickyC#10-Jul-09 19:09
VickyC#10-Jul-09 19:09 
AnswerRe: LINQ, XML to tree class Pin
VickyC#10-Jul-09 21:21
VickyC#10-Jul-09 21:21 
QuestionHow to globally suppress mouse click Pin
GeeBru10-Jul-09 12:14
GeeBru10-Jul-09 12:14 
AnswerRe: How to globally suppress mouse click Pin
Not Active10-Jul-09 13:08
mentorNot Active10-Jul-09 13:08 
GeneralRe: How to globally suppress mouse click Pin
GeeBru10-Jul-09 13:13
GeeBru10-Jul-09 13:13 
GeneralRe: How to globally suppress mouse click Pin
Not Active10-Jul-09 13:20
mentorNot Active10-Jul-09 13:20 
GeneralRe: How to globally suppress mouse click Pin
GeeBru10-Jul-09 13:23
GeeBru10-Jul-09 13:23 
Questionworking with dates and database Pin
elidotnet10-Jul-09 12:00
elidotnet10-Jul-09 12:00 
Hello, i need help in some subject i can't handle with for few days. lets say i have form that handle with some rent order (like....billiboards) after the user choose the number of the billboard and the Location and everything else, he need to choose 2 dates. one for the publish day and one for the getOFF day. i have odbc database that hold all the information about the billboards etc... how can i make some "if" or queries that will check that this billboard is not ordered in that range of days? for now i only have the insert handle. PLEASE HELP.
in abstract way = the code have to check the "signNumber" too not only the range between dates. in ABSTRACT = "take the signNumber and check if is available between that two dates if yes, insert to the database if not throw messagebox - NOT AVAILABLE"

<br />
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using System.Data.Odbc;<br />
<br />
namespace forumArt<br />
{<br />
    public partial class addNewCampaign : Form<br />
    {<br />
        public addNewCampaign()<br />
        {<br />
            InitializeComponent();<br />
        }<br />
<br />
        private void addNewCampaign_Load(object sender, EventArgs e)<br />
        {<br />
            // TODO: This line of code loads data into the 'dataSet1.customers' table. You can move, or remove it, as needed.<br />
            this.customersTableAdapter.Fill(this.dataSet1.customers);<br />
            // TODO: This line of code loads data into the 'dataSet1.signsDetails' table. You can move, or remove it, as needed.<br />
            this.signsDetailsTableAdapter.Fill(this.dataSet1.signsDetails);<br />
<br />
        }<br />
<br />
        private void button2_Click(object sender, EventArgs e)<br />
        {<br />
            Close();<br />
        }<br />
<br />
        private void button1_Click(object sender, EventArgs e)<br />
        {<br />
            if (signNumber.Text == "")<br />
            {<br />
                MessageBox.Show("חובה לבחור את מספר השלט");<br />
            }<br />
            if (companyName.Text == "")<br />
            {<br />
                MessageBox.Show("נא לבחור את שם החברה המזמינה");<br />
            }<br />
            else<br />
            {<br />
                try<br />
                {<br />
                    OdbcConnection conn = new OdbcConnection("dsn=forumArtDataBase");<br />
                    OdbcCommand cmd = new OdbcCommand("insert into orders(signNumber,fromDate,toDate,companyName,comments) values ('" + signNumber.Text + "','" + fromDate.Text + "','" + toDate.Text + "','" + companyName.Text + "','" + comments.Text + "')", conn);<br />
                    conn.Open();<br />
                    cmd.ExecuteNonQuery();<br />
                    conn.Close();<br />
                    MessageBox.Show("ההזמנה התווספה בהצלחה");<br />
                    Close();<br />
                }<br />
                catch (OdbcException ex)<br />
                {<br />
<br />
                    MessageBox.Show("התבצעה שגיאה בעת ניסיון ההתחברות למסד הנתונים" + ex);<br />
                }<br />
            }<br />
        }<br />
    }<br />
}<br />

AnswerRe: working with dates and database Pin
Not Active10-Jul-09 13:18
mentorNot Active10-Jul-09 13:18 
AnswerRe: working with dates and database Pin
Henry Minute10-Jul-09 13:23
Henry Minute10-Jul-09 13:23 
QuestionDifferentiate Restart vs Shut Down, StandBy vs Hibernate Pin
olograph10-Jul-09 11:57
olograph10-Jul-09 11:57 
AnswerRe: Differentiate Restart vs Shut Down, StandBy vs Hibernate Pin
OriginalGriff10-Jul-09 21:57
mveOriginalGriff10-Jul-09 21:57 
QuestionNeed suggestions on datagrid/dataview Pin
babbelfisken10-Jul-09 11:26
babbelfisken10-Jul-09 11:26 
AnswerRe: Need suggestions on datagrid/dataview Pin
DaveyM6910-Jul-09 11:33
professionalDaveyM6910-Jul-09 11:33 
QuestionActive Directory... C#... How do I get the users windows login? Help please. [modified] Pin
JollyMansArt10-Jul-09 10:12
JollyMansArt10-Jul-09 10:12 
QuestionRe: Active Directory... C#... How do I get the users windows login? Help please. Pin
JollyMansArt10-Jul-09 12:13
JollyMansArt10-Jul-09 12:13 

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.