all groups > c# > may 2006 > threads for friday may 19
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
Temporary form
Posted by Stefano at 5/19/2006 11:31:39 PM
Hi,
I want that when an application opens a form of information it is opened
for 5 second ones and then it is closed automatically leaving opened the
application.
Can you help to make that me?
Thanks
... more >>
what is LINQ
Posted by jack at 5/19/2006 9:43:52 PM
Iv just heard of LINQ what is this all about
... more >>
visual studio 2005 or visual web developer?
Posted by Jessica Weiner at 5/19/2006 9:39:41 PM
I need to build an ASP .NET application. Currently, we are using visual web
developer express edition. We would like to switch to the Visual Studio 2005
to do the rest of the coding. Is this transition fairly straight forward?
Also, can VS 2005 do everything that Visual Web Developer can?
T... more >>
Covariance question
Posted by PDHB at 5/19/2006 9:11:01 PM
Hi. I want the parameter type of a function to be the same type of the class.
One solution would be:
class Animal<TAnimal> where TAniman : Animal
{
public virtual void DoSomethingToTheAnimal(TAnimal animal)
{
////
}
}
class Dog : Animal<TAniman> where TAnimal : Dog
{
... more >>
Harrassment Using the Password Recovery Control
Posted by clintonG at 5/19/2006 7:51:59 PM
When the password is hashed and most secure this control mails a new
password to anybody that provides an authenticated user name. The previous
password can no longer be used to login. The newly "recovered" password must
be used to login and then the user must change the newly generated passwo... more >>
Recipient address rejected: Access denied
Posted by Coder at 5/19/2006 7:26:21 PM
Hello,
I m developing a web application and my site is placed on a hosting company.
The problem is, When I try to run this code, This error code returns.
"Recipient Address Rejected: Access Denied"
I can send via outlook using below smtp server address, but by c# code,
above error retu... more >>
Enhancing Bob Powell example
Posted by Rene at 5/19/2006 7:12:41 PM
Bob Powell has a code example called "Capturing the screen or the surface of
a control" found here:
http://www.bobpowell.net/capture.htm
I would like to know what in the world do I have to add to this code so that
the surface of the control is also captured even if there is another control... more >>
Page Rank!
Posted by Juanjo at 5/19/2006 5:59:42 PM
Hi people! I´m kind of newbie in web stuff, and actually we're doing some
work on a WebCrawler, for the purpose I need to calculate Page Ranks of web
pages, could you give me some help on the topic? I´ll be grateful if you
could faccilitate me some algorithm or library for calculating it on C#... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Error Message.. help.
Posted by Rafael Tejera at 5/19/2006 5:01:04 PM
I'm receiving this error message.
An unhandled exception of type 'System.Security.SecurityException' occurred
in system.data.dll
Additional information: Request for the permission of type
System.Data.SqlClient.SqlClientPermission, System.Data, Version=1.0.5000.0,
Culture=neutral, PublicK... more >>
what is wrong with this
Posted by gs at 5/19/2006 3:33:35 PM
I want to pass a string array to C which uses ansi
in a test, I tried:
unsafe public int ctstAny1dp(String*[] strOut)
{
private string[] strMyC = {
"abcdef string 1",
"abcdef string 2",
"abcdef string 3",
"abcdef string 4",
... more >>
Get network ip adresses
Posted by Kevin at 5/19/2006 2:56:53 PM
Hi!
How can i get the ip address of the machines in my network to scan the ports
and know if there are any app server running.
Thanks!
... more >>
ClickOnce
Posted by Mel at 5/19/2006 2:37:25 PM
Hi,
The window form application is deployed using clickonce to the local
drive. There is a local icon but it is buried deep in the document and
setting directory and of course changes with user. Is there any way to find
the installation directory, so other program can start it using
P... more >>
Object reference
Posted by simonZ at 5/19/2006 2:00:10 PM
in global.asax file of my web application I defined:
public void Application_Start(Object sender, EventArgs e) {
String[] besedila = new String[2];
besedila[1] = "test";
Application["besedilo"] = besedila;
}
And then on my page I have:
public partial class objava : System.We... more >>
Bind Generic Dictionary to GridView
Posted by Fao, Sean at 5/19/2006 1:48:11 PM
Is it possible to bind a GridView to a generic Dictionary object? When
I try it in my ASP.NET application, it throws an exception acknowledging
that the specified field or property does not exist. The problem, I
think, is that the GridView cannot see "inside" of the generic
Dictionary. I ... more >>
DLL with main entry point
Posted by Mythran at 5/19/2006 1:19:29 PM
Hmm, just for my test applications, I want to create a dll that has a class:
public class MyTest
{
[STAThread()]
public void Main(string[] Args)
{
... blah ...
}
}
I want to inherit this class in a Console application, and not have a main
entry point defined. ... more >>
HtmlEditor update
Posted by Tim Anderson at 5/19/2006 1:01:50 PM
I've posted an update to the HtmlEditor - hosts Msthml in C#. I've removed
the dependency on Microsoft.mshtml. See here:
http://www.itwriting.com/htmleditor
It would be nice to be able to use the DOM in System.Windows.Forms with the
control. You can easily get the unmanaged DomDocument fro... more >>
Dynamic Formatting
Posted by george at 5/19/2006 12:45:33 PM
Hi,
I have an app that takes data from a db and maps it to a CSV file. There
are multiple maps for different customers which has different formatting
rules. For example, some customer wants the data to be short data others
want to be long date. Another example is some do not want leading... more >>
What is the best way of adding various user Controls? [Win #C]
Posted by MikeY at 5/19/2006 12:28:06 PM
Hi everyone,
I'm trying to figure out, on my windows form, of what is the best way to add
various custom controls at various times during run-time. The problem is
that they will need to be in the same spot as each other, depending on what
is being called at that particular time by the user.... more >>
Get line number from exception stack trace
Posted by Oleg.Ogurok NO[at]SPAM gmail.com at 5/19/2006 11:59:38 AM
Hi there,
The .pdb files are generally not installed in a production environment.
As a result, when an exception occurs, the runtime can't resolve the
lines of the code where the problem happened. Instead, one gets the
offsets, e.g.:
[NullReferenceException: Object reference not set to an i... more >>
XSLT - how to use it
Posted by Dan Aldean at 5/19/2006 11:12:32 AM
Hello,
I would like to convert an XML document to HTML.
1. Can I build with the design tools the xslt document, or I have to write
code?
2. Does anybody have a small sample of C# of how to do the transformation?
Also the xml and xsl attached?
Thanks
... more >>
C#: CodeBehind and Code Re-Use Using Inheritance in windows applications
Posted by janisgs NO[at]SPAM gmail.com at 5/19/2006 11:11:04 AM
Hi
Is there a way to seperate code of interface in windows applications
for various design purposes? Just like it can be done in ASP.NET, one
code can be inherited in different skins with different design.
Sincerely
Del
... more >>
GetProcessesByName() returns "Access is Denied" when trying to access remote host.
Posted by Dave at 5/19/2006 11:04:47 AM
Hi -
I have an application that is monitoring a process on another machine.
This application runs as a service. The error that I am getting when
this runs is:
Couldn't get process information from remote machine.
System.ComponentModel.Win32Exception: Access is denied
I have searched the... more >>
Web Service - Invoke button missing?
Posted by J.Evans.1970 NO[at]SPAM gmail.com at 5/19/2006 10:54:33 AM
Hi. I've inherited a Web Service from a developer who is no longer
here. One of the purposes of the service was to clear the cache on the
server side. Up until a few days ago, it worked fine - I'd open up the
service from my browser, select the appropriate function from the list,
click the In... more >>
Trying to configure IIS v5.1 programatically.
Posted by UJ at 5/19/2006 10:43:58 AM
Is there a way to set certain configuration items in IIS v5.1
programmatically? What I specifically need to change are Web Site
Description, TCP Port, Home Directory and remove all items from the default
documents except index.htm.
TIA - Jeff
... more >>
Accessing fully qualified name of Assembly programmatically?
Posted by Erland at 5/19/2006 10:40:24 AM
Hi all,
As per my understanding in order to load an assembly using
Assembly.Load() you have to provide fully qualified name of the
assembly you are trying to load e.g.
Assembly
asmb=Assembly.Load("System.Windows.Forms,Version=1.0.5000.0,Culture=neutral,PublicKeyToken=b77a5c561934e089");
... more >>
FireFox cache
Posted by RobbGMelenyk NO[at]SPAM gmail.com at 5/19/2006 8:15:02 AM
I'm writing a C# program that returns various pieces of computer
information. I want to return information about what the user browses
on the web. It will only support two browsers: FireFox and IE because
this is what the userbase of this program uses. For IE, I return the
information within ... more >>
Validate XML with XSD - Tearing my hair out
Posted by daz_oldham at 5/19/2006 7:25:18 AM
I've got a couple of good books here, read online, but I really am
having no luck whatsoever with this.
In my DLL I am creating some XML in an XmlDocument data type, and I
would then like to vaildate it against my XSD which is on the local
hard drive.
I have tried it this way:
... more >>
Inter-thread message queue in C#
Posted by les NO[at]SPAM ivsds.com at 5/19/2006 7:24:14 AM
Here's a class which uses 2.0 generics to implement an inter-thread
message queue in C#. Any number of threads can post and read from the
queue simultaneously, and the message object can be any type.
There's a test driver at the bottom which demonstrates usage.
/*---------------------------... more >>
C# Clipboard with Reflection question
Posted by dmeglio NO[at]SPAM gmail.com at 5/19/2006 6:29:22 AM
I have an item that I placed on the clipboard as follows:
Clipboard.SetDataObject(slide);
slide is type SlideType.
Now I'm trying to read the data from the clipboard doing:
foreach (System.Type type in this.slideModules.Values)
{
if (Clipboard.GetDataObject().GetDataPresent(type))
... more >>
RTF to JPEG converter library
Posted by Pierre at 5/19/2006 3:30:02 AM
I'm looking for a library to convert RTF files to JPEG.
This may be open source or not, freeware or not.
The library has not to be necessary written in .NET. It can be also in C/C++.
Of course, a .NET library is my prefered one.
Does anyone know one or who can help me on this.
Thanks for your h... more >>
.NET Web Application Intregration Problem
Posted by TARUN at 5/19/2006 2:46:37 AM
Hello All
I am facing a problem in intregrating the .NET web appliction.
Please sugeest me....
I have code in two directory
1. dev
2. web
In dev :--
This contain number of dll files which need to refernce to the actual
code.
In web:--
This contain the aspx page(Actual code)
I ref... more >>
How can I tell (from C# code) if a .DLL is native or a .NET assemb
Posted by martin at 5/19/2006 1:17:02 AM
Hi,
How can I tell (from C# code) whether a .DLL contains native code or is
infact a .NET assembly?
I know that I could use Assembly.LoadFile() and see if it throws a
BadImageFormatException but I really don't want any exceptions in my normal
program flow...
sincerely,
martin... more >>
Suggestions Please !!!
Posted by Lee at 5/19/2006 12:00:00 AM
Hi,
I am writing a small P2P based application that allows users to message one
another on a network, and sometimes share files by sending them to each
other (no big files.. word docs ect). The P2P network itself uses a central
server for logging on and looking up IP adresses, but if a use... more >>
How do I compile a C# program?
Posted by Ikke at 5/19/2006 12:00:00 AM
Hi all,
Newbie here - can somebody please explain how I can compile a C# program?
Thanks,
Ikke... more >>
DataGridViewComboBoxColumn problem
Posted by John at 5/19/2006 12:00:00 AM
Hi,
I've been trying to populate a DataGridViewComboBoxColumn with objects.
The object is defined as :
private struct manufactItem
{
public string name;
public Guid? man_id;
public override string ToString()
{
return name;
}
}
... more >>
Enable TrackBar DoubleClick event
Posted by _DD at 5/19/2006 12:00:00 AM
TrackBar DoubleClick event is not accessible via the Control
Properties event pane. So I tried adding the handler directly:
this.ColTrackBar.DoubleClick += new
System.EventHandler(this.ColTrackBar_DoubleClick);
It compiles but never fires. I suspect that individual Click events
... more >>
silly question!
Posted by Adrian at 5/19/2006 12:00:00 AM
How do you restore the default IDE window positions?
VS2003
thanks
... more >>
check for duplicates
Posted by Peter Kirk at 5/19/2006 12:00:00 AM
Hi
if I have a List<MyObject> of MyObject objects, what is the best way to
check for duplicates? (By "duplicate" I mean that MyObject has a property
called "name" for example, which I want to check if this value appears more
than once in the list of MyObjects).
Thanks,
Peter
... more >>
How to identify Form.Control by sender
Posted by Jazer at 5/19/2006 12:00:00 AM
private void ValidationEvent(object sender, CancelEventArgs e)
{
if <...>{
this.errorMsg.SetError( sender, "Error");}
//error: /\
}
How to do indentify control by sender?
Form.ActiveControl points to next control.
... more >>
checkbox list and radio button list
Posted by puja at 5/19/2006 12:00:00 AM
hi all,
I have a form which has checkbox list which has items as below
1) Input 1
2) Input 2
3) Input 3
4) Input 4
5) Input 5
Now if user selects Input2 and Input5 and goes to next page and then comes
back to this page, I want to retain the selected Item that he selected
before. i.e... more >>
Any real reason this should happen ?
Posted by Ian Semmel at 5/19/2006 12:00:00 AM
In form designer view, if you cut a control and then paste it into eg a panel,
all the Event functions are cleared from the properties view.... more >>
|