|
The way of presentation is not clear. Try to explain clean and concise.
Check the selection property of list view. Set the value of MultiSelect property to True .
|
|
|
|
|
i want to make combobox like addressBar in IE. i have made a comboBox but when i type something in combobox and then press backspace, it does not work.i handled the keypress event on combobox. all other keys are handled expect backspace, arrow keys. i also want autocomplete feature like addressbar. in which way i can achieve this funcitonality.
Amit Grover
CDAC R&D
Gist Group
pune
|
|
|
|
|
hi
how to make automaticly filling on one excel table????
and
can i link c# with my sql???
C#,ms sql,
|
|
|
|
|
For you MySQL Part of the question visit the following link
http://www.csharphelp.com/archives2/archive288.html
For your Excel part of the question I know of a way to open excel from C# and then you can populate the cells of the worksheet using your code which is very straight forward. For this checkout the following link
http://www.codeproject.com/csharp/csharp_excel.asp
|
|
|
|
|
|
Imagine DataGrid contains three columns of its DataSource And another columns of DataSource have been to fill with two TextBoxes . So I want to fill them when the new row in the grid is filling .
The following code to do this operation :
private void dataGrid1_CurrentCellChanged(object sender, System.EventArgs e)
{
try
{
int colNum;
int rowNum;
colNum = dataGrid1.CurrentCell.ColumnNumber;
rowNum = dataGrid1.CurrentCell.RowNumber;
//fill 2 columns of dataset
int cod1,cod2;
cod1=Int32 .Parse (textBox2.Text );
dataSet31 .factor .NewRow ();
* dataSet31 .factor [rowNum ].proje_code=cod1;
cod2=Int32 .Parse (textBox1.Text );
dataSet31 .factor [rowNum ].hazineh_code=cod2;
}
catch(Exception ex)
{
MessageBox .Show (ex.Message );
}
}
But in execution time when I click on forth row and it arrives to the marked line with star then this error message appears :
there is no row in position 4
. I want to Insert the new information of DataGrid to my DataSet that has 5 columns . you khow that my DataGrid has 3columns of its DataSource(DataSet)
. 2 TextBoxes fill the 2columns of DataSet . this 2 columns are the 2 field of primary key
. in execution time when I fill a row of DataGrid this error appeares :
. column ' proje_code' does not allow null
Thanks
|
|
|
|
|
Hi.
Can you show us how you insert the two rows from TextBoxes to the DataSet.
And what is this factor property of the DataSet.
|
|
|
|
|
Hello
int colNum; int rowNum; colNum = dataGrid1.CurrentCell.ColumnNumber; rowNum = dataGrid1.CurrentCell.RowNumber; //fill 2 columns of dataset int cod1,cod2; cod1=Int32 .Parse (textBox2.Text ); dataSet31 .factor .NewRow (); * dataSet31 .factor [rowNum ].proje_code=cod1; cod2=Int32 .Parse (textBox1.Text ); dataSet31 .factor [rowNum ].hazineh_code=cod2; }
|
|
|
|
|
Hi All,
I'm using MS Enterprise library to configure my application. My app is written in C#.
How can I delete an entry (as shown below) from my config file?
<code>
<nPostStartStatus>9</nPostStartStatus>
</code>
Thanks.
-- modified at 0:33 Thursday 24th November, 2005
|
|
|
|
|
Dear ALL,
I want to call oracle(Developer) form (fmx file),from another application (c#).I want to call the form in such
a way that user dont need to enter login and password.I will hard code the username and password
in my C# application.User only press a button on C# form and and that button will open required Oracle form.
---------------------------------------
How can I DO this.PLEASE HELP............
Regards
|
|
|
|
|
Hi All,
I have a very simple problem .I want to rename a directory using C#.But
I am not changing the location of directory neither its name(letters)
just the case(from upper to lower or vice a versa).now if i use
Directory.Move or MoveTo method of directoryinfo class i get the
exception that source and destination must be different.one way around
this problem is that i should use move or moveto twice first moving
this directory to somewhere else then moving it again with the name
having different case.but i don't want to do that.Can somebody tell me
how to do this.Thanks in Advance.
Rakesh
|
|
|
|
|
First Create new directory for destination.
Than copy or move source.
|
|
|
|
|
Hi shafqaat,
You didn't get it.if my directory is C:\My Documents\pictures i want to Change it to C:\My Documents\PIctures .I mean i just want to change the case of some letters in the name of the directory.not its location.any suggestions.Thanks in Advance.
Rakesh
|
|
|
|
|
Since Windows has a case-insensitive view of the file system, "C:\My Documents\Pictures" and "C:\My Documents\pictures" is the same. You cannot change the case only. Try renaming it to "C:\My Documents\pictures.tmp" and then back to "C:\My Documents\Pictures".
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Thanks for your reply.I know windows is case insensitive.In files case the case can be changed using MoveTo method of filesysteminfo class.it changes the case .is there any equivalent for directory may be any api or anything.thanks again.
Rakesh
|
|
|
|
|
Create a Directory Pictures(not on the same location of pictures).And move Contents of pictures to Pictures.
Delete pictures
Move Pictures to the location of pictures.
For optimization the best way is to create Pictures on same drive (the one have pictures) in any other dummy directory and than delete pictures and than move Pictures to location of pictures. Like
c:\\MyDummy\\Pictures
|
|
|
|
|
I have experienced this bug while doing a project on video playbak.(plz give any solution) if you set the interval to 1000 ms it work correctly and the lbl show 1 ms then if you set it to 33.3 the interval is 46.0
and her is a list of values i get
set | get
---------
15< | 15
15 | 15
16 | switch between 15 and 31
17 | 31
...
31 | 31
32 | switch between 31 and 46
...
46 | 46
47 | switch between 46 and 62
as you we can see the resolution here appears to be 15~16 but to my knowledge the resolution should be 900 us. please advise if there is any timer with a better resolution,thx
<code>
using System;
using System.Windows.Forms;
using System.Drawing;
using System.Timers;
class TimerDemo:Form
{
System.Timers.Timer timerClock;
DateTime dtTimeStamp;
TimeSpan tsEllapsedTime;
Label lblTimeDiff;
public TimerDemo()
{
lblTimeDiff=new Label();
this.Controls.Add(lblTimeDiff);
timerClock=new System.Timers.Timer();
timerClock.Interval=33.3;
timerClock.Elapsed+=new ElapsedEventHandler(timeElapsed);
timerClock.Enabled=true;
dtTimeStamp=DateTime.Now;
}
private void timeElapsed(object sender, ElapsedEventArgs e)
{
tsEllapsedTime = DateTime.Now-dtTimeStamp;
lblTimeDiff.Text= tsEllapsedTime.Seconds.ToString()+":"+tsEllapsedTime.Milliseconds.ToString();
dtTimeStamp = DateTime.Now;
}
public static void Main()
{
Application.Run(new TimerDemo());
}
}
</code>
|
|
|
|
|
Your problem has nowt to do with the timer and everything to do with DateTime not being accurate enough to do millisecond-accurate timing.
|
|
|
|
|
I was interested in developing a small app that would keep track of my bank balance, and perhaps could even download a .QIF file from my bank's website.
It basically would need to access the web and enter a password protected account and retrieve information from that site
Is this possible to do and how do I go about setting something like this up? Any suggestions welcome.
thanks
-- Hard work is just an accumulation of the easy things you didn't do when you should have. --
|
|
|
|
|
It is possible, but a full explaination would be to length for this forum. Buttom line is that you need to send HTTP commands to the web server and then parse the HTML pages that will be returned.
|
|
|
|
|
Thanks. I appreciate that it is an involved process, and i am not looking for all the answers!
To get me started in the right direction, how do i go about finding out what what HTTP commands i would need to use and what information would i need to find when parsing the html?
Are you able to point me in the direction of any good tutorials or sources of info?
Thanks for your help!
-- modified at 18:20 Tuesday 29th November, 2005
|
|
|
|
|
I know of no tutorials or sources of info. My knowledge comes from over 8 years of testing web servers. It requires an in depth knowledge of HTML and the HTTP protocol. The best place for you to start is getting (do a HTTP GET to the banks home page URL) the home page for your banks web site. Doing HTTP commands with C# is pretty simple. The big problem is that there is no built-in capability to parse a HTML page. Over the years I've developed my own C++ dll for parsing HTML. Sorry, I don't have better news for you.
|
|
|
|
|
Hi fellows
My question is simple:
I have a very little program that I've created to understand the IEnumerator interface.
Here is a little piece of my software
//Method to populate my array
private void PopulateArrayList()
{
for(int i = 0 ; i < 4 ; i++)
{
m_MyDoors.Add(new Doors());
}
}
public void WhatDoorsIsOpened()
{
object CurrentDoor;
int i = 1;
IEnumerator NumberedDoors = m_MyDoors.GetEnumerator();
while(NumberedDoors.MoveNext())
{
CurrentDoor = NumberedDoors.Current;
if(((Doors)CurrentDoor).OpenClose() == false)
{
Console.WriteLine("Door {0} is opened.", i);
i += 1;
}
else
{
i += 1;
}
}
}
I've read in MSDN that IEnumerator supports a simple iteration over a collection. In this line of code:
IEnumerator NumberedDoors = m_MyDoors.GetEnumerator();
I'm just assigning the m_MyDoors' IEnumerable typed collection in the NumberedDoors, right?
In the MSDN too the following was wrote about IEnumerable:
Exposes the enumerator, which supports a simple iteration over a collection.
I've understand that IEnumerator assigns a typed collection.
I did'n understand the IEnumerator so good. The IEnumerable I didn't understand nothing?
Can anyone helps?
Thanks
|
|
|
|
|
Hi fellows
My question is simple:
I have a very little program that I've created to understand the IEnumerator interface.
Here is a little piece of my software
//Method to populate my array
private void PopulateArrayList()
{
for(int i = 0 ; i < 4 ; i++)
{
m_MyDoors.Add(new Doors());
}
}
public void WhatDoorsIsOpened()
{
object CurrentDoor;
int i = 1;
IEnumerator NumberedDoors = m_MyDoors.GetEnumerator();
while(NumberedDoors.MoveNext())
{
CurrentDoor = NumberedDoors.Current;
if(((Doors)CurrentDoor).OpenClose() == false)
{
Console.WriteLine("Door {0} is opened.", i);
i += 1;
}
else
{
i += 1;
}
}
}
I've read in MSDN that IEnumerator supports a simple iteration over a collection. In this line of code:
IEnumerator NumberedDoors = m_MyDoors.GetEnumerator();
I'm just assigning the m_MyDoors' IEnumerable typed collection in the NumberedDoors, right?
In the MSDN too the following was wrote about IEnumerable:
Exposes the enumerator, which supports a simple iteration over a collection.
I've understand that IEnumerator assigns a typed collection.
I did'n understand so good the IEnumerator. The IEnumerable I didn't understand nothing?
Can anyone helps?
Thanks
|
|
|
|
|
Hi.. I'm currently doing a web design on the calendar. I would like to ask that if i click the date on the calendar, how can i make it appear on the text box once i click on the date? I have tried several ways of doing it but it does not show out. Did anyone know how to call the date out onto the textbox? Your help will be greatly appreciated.Thank
Cheers!
|
|
|
|