|
We don't use ArrayList anymore.
|
|
|
|
|
I didnt what to type System.Collections.ObjectModel.Collection<string[]>... but guess i have now
plus i did 'edit' to say a dataTable would be a good alternative
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
musefan wrote: System.Collections.ObjectModel.Collection<string[]>.
IMO List<string> will do. A simple generics give you a typed ArrayList,
no explicit casting required any more.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
modified on Sunday, June 12, 2011 8:02 AM
|
|
|
|
|
Good to know, thanks
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
You can Split the strings on the semi-colons to get the individual values.
From there you could populate a DataTable or a two dimensional array, whatever you like.
|
|
|
|
|
Hi,
i added an eventhandler to the ItemSend event of the outlook outfolder. It fires regular but when i use following code
1 void Out_Items_ItemAdd(object Item) {
2 log4.Debug("new item in outfolder added");
3 Outlook.MailItem mail = Item as Outlook.MailItem;
4 if (mail == null) {
5 log4.Debug("not a mail item");
6 return;
7 }
8 try {
9 moveMailItem();
10 return;
11 }
12 mail.Send();
13 } catch (Exception ex) {
14 log4.Debug("error sending item", ex);
15 }
16 }
when i now send a new mail it works and it calls moveMailItem().
My problem is when i send an meetingRequestItem it logs that this is no mailitem and exits the eventhandler. But then the item never sends. Its hanging in the outfolder forever.
I tried to explicitely call send on that item but i found no way to call send to it.
I tried to add Item = null after line 5 and called the Garbage Collection. It thens sends all Appointments that where hanging before on 3 PCs but on one PC there where not all items send out that where no emails and they sent where still in outfolder.
Can someone please give me an hint how this could be fixed?
|
|
|
|
|
Hello,
i have some label, and i would write them on pdf file, this pdf contain table wicht i must respect the posistion of every label, how i can di this?? "Edit a pdf file or edit a pdf word and transforme it on pdf", please help me ti do this, thank you verry mutch.
modified on Thursday, February 12, 2009 8:47 AM
|
|
|
|
|
Well, you're going to have to find a way to interpret whats on the page, determine its boundries and then figure out how to place your text so you don't disturb what's already there.
Seriously, there's no way anyone can answer this question in a forum environment since there are so many different ways to put a table in a PDF or a Word doc.
|
|
|
|
|
how can i use multiple progress bars in single update panel
and while in progress mode update panel should be disabled like the message should be "plz wait loading..."
|
|
|
|
|
huh?
From what i can gather you have a progress bar in a panel, right?
Well to answer your question you just put more progress bars there
Is it something else you mean?
venu656 wrote: like the message should be "plz wait loading..."
plz dont use plz in message
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
I wouldn't run an application that said "plz wait loading.."
|
|
|
|
|
EliottA wrote: I wouldn't run an application that said "plz wait loading.."
Isnt that a paradox? (I hope im not needing a definition search for using that word )
well i did one anyway just to make sure lol...
A paradox is a statement or group of statements that leads to a contradiction or a situation which defies intuition; or, it can be an apparent contradiction that actually expresses a non-dual truth
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
Hello,
i would open a directory like openFileDialog, i try openFileDialog, but he open the file, i would get a path of directory to save, thank you verry mutch.
|
|
|
|
|
Perhaps you want the FolderBrowserDialog ?
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
thank you for your answer, so it havn't a propriety Filename, i would to get the path of directory chosen by FolderBrowserDialog, thank you.
|
|
|
|
|
SelectedPath property will have it.
Why can't you use object browser to get these kind of information? It would have been lot quicker.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
Doesn't this code just work fine?
OpenFileDialog ofd = new OpenFileDialog();
if(ofd.ShowDialog() == DialogResult.OK)
{
String fileName = ofd.FileName;
}
|
|
|
|
|
im working on my IT graduation project for developers,the idea is to make a program that monitors,traces,controls other applications.
what are the concerns of the developers while developing their programs and how can we help in this area? if you can suggest some links or books that may help me...
|
|
|
|
|
|
|
Hi,
I have a datagrid bound to a previously created datatable in code and now I'm looping through the datagrid columns to change a certain column's type to a combobox, how can I do that??
Thanks guys!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
are you working with a Win control (from System.Windows.Forms) or Web (from System.Web.UI.WebControls)?
Calin
|
|
|
|
|
you may use DataGrid.Columns property to access/control the columns.
Calin
|
|
|
|
|
Ok, I found it:
private void ConvertToCombo(DataGridViewColumn tc,string[] values)
{
try
{
if (MyDataGridView.Columns.Contains(tc.Name))
{
DataGridViewComboBoxColumn cc = new DataGridViewComboBoxColumn();
cc.DataPropertyName = tc.Name;
cc.Name = tc.Name;
cc.HeaderText = tc.HeaderText;
cc.Items.AddRange(values);
MyDataGridView.Columns.Remove(tc);
MyDataGridView.Columns.Add(cc);
}
}
catch (NullReferenceException) { }
}
ConvertToCombo(MyDataGridView.Columns["GRADE"], " ;A;B;C".Split(';'));
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi All,
I'm making my first Custom Control in WPF at the moment and have created a Custom Control Library to keep them all in. As part of this first control I'm getting a lot of infrastructure set up at the same time.
Currently there are many ways to get data into the control in various formats such as single objects, lists of objects, DataTables and raw data (strings, ints etc ...) In addition to this one of the things I've included in the library is a DAL that can connect to databases to retrieve data for the controls.
Is this a good idea or not? Should I be merely allowing consumers of the library to retrieve the data externally and pump it into the controls? Or is this a nice to have that can remain a feature of the library?
Cheers,
|
|
|
|