|
it is very urgent.................
|
|
|
|
|
Kanchan Pawar wrote: it is very urgent.................
No, its not, otherwise you would go out and buy some. If you want code written for you try rentacoder.com - I also suggest you learn to specify what you mean better.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Turn off the computer and walk away. You are just too stupid to use one. Sorry.
"can u please send me that autodiagramer software"
What auto diagrammer software ? This is not a place for pirates, it's a place for people who write code. You mean you want the source code for a project you need to write ? You must be joking
"it is very urgent................."
No, it's not. We help people out of the goodness of our hearts, but we don't actually give a damn if you meet your deadline or not. It's not urgent to us, at all.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Dear All,
I am using ListView control for display the record in listview from database i need to display id, name, etc very thing from database.
Please tell guide me.
Thanks.
|
|
|
|
|
I recommend you learn to use google, and buy/read a book on how to use C#. It's obvious to me that you're yet another outsourced worker, who has taken a job they know absolutely nothing about ,and are hoping we'll do your work for you. We try to help people who show some sign of making an effort.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello friends I want to fill a combo with only year value like when we fill our birth year in many sites. How can I do this.. ??
Any help would be appreciated..
Johnny
|
|
|
|
|
Which bit is confusing you ? Do you know how to add values to a combo box ? You can use DateTime.Now to get the current year and work from there, if you need to.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
No I want to fill the combo with only year value like below.
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
.
.
.
.
|
|
|
|
|
OK, and what is the issue ? As someone else said more explicitly than I did, you can use DateTime.Now to get years from this year going back, or going forward. The obvious thing to do is to create a list of ints, and use a loop to create them, then make that your data source.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Just fetch the running year using DataTime.Now.Year
If you want to display 10 years before and after the current year. Subtract the value by 10 and make a for loop of 20 times filling the year value.That's it.
E.G.
ComboBox cb = new ComboBox();
int year = DateTime.Now.Year;
year = year - 10;
cb.Items.Clear();
for(int i =0;i<20;i++)
{
cb.Items.Add(year + i);
}
|
|
|
|
|
Hi,
I uploaded my excel file into a folder(server), now i want to read that file from the folder, than i have to insert that excel into a database with same filds,
I have done this but from local system i can able to read a file not from the uploaded folder.
So how to read a excel file from folder....
Below code is the one i have used from local system, the connections string
String sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='c:/valuefirst.xls';Extended Properties=Excel 8.0"; (its working)
How to take this excel sheet from server folder.
Pls help me,
thanx
krishna
|
|
|
|
|
Don't crosspost, it's rude.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Hi, I'm a new programer in c# and I want some help about the helpprovider control in .Net. when I set the helpstring in persian language and run the program it shows me unreadable charachter!!!!
i search about it and i found some articles about CHM files that attaches to the program but I want use this control that can be used every where in the form and helps users to introduces each control in my form and some more. if anyone can helps me, i really appricateeeeeeeeeeeeeeeeeee
|
|
|
|
|
Then what you're trying to do, is insane. Learn some C# first, then worry about writing a help system, which is a reasonably complex task.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Notice how I'm the only one who replied ? That's because you're one of the growing list of retards who take a job, have no idea how to do it, and post broad questions that can't possibly be answered in a forum reply, without first using google.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Sounds trivial, why do you need help ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Give us a clue which bit you are stuck on - or did you just want someone to write the application for you?
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
Hi All
Check the code first
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 MessageBoxChallenge
{
public partial class Form1 : Form
{
private ProgressBar pb = new ProgressBar();
private Button b = new Button();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
pb.Value = 5;
pb.Visible = true;
pb.Left = 20;
pb.Top = 30;
pb.Style = ProgressBarStyle.Blocks;
this.Width = 500;
pb.Width = 400;
this.Controls.Add(pb);
b.Text = "click";
b.Top = 300;
b.Left = 50;
b.Visible = true;
this.b.Click += new EventHandler(b_Click);
this.Controls.Add(b);
}
void b_Click(object sender, EventArgs e)
{
pb.Value = 0;
int inc = Convert.ToInt32(100 / 5);
DialogResult result = MessageBox.Show("Do you want to continue", "Header", MessageBoxButtons.YesNo);
if (result == DialogResult.Yes)
{
for (int i = 0; i <= 4; i++)
{
System.Threading.Thread.Sleep(300);
pb.Value = pb.Value + inc;
}
}
else
{
this.Dispose();
this.Close();
}
}
}
}
In actual problem I have a code which is taking around 300ms for each iteration in the for lood thats why i placed System.Threading.Thread.Sleep(600) in the for loop.
Now the problem is When the MessageBox appears and I click on Yes Button,
Out of 10 times ,3 times the MessageBox still remains visible even after clicking on the Yes button against the actual behavior of becoming invisible/hiding immediately after clicking the Yes button of MessageBox.
Note that On my friend machine this problem does not exists.
I do not know .Whats the actual problem is.
Please help me with any study material or code.
Thanks
Regards
THE SK
|
|
|
|
|
If you want your UI to always respond when your code is doing some calculations, you need to do those calculations in another thread. Application.DoEvents() between your message box and your other code is a hack that may work.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Most probably, as you said your code works fine in your frnds computer. Might be your computer is getting hanged. And as you are keeping a sleep command immediately after the message box. What might be happening that when you fire a sleep command , the thread on which your whole application is working is paused. and hence the message box might not be able to get invisible , as the application is in sleep mode..
Or one more thing, Do one thing , keep any integer variable and show it in the message box displaying no of times message box is opened. This might give you an idea that after pressing YES , might be the new message box have appeared but because of very short time span , you might not be able to visualise the changes. .
|
|
|
|
|
try to refresh the main form that will ensure all the UI changes to be commited before moving on, check out either of the two methods, might work!!!
<br />
this.Invalidate();<br />
<br />
<br />
this.Refresh();<br />
<br />
|
|
|
|