|
It is difficult to know for sure what your problem is, as you did not include all your code. For instance, what is the value of splitter, and what does your loop look like?
Try stepping through your code and examining the value of dateopened, houropened, and whoopened. I think you will find that they all contain the same thing, an array with all the dates, all the hours, and all the whoopened.
You might try modifying it like this:
stringarray = s.Split(splitter);<br />
Console.WriteLine(Convert.ToString(stringarray[i*3]));<br />
Console.WriteLine(Convert.ToString(stringarray[i*3 +1]));<br />
Console.WriteLine(Convert.ToString(stringarray[i*3 +2]));
This is assuming that the first iteration of the loop, i is zero.
I hope this helps.
Roy.
|
|
|
|
|
I need to draw vector images in my form, so the user can modify, resize, move the points.
Can i do it?
|
|
|
|
|
Hi to all, my query is
That what is spyware signature and how can be genrated show any method and example of spyware signature.Anyone know about this query Please help.
|
|
|
|
|
|
|
Hi ebody,
I need to populate my listview with a XML file as my datasourse. I want to populate two columns from the xml file. Plz guide me.
This below xml is my xml datasource. I need to populate SearchName and ID elements from this xml to my listview.
Thanks in advance.Plzzz urgent help.. (I am using c# windows application.)
<repositorysearch>
- <fields>
<id>1
< SearchName >search name 1< /SearchName >
<documentname>document name 1
<documentdescription>description 1
<documenttype>Adobe Acrobat
- <fields>
<id>2
<searchname>search name 2
<documentname>document name 2
<documentdescription>description 2
<documenttype>Microsoft Word
-- modified at 3:50 Wednesday 14th June, 2006
|
|
|
|
|
u can fill dataset from ur xml file by using dataset's readxml method.
then u can populate listview from this dataset by adding items in listview.
rahul
|
|
|
|
|
try this:
DataSet ds = new DataSet();
ds.ReadXml("Users.xml");
for(int i=0; i
|
|
|
|
|
Hi .. all
i wanna display a image in my page ....
im getting it as a byte array from db. the problem is i should not store it any where(neither in the client nor in the server side).
i wanna give this image as the source for a server side image tag.
<br />
byte[] Img =job.getLogo(Id);<br />
location = Server.MapPath("/job/temp/"+company + ".jpg");<br />
FileStream fs=new FileStream( location, FileMode.OpenOrCreate,FileAccess.Write);<br />
byte[] buffer = Img;<br />
BinaryWriter fileWriter = new BinaryWriter(fs);<br />
fileWriter.Write(Img);<br />
fs.Close();<br />
Logo.Src =System.Configuration.ConfigurationSettings.AppSettings["tempFolder"]+("/temp/"+company+".jpg");<br />
any ideas???
thanx in advance..
sathy
|
|
|
|
|
Hi.
I need to find someway or somekind of installer that will be able to install the following.
The dot net framework
The MSDE i use for the database, and the ini file after extraction must be written with the correct values.
My app, the setup files, as it has already been compiled into installation files.
I tried to include the msde and that into the installer of my app but the problem being that you can't install to different installations at the same time.
Or is the only way to do it by installing them all seperately, with that saying that the users are going to run away
Thanx in advance
He who laughs last is a bit on the slow side
|
|
|
|
|
Try innosetup it's free.
Just include other packages in the installer itself.
You can also try nullsofts installer.
I did this with my own java programs and included the JRE in the install program with options to allow the user to install or bypass.
|
|
|
|
|
Will check it out. thanx
If looked at a couple other but doesn't seem that they can fire another setup.exe
He who laughs last is a bit on the slow side
|
|
|
|
|
Mr. VB.NET wrote: I did this with my own java programs and included the JRE in the install program with options to allow the user to install or bypass.
In vb i'm totally lost. I got the innosetup to unpack my setup files, but how do I trigger them, and like you said to allow or bypass certain steps
Thanx in advance
He who laughs last is a bit on the slow side
|
|
|
|
|
Use NULLSOFTs NSIS
It will take you about three days to learn it, they have tons of examples.
|
|
|
|
|
I got that one and then the innosetup aswell.
Looks like time to start learning scripting, which one of the two would you say will be the easier one to learn the quickest?
He who laughs last is a bit on the slow side
|
|
|
|
|
|
Read this : http://www.codeguru.com/Csharp/.NET/cpp_managed/article.php/c4871
To use unmanaged code in .NET, read this : http://www.codeproject.com/useritems/usingcppdll.asp
|
|
|
|
|
I think that you missed switching from the cell phone to the computer. This is a forum, not an SMS... But seriously, writing proper english increases your chances of getting replies.
Managed code is how the code works in .NET. The diffent compilers (C#, VB, etc.) produces IL code that is stored in the EXE or DLL files produced. The JIT (just in time) compiler then turns this into processor specific machine code when the application is started.
Unmanaged code is code that is not produced using the .NET development tools. The EXE or DLL files already contains the processor specific machine code. Managed code can use unmanaged code (and vice versa) using wrappers.
---
b { font-weight: normal; }
|
|
|
|
|
I have some problems using the datagrid in C#:
1.How can I set the font of each column separately? I mean if I change the font of the datagrid,the font of all columns changes,I couldn't find anything in table styles and so on.
2.I fill my datagrid from database. I want to have a column showing the row number.I didn't use the ability C# made(Autoincrement), 'cause whenever the datagrid is filled,it isn't being reset even if I set the autoincrementseed to '1' in my code.So I made it myself by a simple loop in the code.How can I use C# to do this?
3.By using the row number,I click on the header to sort the data in that column and the whole row position changes in the datagrid regarding des or asc sort.But I want to refresh the row number again. I mean if you have 3 rows:
1.Mozhdeh,2.Ali,3.Mina
and you click to sort them it becomes:
2.Ali,3.Mina,1.Mozhdeh
But I want it to become:
1.Ali,2.Mina,3.Mozhdeh
Thanks in advance.
|
|
|
|
|
according to ur reqirement i think
u should use listview control
becouse it has facility to color individual column
and has got coulmnclick event on which u can fill
listview through coding.
rahul
|
|
|
|
|
I don't have the experience to work with the listview control.Does it have the same facilities as the datagrid?Does it have the same nice user interface? I mean the rows and the columns in the listview doesn't have the same nice user interface,does it?Would you please introduce it a little bit more?
Thanks.
|
|
|
|
|
u r right that listview do not have that nice interface as datagrid
but again the functionality u r looking for is possible with listview
listview donot have any property like datasource so u can not bind it with dataset.
u have to individualy add the data using listview item object.
ur reqired to do lot of coding in using listview,so i will sugest u
to learn more about the use of listview.
rahul
|
|
|
|
|
Thanks a lot.But I want to fill it from database. I think because it doesn't have any property to bind a dataset to it, it isn't possible,is it?So isn't there a way to move a cell in a datagrid individually in order to solve the sort problem I mentioned?
|
|
|
|
|
yah u can fill listview from dataset by following way
suppose u have three columns then
foreach(DataRow Dr in dataset.tables["table name"].rows)
{
ListViewItem iTem=new ListViewItem();
iTem.SubItems.Add(Dr["column name"].ToString());
iTem.SubItems.Add(Dr["column name"].ToString());
iTem.SubItems.Add(Dr["column name"].ToString());
listview1.items.add(item);
}
rahul
|
|
|
|
|
The answer for everything are DataGridColumnStyle s.
I do not have the time to give some detailed examples but generally you can tell the grid how each column should look like by explicitely defining DataGridColumnStyle s. There are predefined ones which get automatically created when you bind the DataSource but you can override them. You can implement as much different styles as you want (inheriting either from the DataGridColumnStyle base class or probably from DataGridTextBoxColumn or another default one. The most important part there is now that you can implement your own Paint function where you can change color, font, the contents or whatever you like.
I suggest reading on this topic on MSDN, search for articles here on CP and probably use Reflector to look at the built in ones to get an idea on how to start. The whole thing can be rather complex at the beginning but if you know how to use it you can really do neat stuff with the DataGrid.
-- modified at 6:57 Wednesday 14th June, 2006
|
|
|
|