all groups > c# > june 2006 > threads for sunday june 18
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
Exporting datagrid to Excel in a Windows Application
Posted by KC Eric at 6/18/2006 10:59:45 PM
Hi all,
I am trying to export the content of a datagrid to Excel format (xls) in
a Windows Application,
I google a bit, but the examples I found were focus on ASP.net, using
the response object, e.g.
HttpResponse response = HttpContext.Current.Response;
response.ContentType = "applicati... more >>
TypeLoadException
Posted by Eric B at 6/18/2006 10:19:00 PM
I have created a DLL. It builds successfully without warnings.
I created an app that refereneces the DLL and it too builds.
However, when ever I try to use an object in the DLL
I get a "TypeLoadException", something like:
"Could not load type <name> from assembly <assembly name>"
Could som... more >>
AcceptTcpClient() / AcceptSocket()
Posted by PiotrKolodziej at 6/18/2006 10:13:36 PM
Hi
What is the difference in using above functions?
They have the same description. Is there any common practice, when to use
one of them and where we shouldn't?
PK
... more >>
How to Convert a date and time to epoch?
Posted by Extremest at 6/18/2006 7:51:03 PM
I have a bunch of dates in a couple different formats. I would like to
convert them to epoch. The dates are like this
Mon, 12 Jun 2006 09:18:22 GMT
12 Jun 2006 10:37:28 GMT
I can do this in perl easily with the Date::Manip module but don't know
how to do it in c#. Is there a way to do th... more >>
OptionalField attribute doesn't seem to work
Posted by rich.quackenbush NO[at]SPAM gmail.com at 6/18/2006 6:24:23 PM
I was very excited when version 2.0 of the framework came out... it
looked as though the OptionalField atribute would help me sort out my
serialization woes. So far, it hasn't through.
All I'm trying to do is add fields to objects which have already been
serialized. For example, I have seria... more >>
List of web components in the page at runtime
Posted by Wilson at 6/18/2006 6:03:01 PM
Hi,
How can I get the list of web components in the page at runtime ?
e.g.
there is two components in the page :
1. label1
2. textbox1
I want to just the list of the above components.
Thanks
Wilson... more >>
Event Processing?
Posted by Martin Brindle at 6/18/2006 5:18:29 PM
If i were to create a new thread which fires an event back to the main()
thread, which thread executes the event?
Martin
... more >>
What Is an Indexer?
Posted by SemSem at 6/18/2006 5:16:01 PM
i want to know waht is an index and how we use it with a simple example
including the main of the program .
thanx
--
Islam Khalil,... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
float arrays from C++ to C#
Posted by joesfer at 6/18/2006 4:18:02 PM
I'm trying to develop a graphical user interface for a renderer i've
got written in an unmanaged C++ DLL with C#. During the rendering
process, several images are sent to a delegate as float* arrays as
follows:
[C++ DLL code ] -------------------------------
void (__stdcall *m_ImageProgress... more >>
Overcoming C# limitations
Posted by Danny Liberty at 6/18/2006 3:27:32 PM
Hi,
I've recently encountered some design problems due to the language
limitations of C#.
Here are the scenarios:
1. Suppose I have a numerous number of functions that I would like to
add an optional parameter to. Since C# does not support optional
parameters, I would have to duplicate all... more >>
listbox control - valuemember & selectedvalue
Posted by Pat at 6/18/2006 2:52:50 PM
I'm a newbie to c# and could use some help - been banging my head on
the keyboard for 3 days now.
I have an unbound listbox that I'm populating this way:
1. loop through a datatable and load row into row object
2. Check one of the row columns against a dictionary key
3. If it's found, add ... more >>
oledb connection
Posted by Claudia Fong at 6/18/2006 11:34:32 AM
Hi,
I'm trying to connect an access database into my c# application. But I'm
having trouble to Drag and drop the data connection on the Form to
create an OleDbConnection object. I used to use the Visual Studio 2005
and this works, but now I'm using the C# express and I'm not able to
drag and ... more >>
Determining the font characteristics of any web page?
Posted by Peter Olcott at 6/18/2006 9:11:16 AM
What is a method or set of methods that can determine all of the font
characteristics of any web page? By font characteristics I mean typeface name,
point size, foreground color, background color, bold, underline, et cetera. I am
a visual C++ programmer, and will be learning .NET very soon, so if... more >>
End of Stream encountered before parsing was completed
Posted by Guru at 6/18/2006 8:04:01 AM
Hi all
I've serializing an object to a Network stream but when trying to
deserialize
it comes back with
"End of Stream encountered before parsing was completed."
Using Binary formatter to send across.
Any idea how to solve this.
Thanks in advance.
Guru... more >>
Unable to set Height
Posted by Udi at 6/18/2006 4:13:38 AM
Hi All,
I have a listbox (owner drawn) on a form.
the form is topLevel with no parent.
My problem is that I can't set the Height of neither the from or the
control to the values I want.
after I single step the following lines:
int height = 20;
this.autoCompForm.Height = height + 1;
this.... more >>
Eval string expression
Posted by Wilson at 6/18/2006 4:05:02 AM
Hello,
How can i eval a string expression like
String abc = ??"dt.Rows[i].Columns["key1"].ToString() +
dt.Rows[i].Columns["key2"].ToString()"
Thanks
Wilson
... more >>
How to compare Word Docs?
Posted by ljh at 6/18/2006 2:35:28 AM
Google ran dry on me while looking for .Net examples of how to compare 2
Word Docs.
Has anyone here seen anything like that?
... more >>
Cannot generate Debug exe
Posted by Ian Semmel at 6/18/2006 12:00:00 AM
Starting yesterday, for some reason a Build or Rebuild will not generate a
debuggable .exe in Debug if one already exists. Before doing a build, I have to
manually delete the file. If I don't do this, then no breakpoints etc work.
I THINK it might have coincided with installation of a ZoneAla... more >>
Is IDisposable.Dispose() deterministic for managed resources?
Posted by antoan at 6/18/2006 12:00:00 AM
For instance:
component.Dispose(); will this lead to resources beginning to be
released immediately after the method is called, as opposed to relying
on GC?... more >>
how to get IP address without using DNS
Posted by crespo at 6/18/2006 12:00:00 AM
hi,Everybody.
I want to get my computer's local IP address,I search internet for some
help,but most of them suggests using DNS with
codes like these:
IPHostEntry ihe = Dns.GetHostByName(Dns.GetHostName());
IPAddress myself = ihe.AddressList[0];
But I don't want to us... more >>
XML documentation problem
Posted by Lloyd Dupont at 6/18/2006 12:00:00 AM
I have a class which kind of represent something akin to a node in a tree
like data structure.
I have some method like that:
class Element
{
IList<int> GetElementPath(); // get the path from the root
Element this[int index] { } // get children
Element this[IList<int> path... more >>
Components List
Posted by Aleksey at 6/18/2006 12:00:00 AM
Hi, all!
Is there any standard way to get list of all components on my win form,
including components that their parent isn't form it self, but panel on the
form? Or to get this list I need create recursive function? (In Delphi there
is indexer - list of all including components)
Thanks... more >>
|