all groups > c# > january 2008 > threads for saturday january 5
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Enum to ListBox
Posted by info@thelisters.co.za at 1/5/2008 10:45:11 PM
Is there a way to add a list of items from an enum to a ListBox, and
be able to reference them by their 'id'?
I have this:
public enum Chemistry
{
Lipo = 1,
NiMH = 2,
NiCl = 3,
Pb = 4
}
So is there anyway to do somethin... more >>
Why an @ in file path?
Posted by tshad at 1/5/2008 8:38:25 PM
I have seen some examples where an @ is used before a path statement:
docNav = new XPathDocument(@"c:\books.xml");
What is it for?
I have never used it for my file paths.
Thanks,
Tom
... more >>
Update From dataset to Database
Posted by Baddy2009 at 1/5/2008 7:57:42 PM
Hi everybody,
I have a problem: I have a form and a DataGridView. I used DataAdapter
to get data from the DB. My source Db have two tables, and i use the
join the create e new tables in the dataset, then I load the dataset
into the datagrid. Now to upgrade the database directly from the
Dat... more >>
DataTable.Select - Thread.CurrentThread.CurrentCulture - String.Format
Posted by Rainer Queck at 1/5/2008 7:12:40 PM
Hi NG,
in my application a <myDataTable>.Select fails with "Syntax error in the
expression."
It took me a while, isolate the cause to this:
To select some datarows from a data table I am using a select sting like
"selectStr = String.Format("x >= {0}", aDoubleVar)".
The Thread.CurrentThre... more >>
difference found with debugger attached
Posted by colin at 1/5/2008 6:03:19 PM
Hi,
Ive finally found what the difference is,
it seems a difference of the least significant bit
is enough to cuase a problem with part of my code,
wich determins if one point is inside a 3d model.
it works if the reference inside point does not lie exactly on
any one surface and this hold... more >>
Get properties in native order for DbLinq
Posted by Andrus at 1/5/2008 4:38:27 PM
I need to get type t properies in the native order as they appear in class
definition .cs file.
Type t has full-property constructor whose parameters are all properties in
native order.
I tried
public static PropertyInfo[] GetProjectionDataInNativeOrder(Type t) {
PropertyInfo[] props = ... more >>
'user id' is an invalid connection string attribute error on Oracle....
Posted by at 1/5/2008 3:14:08 PM
Hi All,
I have a client connection problem with Oracle.
The exe which i did with C# (vs.net 2005) and Oracle XE , works well on my
developer machine but i am getting a connection string error on the client
side. The error comes from System.Exception class not from OracleException.
The p... more >>
Is it possible to develop for Windows Mobile 6 in C#?
Posted by Konrad Viltersten at 1/5/2008 10:50:04 AM
I've installed Express C# but as i just purchased a new PocketPC
device with Windows Mobile 6 it stroke me that it could be very
nice to write an application for just my device.
Is that possible in the Express version or do i need the full and
painfully expensive version of Visual Studio for t... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Data manipulation before binding
Posted by nagar@community.nospam at 1/5/2008 10:24:46 AM
I'm using data binding to display the values of a dataset in a form.
Normally I associate the Text property of the UI element to a field of
the dataset.
For a specific field, I need to do the following:
I fill a combobox with custom objects that basically have two
properties (value which is... more >>
Understanding != when rewriting URLs
Posted by musosdev at 1/5/2008 7:55:01 AM
Hi guys
I have a web app I'm developing in C#. I have a UrlRewrite HTTP Handler,
which seems to work, apart from when I ask it to do something if NOT.
Here's the directory structure...
/default.aspx
/gallery/default.aspx
/gallery/viewartist.aspx
On the main page, I have a link to the... more >>
.NET built-in interfaces
Posted by RP at 1/5/2008 6:07:43 AM
There are various built-in interfaces, like: IEnumerable, IDisposable,
IDataReader etc. For what they are meant for and when to use them?
Where I can find examples on these?... more >>
Delegate to call a function
Posted by RP at 1/5/2008 6:03:18 AM
I have a function to fill combo box items. I pass SQL query and combo
box name as arguments. This function is located in another class. In
my Form, I have declared a delegate to this function before the
namespace as;
public delegate void dFillItems(ObjectName as string, Query as string)
On ... more >>
|