|
thanx leppie
google here i come!
it just makes no sense to me that two of the exact same things gets initialized to two different values for no apparent reason, stupid MS...
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
i solved the issue by doing the following
private DateTime breakEnd = new DateTime();
[DefaultValue(typeof(DateTime), "00:00")]
public DateTime BreakEnd
{
get
{
return breakEnd;
}
set
{
breakEnd = value;
if (breakEnd != new DateTime())
{
mtxtBreakEnd.Text = breakEnd.TimeOfDay.ToString();
}
}
}
i just hope it holds up...
thanx again for pointing me in a direction
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
HarveySaayman wrote: i just hope it holds up...
Why? Your dev station a bit unpredictable?
|
|
|
|
|
no, but Visual Studio is
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
I was thinking about this more the other day but haven't had chance to try any code so I haven't reposted. The problem lies in the public properties that the form must set (to zero or the equivalent). If you made the properties private remove the properties but created public methods to set/get them the private member variables (sort of what a property does internally anyway) then the form wouldn't automatically mess with the values - only when it was instructed to call the methods.
Dave
|
|
|
|
|
hi
i'm working on hiding data in structure of microsoft word document 2003
my problem is how i access to document stream and table stream in strucutre of word
i think i must entring the root first
please help me
|
|
|
|
|
you can use IFilter that reads pure text of a document. It's amazing )
but I don't know how to reach that table stream
|
|
|
|
|
There is a method called datatable.select(string) to filter rows from a datatalbe
But the string must contains one columnname in the datatable.I know nothing about the datatable,what i want to get is just the first N rows in the datatable.
what should i do? Thanks
|
|
|
|
|
The DataTable's Rows property contains all the rows in the table. Just loop through it.
|
|
|
|
|
IEnumerable<DataRow> dt = myDataTable.AsEnumerable().Take(3);
Now, you have a new DataRow list
modified on Wednesday, July 16, 2008 7:06 AM
|
|
|
|
|
thanks,thank you very much!
accrooding your way i have solve my question.I could get the first 100Rows,
But another question is how do i get the second 100 rows(101-200)?
because i want to display 100rows/page.
thanks for any help.
|
|
|
|
|
if you thing to make paging you can use this:
Maybe it's a bit long way but I couldn't find another way.
for first 100 records:
IEnumerable<DataRow> dt = myDataTable.AsEnumerable().Take(100);
for next n * 100
IEnumerable<DataRow> dt = myDataTable.AsEnumerable().Skip(n * 100);
I meant if someone clicked 5. page
n=5
IEnumerable<DataRow> dt1 = myDataTable.AsEnumerable().Skip(n * 100);
than you need new table with your new rows (dt1)
your secondTable = dt1
after that again
IEnumerable<DataRow> dt2 = secondTable.AsEnumerable().Take(100);
I hope it's helpfull
modified on Friday, July 25, 2008 8:31 AM
|
|
|
|
|
Thank you very much!i will try.
Thank you!
|
|
|
|
|
Hi all,
How do i know that there is some row exist in the grid or not ...
i have to test a condition like
if(this.abcgridview.CurrentRow.selected)
{
// do something
}
am calling this condition from two different places
in first case grid has some rows..that time no problem am able to execute my task
but in second one i dont have anyvalue in the grid that time it is throwing me error message ...
like "Object reference not set to an instance of an object".
can you please help me here ...
Thank you..
vikas da
|
|
|
|
|
if(dataGridView1.Rows[0].Cells[0].Value.GetType() == typeof(DBNull))
{
}
|
|
|
|
|
Thank for ur reply its done ...
if (this.abcDataGridView.CurrentRow == null)
{
//some message
return ;
}
i am trying with ur code now ..
vikas da
|
|
|
|
|
hi,
how can i get the data from i list and then put such data in textbox,
like that
DomainContext objContext = new DomainContext(new ManageInstitute());<br />
objContext.AddField(EntityMapper.School.SCHOOLID,8);<br />
IList objList= objContext.Load(EntityMapper.Entities.SCHOOL, DomainMapper.GET_SCHOOL_BY_ID);
then how can i put the data in "textbox" from "objlist"
textbox.Text=objlist??????
|
|
|
|
|
IList implements IEnumerable . So you can use foreach to iterate the collection and set necessary values to textbox.
foreach(object obj in objList)
{
textbox.Text = obj.ToString();
}
|
|
|
|
|
Hi everyone
I'm writing a web application which has a button called 'go', when it's clicked it takes long to execute, so I want to play a flash file while it's being executed, so I want to call two methods playflash function(written in javascript in the header of aspx file) and run(written with c# placed in the aspx.cs file), when this button is clicked how should I do this? I tried the following code but it didn't work onButtonClicked="playflash();run();"
Please help me.
|
|
|
|
|
You can use some AJAX calls to do this. Look at the AJAX toolkit.
|
|
|
|
|
Instead of onButtonClick, use onClientClick.
|
|
|
|
|
How to display thumbnail image in listview controller.
there are three type files in listview.
1,normal files : display system thumbnail.
2,image files : display image thumbnail.
how to do?
if you can provide the project ,very thank you!
|
|
|
|
|
I can supply you with my code which is downloaded from www.codeproject.com. I hope that you can get some information from my code.
|
|
|
|
|
I am executing a query
ObjectQuery query = new ObjectQuery("Select TimeWritten from Win32_NTLogEvent Where LogFile='Application' ");
it gives, Timewritten= 20080715091712.000000+330 which format of dateTime is it.
how could i compare it with DateTime having format mm/dd/yyyy HH:MM:SS, as i compare it with it gives error.
Regards
|
|
|
|
|
I think you must write your own method to compare it.
|
|
|
|