all groups > c# > march 2007 > threads for thursday march 8
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
Images in datagrid!
Posted by rcoco at 3/8/2007 11:07:25 PM
Hi guys,
Could some one help me out? I have a datagrid where one Row is for
selecting from radiobuttonlist of too, one has to be chosen. When it's
chosen it is stored in the database and appears to the datagrid after
the insert button pressed. But now I have two images that are supposed
to corr... more >>
For Datagrid
Posted by payal at 3/8/2007 10:59:58 PM
My web application contain one datagrid and in that four dropdownlist this drpdownlist bounded with the mysql database.so how i can fill this dropdownlist?
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com... more >>
Display items in a code snippet
Posted by Hardy at 3/8/2007 10:13:35 PM
I created a code snippet which is for displaying file name,Line number
and function name in C#.NET project.
// <File>
sf.GetFileName()
// </File>
// <Line>
sf.GetFileLineNumber().ToString()
// </Line>
// <Function>
sf.GetMethod().ToString()
// <Function>
But I could not get the fil... more >>
ISLAM AND TERRORISM
Posted by Happy Man at 3/8/2007 10:09:06 PM
ISLAM AND TERRORISM
BY
DR. ZAKIR NAIK
http://www.irf.net/irf/download/index.htm
MUSLIMS ARE FUNDAMENTALISTS AND TERRORISTS
Question:
Why are most of the Muslims fundamentalists and terrorists?
Answer:
This question is often hurled at Muslims, either directly or
indirectly, dur... more >>
2 initializers in 1 constructor
Posted by GeezerButler at 3/8/2007 9:55:15 PM
We have 2 classes. Class B derives from A
//Has 2 constructors
public class A
{
A()
{
//do something
}
A(string name)
{
//do something
}
}
//and B has 3 constructors
public class B : A
{
B()
{
//do something
}
B(i... more >>
C# Grammar issues
Posted by MBR at 3/8/2007 8:09:42 PM
Hello... I'm using the grammar at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_c.asp
as a reference in creating my own C# parser using a custom framework.
(Please let me know if there's a better group to post in.)
Some questions:
(1) Is t... more >>
ref vs. out: same at runtime, same/different at compiler time?
Posted by Zytan at 3/8/2007 5:57:35 PM
MSDN says: "The ref and out keywords are treated differently at run-
time, but they are treated the same at compile time. Therefore methods
cannot be overloaded if one method takes a ref argument and the other
takes an out argument."
But, I think it means they are treated the same at run time,... more >>
System.IO.File.Exists - what if network path and not C:\
Posted by Ronald S. Cook at 3/8/2007 5:36:14 PM
I'm trying to see if a file exists on a server. I have the below code which
doesn't seem to work. Must I necessarily have a mapped drive to that the
path starts with X:\ or similar?
if (System.IO.File.Exists("\\MyServer\MyFolder\MySubFolder\MyFile.txt") ==
true)
{
//Do stuff...
}
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
help debugging DataGridViewComboBoxColumn not setting value
Posted by sklett at 3/8/2007 5:34:12 PM
I have a DataGridView bound to a custom business object. The business
object has 2 attributes that are FKs to a lookup table (think HairColorID,
EyeColorID, etc)
For these 2 columns I have created DataGridViewComboBoxColumn and hooked
them up to BindingSources that populate them with the l... more >>
c# and expression blend
Posted by a at 3/8/2007 5:01:56 PM
I have made a form in microsoft expression blend as control library.
Can somebody please help me how to use that form from expression blend
in C#... more >>
question
Posted by a at 3/8/2007 5:01:06 PM
I have made a form in microsoft expression blend as control library.
Can somebody please help me how to use that form from expression blend in C#... more >>
Retaining column widths in the datagridview (.net 2.0) :-(
Posted by Simon Harvey at 3/8/2007 4:57:13 PM
Hi all,
Can anyone tell me if there is an easy way to retain per-user column
widths for the datagridview in a windows forms application.
I know I could do it with a lot of database programming and what not,
but I was hoping there would be a much easier solution. It seems like
such an obv... more >>
why is sealed and static not possible at the same time?
Posted by Zytan at 3/8/2007 4:25:36 PM
I know you cannot have a sealed static class, but why not? Why must
static classes be left open to inheritance?
This article: http://msdn.microsoft.com/msdnmag/issues/03/07/NET/
recommends to place DLL imports into a sealed class, with a private
constructor to prevent instantiation (see Figur... more >>
CSharp with COM components in 64bit
Posted by Yoavo at 3/8/2007 3:51:52 PM
Hi,
I have a c# application which uses COM DLLs which were build in 32bit
environment.
When I tried to run my program in 64 bit computer, the program crashed when
trying to create a COM class.
can someone please help ?
Yoav.
... more >>
How to know if SQLExeception is connection problem
Posted by Dan Holmes at 3/8/2007 3:17:33 PM
if i have a sqlexception error how can i tell if it was a failure to
connect to the db or a problem with the SQL? I want to handle
connection failures a different way.
dan... more >>
desperate call: referencing specific version Microsoft.Interop.Security.AzRoles assembly
Posted by Wiebe Tijsma at 3/8/2007 3:06:25 PM
Hi,
I'm running a web application application using the
Microsoft.Interop.Security.AzRoles version 1.2.0.0 in the GAC.
After an upgrade to Vista, I also have a version 2.0.0.0 in the GAC.
I seem to be absolutely unable to make the application load version 1.2.
What I've tried:
- del... more >>
removing escape character from a C# string
Posted by Vinki at 3/8/2007 2:55:15 PM
Hello everyone,
I am trying to remove the escape characters from my C# string. This is the
string "\"Water lilies.jpg\"". I want to just get "Water lilies.jpg". I
tried indexof, that didn't work.
string x = "\"Water lilies.jpg\""
int y = x.Indexof("\\",0)
y returned -1... more >>
remove struct's default constructor?
Posted by Zytan at 3/8/2007 2:21:39 PM
I have a struct constructor to initialize all of my private (or public
readonly) fields. There still exists the default constructor that sets
them all to zero. Is there a way to remove the creation of this
implicit default constructor, to force the creation of a struct via my
constructor only?
... more >>
C# equiv of Long Integer
Posted by Chris at 3/8/2007 2:10:18 PM
What is C# equivalent for a Long Integer in an access database?... more >>
DateTime.Now function question!
Posted by DBC User at 3/8/2007 1:42:35 PM
Hi,
I have a program where I store DateTime.Now in a database table. For
some reason in my query the datetime comes up as comma seperated
number. Like dateRequest = 39141,2890187037
This is happening only in a computer in Latin America. Any idea why I
am getting a comma?
Thanks.
... more >>
How to make GUI more beautiful?
Posted by fAnSKyer/C# newbie at 3/8/2007 1:21:01 PM
How to make GUI more beautiful?
Can any give any hint?
Or some examples that downloadeable from internet?
I am using C# and visual studio 2005
Thanks
... more >>
Call C/C++ CALLBACK DLL from C# (PInvoke? Wrapper class?)
Posted by MyCrystalGift NO[at]SPAM gmail.com at 3/8/2007 12:54:04 PM
Hi,
I have an old C++ GUI Application CPPAPP.exe that calls a C DLL
library RULE.DLL through a C++ class wrapper LoadRule.CPP.
Now I need to call the C DLL RULE.DLL from C# GUI application
CSAPP.exe. I need help to convert LoadRule.CPP to a C++
BridgeDLL, and I need help on how to convert... more >>
launch appliction setting on ftp site
Posted by Dan at 3/8/2007 12:35:25 PM
Hi
I need to be able to launch an appliction that is running on an ftp site.
ftp://localhost/someapp.exe
I don't won't to download it first, just run it from the ftp location, just
like you would if you use a web browser to reach the ftp site and run it
manually.
Any ideas?
thanks
d... more >>
.NET 2.0 memory usage: 32bit vs 64bit.
Posted by Frank Rizzo at 3/8/2007 12:08:34 PM
Hello,
I've compiled my app for AnyCPU setting in vs2005. Then I tried the app
on both 32-bit Windows 2003 R2 and 64-bit Windows 2003 R2. The memory
usage of the application when working on the same data set were
unbelievable (the data is from Task Manager) :
32-bit Windows 2003 R2
Me... more >>
BackgroundWorker not really workigng for me
Posted by Ishmael at 3/8/2007 11:54:59 AM
Hi,
I have a form with a progress bar on it and wanted to use the
BackgroundWorker to be able to update the progress. I looked at examples, run
some of them, but in debug, when the code gets to the do work method, it
stops for a long while and then executes the first line of the method and ... more >>
Non .Net C++ xmlrpc to C#
Posted by tmugavero NO[at]SPAM gmail.com at 3/8/2007 11:51:23 AM
Hello All,
I have a question that has been giving me a bit of trouble. Has
anyone been able to connect to C# from non .net C++ via XmlRpc? I
have been using the CookComputing XmlRpc Library with .Net remoting
and had success connecting from Java. I need to connect from C++
however, and hav... more >>
Call Another Function
Posted by Chris at 3/8/2007 11:44:54 AM
I have this code below for printing a report. How can I execute (cal) this
code from a menu button too?
// this is a routine for printing out the script.txt file
System.IO.StreamReader fileToPrint;
System.Drawing.Font printFont;
private void buttonLoad_Click(System.Ob... more >>
DLL Import method
Posted by Zytan at 3/8/2007 11:17:02 AM
I have VB code that shows how to import a DLL function. I compiled
it. I used .NET Reflector to see the C# code, and it shows this:
[DllImport("filename.dll", CharSet = CharSet.Ansi, SetLastError =
true, ExactSpelling = true)]
private static extern bool MethodName(
[MarshalAs(UnmanagedType.... more >>
Problems with XPathDocument
Posted by C#Schroeder at 3/8/2007 11:16:55 AM
First off I want to thank all that have helped me in the past. I am
new to working with XML in .Net.
I have another problem right now with my code.
Background: I am trying to create a HTML document from some forms from
a window application. I am creating a XML document from the forms,
usi... more >>
how to deal with a method that returns object array?
Posted by Ace at 3/8/2007 11:14:54 AM
hi there,
i have a following method which returns array of object.
public myresult[] getSearch(string searchterm)
{
object[] res = ....some external method call
return ((myresult[]) (res[0]));
}
so my question is... how do i consume the above method? can i do the
following?
myresu... more >>
Compiler Error - Seeking Help
Posted by lumien at 3/8/2007 10:58:31 AM
When using the following code, I get the error "The type
"ConsoleApplication1.robot" already contains a definition for
'color"". I also get the error for "height".
If anyone could point me to the answer to this issue or documentation
describing what I am doing incorrectly I would appreciate it... more >>
Compiler Error - Seeking help
Posted by lumien at 3/8/2007 10:57:45 AM
When using the following code, I get the error "The type
"ConsoleApplication1.robot" already contains a definition for
'color"". I also get the error for "height".
If anyone could point me to the answer to this issue or documentation
describing what I am doing incorrectly I would appreciate it... more >>
Need Asynchronous WCF solution which allows for multiple responses
Posted by jtbjurstrom NO[at]SPAM yahoo.com at 3/8/2007 9:06:15 AM
Bear with me because we are new to WCF and have been going through
documentation and samples trying to absorb as much as possible in a
short amount of time. Any suggestions would be much appreciated. We
would of course rather start off on the right path instead of learning
later that there's a m... more >>
Dictionary<> to List<>
Posted by Andrew Robinson at 3/8/2007 8:43:11 AM
I have a method that needs to return either a Dictionary<k,v> or a List<v>
depending on input parameters and options to the method.
1. Is there any way to convert from a dictionary to a list without
itterating through the entire collection and building up a list?
2. is there a common base cl... more >>
F5 is running an older version of my project
Posted by Titan at 3/8/2007 8:03:11 AM
When I run my project (F5), it runs an older version of my project.
However, when I build or rebuild the solution, it builds flawlessly...
so shouldn't this overwrite the older version of my project so that F5
runs the newer version?
Is there a way to clear the older versions (other than delet... more >>
"request for the permission of type"
Posted by magyar.laszlo NO[at]SPAM gmail.com at 3/8/2007 7:24:05 AM
Hi !
I have an activex .net dll in a webpage. This activeX is trying to
connect to an LDAP server using System.DirectoryServices.
Unfortunatelly it gets always "request for the permission of type"
error.
If I give full trust at the .net config tool it is working fine.
Is there any way to... more >>
Adding Own Class to WindowsApplication
Posted by bg_ie NO[at]SPAM yahoo.com at 3/8/2007 5:54:26 AM
Hi,
I wish to write a WindowsApplication which prompts the user to enter a
set of values in text boxes. I then what to write these values to an
xml file. I have created my own class where these values can be stored
as the application runs, but I am unsure where to declare an object
belonging ... more >>
DataGridView
Posted by Chris at 3/8/2007 5:47:18 AM
I have a combobox as a column in a datagridview that gets it data from a
lookup talbe. How can I osrt the data when you click on tis drop down?... more >>
Currency Conversion Source
Posted by Nissar Ahamed at 3/8/2007 5:42:02 AM
Currency Conversion is a tricky affair. Given the market rates, tt's not the same converting from USD to JPY (116.30) and from EUR to USD (1.3010) due to the conventions used for JPY and EUR.
Has anyone got a simple solution that can do the job? I will need the source code if possible.
EggHead... more >>
Help With PInvoke and SetupDiEnumDriverInfo/SP_DRVINFO_DATA
Posted by Rymfax at 3/8/2007 5:04:00 AM
I would really appreciate it if someone could help me figure out what
I'm doing wrong trying to PInvoke SetupDiEnumDriverInfo. All the
other PInvokes i've done up to this point work fine. Whenver I
PInvoke SetupDiEnumDriverInfo though, I get winerror.h code of 1784L,
which basically says it do... more >>
How can i use the concept of friend in c#?
Posted by p at 3/8/2007 3:31:47 AM
I know the word friend is not supported in c# and its not a very good
thing to but i would be thankful if anybody can explain in simple
words how can i implement it!
... more >>
NameSpace attribues
Posted by Praveen at 3/8/2007 2:27:15 AM
Loading an xml as below and adding a namespace attribute.
XmlDocument DocXml = new XmlDocument();
DocXml.LoadXml("<DA/>");
XmlElement Felem = DocXml.CreateElement("F");
Felem.SetAttribute("ABC", "1");
Felem.SetAttribute("CT:XYZ", "-1");
Felem.SetAttribute("xmlns:CT", "MyNameSpace");
DocXml.... more >>
Datagridview cell details with tooltip
Posted by Eran.Yasso NO[at]SPAM gmail.com at 3/8/2007 1:02:28 AM
Hi,
I need to display some info attached to a row in Datagridview. I
thought to do it in MouseMove event. The problem is that this event is
continuously fired which causes the tooltip to flicker.
I saw a post of some guy complaining on the same issue (he didn't get
any response).
Link:
ht... more >>
Description on my own objects in intellisence
Posted by Ariansen Jon Haakon at 3/8/2007 12:00:00 AM
Hi,
I see that all objects in the framework sdk has description in intellisence.
It would be nice to create descriptions on my own objects that I can see in
intellisence. Is that possible??
In advance thanks a lot for your reply.
Kind regards,
Jon Haakon
... more >>
|