|
The auto generated code is same on both the machines. I was unable to locate any difference in the two files.
|
|
|
|
|
Hy,
I want to select item(s) in a c# ListView from code. SelectedIndices and SelectedItems methods are read only.
Thanks,
Mihai
|
|
|
|
|
listView1.Items[0].Selected = true;
listView1.Items[3].Selected = true;
listView1.Select();
|
|
|
|
|
Hi
I am using the Microsoft.Jet.OLEDB to connect to an Excel workbook
I can use the following sql to insert data into the Excel sheet (I hope my syntax is correct. I do not have the compiler with me):
String sql = “Insert INTO [Sheet1$] (Lastname, Firstname1) Values ('XXX', ’YYY’)";
OleDbCommand cmdExcel = new OleDbCommand(sql, conn);
OleDbDataReader drExcel = cmdExcel.ExecuteReader();
The problem that I have, is that for that INSERT to work those column headers (eg Lastname, Firstname1) need to exist in the workbook. I want to create a new workbook using code and insert data without having column names to insert the data under. How would I change the INSERT sql to specify in which column to insert data in (eg in A, B, etc).?
Thanks.
Kobus
|
|
|
|
|
try to use
create table NewSheet ......
or
alter table [Sheet1$] add ......
them you can use insert statement
|
|
|
|
|
I can't insert date 29-Feb-2000 or 29-Feb-2004. please tell me why?
|
|
|
|
|
|
DataType missmacth in criteria expression
|
|
|
|
|
|
Yeah!! the point is i can insert 28-Feb-2004 but 29-Feb-2004 it error. I don't know why.
|
|
|
|
|
This is the code I have used to send a mail ..But using this some body didn't collect their mail .I think I need to put sender name and password when setting SMTP..But there is No place set it..
can any one please tell me to set user name and password of the mail sender?
MailMessage mailMsg = new MailMessage();
mailMsg .From = "pu12345@developeroffice.com";
mailMsg .To = "rasika12@yahoo.com";
mailMsg .Subject="newmail";
mailMsg .Body = "boday";
SmtpMail.SmtpServer="servername";
SmtpMail.Send(mailMsg);
thanks in advance..
|
|
|
|
|
|
this may return to your mail srever some mail servers don't accept unvalied users you should use a valied mail in from field
Mhmoud Rawas
------------
Software Eng.
|
|
|
|
|
my application works like this,i have a datagrid,a dropdownlist and a submit button,my
dropdownlist contains a list of intervals eg(100-999)(2100-2199),in order for the user to
add to the grid he has to choose an interval from the dropdown,and the id for the row he's
adding has to be in that particular interval.
i have a method/function that checks if the id is in the chosen interval
private void checkvalue(int value)
{
if(value>=100 && value<=999)
{
}
else
{
label.text ="value is not in the required interval"
}...
and the button clickevent
private void ButtSubmit_Click(object sender, System.EventArgs e)
{
checkvalue(num);
//adding to the grid
collection.add(num);
...
}
when i click my submit button ,and into the checkvalue callfunction,if the value is not in the required interval ,it prints the text message but still continues to add the row to my grid
i want it to stop after it prints the message and exit without adding the row to my grid,what do
you suggest i do.i hope this is clear enough
thanks
|
|
|
|
|
|
I think you want your "checkvalue" method to return a boolean.
private bool CheckValue(int num)
{
return (value>=100 && Value<=999)
}
private void ButtSubmit_Click(object sender, System.EventArgs e)
{
if(CheckValue(num))
{
collection.Add(num);
}
else
{
label.Text ="value is not in the required interval"
}
}
|
|
|
|
|
I have seen a kind of navigation and i want to know the name of this. It was on the site "www.reinhard-mey.de".
Can anybody help us me? Give it the control also in c#?
|
|
|
|
|
Looks like a topic map displayed using a spring-layout.
I do not know working implementation in .NET for this.
Check Hypergraph and Touchgraph for Java...
If you find one - please notify me
/cadi
24 hours is not enough
|
|
|
|
|
That control uses macromedia flash. You can't do that with c#.
Dirk Watkins
|
|
|
|
|
Oh. I lied. That is java. But the same can be done with flash and it's probably a heck of a lot easier..
Dirk Watkins
|
|
|
|
|
how do i appendtext to richtextbox in bold?
bye
|
|
|
|
|
Use the Font dialog box to change the fonts, the font size, and/or the font style for text and data fields on your reports.
Access the Font dialog box through the Fonts tab of the Default Settings dialog box.
Font
Lists all the available fonts. Click a font name to select a different font.
Font style
Lists the available styles for the specified font. Click a font style to select a different style.
Size
Lists the available point sizes for the specified font. Click a size to change the size of the font.
Strikeout
Specifies whether the font should appear with strikeout marks.
Underline
Specifies whether the font should appear with underlines.
private void Fontmenu_Click(object sender, System.EventArgs e)
{
fontDialog1.ShowColor = true;
fontDialog1.Font = richTextBox1.Font;
fontDialog1.Color = richTextBox1.ForeColor;
if(fontDialog1.ShowDialog() != DialogResult.Cancel )
{
richTextBox1.Font = fontDialog1.Font ;
richTextBox1.ForeColor = fontDialog1.Color;
}
}
mahes
|
|
|
|
|
Hi
I am developing a website and my client require it to be "Multilingual".How can I do this.
Thanks in Advance
Alok
Alok
|
|
|
|
|
|
in oirder to do that you can use recourses file or the bettre way is to create an engine to translate any label in the page from a database
Mhmoud Rawas
------------
Software Eng.
|
|
|
|