all groups > c# > february 2005 > threads for friday february 4
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
Exclude app from displaying in the Alt-Tab window
Posted by Dale at 2/4/2005 10:31:59 PM
I'm using the NotifyIcon component on a form within a Windows application
that will normally show no interface.
NotifyIcon does add an icon as required to the notification area of the Task
Bar. Unfortunately the window is showing up in the little window that is
displayed when user uses Alt-Tab ... more >>
basic: Is it possible to define optional parameters in a method declaration? how?
Posted by Juan at 2/4/2005 10:04:48 PM
Decimal separator simbol
Posted by Alberto at 2/4/2005 10:01:55 PM
How can I find out witch is the decimal separator in a particular
configuration of a operative system?
Thank you
... more >>
how to detect double click on the tabel cell of DataTable
Posted by Maulin Vasavada at 2/4/2005 9:31:41 PM
Hi,
I have DataTable and I want to actually put a LinkLabel in one the
columns where I can click an do something BUT it seems I can't put
LinkLabel in the table cell of DataTable. So as an alternative I
thought if I can detect double click events on a cell I can get the
text in there and do s... more >>
Packaging MSDE in with Winforms C# app, using Windows packages
Posted by Paul Aspinall at 2/4/2005 8:45:01 PM
Hi
I want to package my C# winforms app, to be deployed with MSDE, as easily as
possible for the end user.
I want to create an MSI or Installshield (prefer MSI), to setup my C# app,
together with MSDE (if not already installed), and the MSDE application DB.
How can I detect if MSDE is alr... more >>
how to write a callback function to be invoked by C++ DLL?
Posted by Wen at 2/4/2005 8:26:26 PM
hello,
now, i wanna port a c++ program into C# project. a DLL written by C++ and
keep it no change, and UI wirtten by C#.
my C++ UI code is as below:
// error handlers --global function callback function
// C++ dll would invoke this function if needed
void ImageConv_Callback_Handler(const ... more >>
DAX Error?
Posted by Landi at 2/4/2005 5:11:14 PM
Hi Group,
Has anyone ever seen a DAX Error before?
Screen shot of the error: http://dowhileloop.com/nicelabelerror.jpg
error happens at: niceLabel = new NiceLabelWR.NiceAppClass(); line
This is calling on a COM object. It's registered and it works.
I have tried to give that user Administrative ... more >>
cna't compile
Posted by js at 2/4/2005 4:45:44 PM
got the error when I try to compile(csc AsyncResolve.cs):
AsyncResolve.cs(6,20): error CS1514: { expected
AsyncResolve.cs(6,24): error CS1519: Invalid token ':' in class, struct, or
interface member declaration
What's the problem? Please advice.
AsyncResolve.cs
==================... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
change password of AD or workgroup in c#.net?
Posted by Angelo at 2/4/2005 4:39:25 PM
Hi,
I want users to have the possibility to change their password by web of the
active directory or the password of their workgroup. This is needed for
users who have lost their password of a SharePoint server.
Does anyone have an example?
Thanks in advance.
Angelo
... more >>
Change base class at runtime?
Posted by User N at 2/4/2005 4:39:08 PM
Perhaps this is a stupid question, but here goes anyway. Given
an instance of an arbitrary class, is it possible to change its base
class at runtime? Here's my problem...
I need to extend class Foo, which I can't change. Foo holds a
reference to a collection of Bar objects and/or objects de... more >>
Win32 vs. .Net/CLR
Posted by Can Balioglu at 2/4/2005 4:35:12 PM
Hi everyone,
My question is not a technical one. I'm just curious about the future of
Win32 (and Win64) programming. Most of the books about Win32 from MS Press
(like Programming Windows, Programming Applications for Windows, etc.) are
not published anymore. Almost all new articles in the l... more >>
Using 2 mouses as input in C# game?
Posted by Brian Basquille at 2/4/2005 4:26:23 PM
Hello all.
Due to the short time remaining to my project handup for my Air Hockey game,
i've abandoned the idea of implementing it over a network.
But since the only real way to play Air Hockey is using a mouse, i was
wondering if it is possible for 2 people to use 2 mouses while on the sa... more >>
Directory.GetFiles search param
Posted by John Smith at 2/4/2005 4:25:02 PM
Hello all:
I am trying to search for more than one extension in a directory at the
same time with the following code:
string[] files = Directory.GetFiles(sDir, "*.doc*.dot");
However, this does not work nor does something like this:
string[] files = Directory.GetFiles(sDir, "*.doc, *.d... more >>
Soap call not protected with a try..catch?
Posted by Greg Merideth at 2/4/2005 4:08:56 PM
This little bugger of a problem took us most of the day to track down
but I'm glad it happened as I would like to know why the WSDL generated
code that operates inside of a try..catch block throws an exception to
the screen when it craps out instead of being caught by the try..catch
block.
... more >>
Timer in asp.net app.
Posted by Jensen Bredhal at 2/4/2005 3:39:21 PM
Hello,
I need to write a routine that get executed every 2 hours independantly in
the backround on my asp.net web application.
How can this be done?
Many thanks in advance
JB
... more >>
marshalling socket buffer
Posted by allen at 2/4/2005 2:58:13 PM
I have an async socket callback for a UDP socket. When the callback is fired after receiving a packet, I want to map the packet to a structure I have.
note, all unsafe code blocks here.
// note, i know the following is not an entire DHCP packet, I just didn't want this msg to get too long.
[... more >>
SmtpMail
Posted by Jason at 2/4/2005 1:11:34 PM
Hi
not sure if this is the write place, but i really need some help with
this...!
I have a piece of code that sends email using the SmtpMail class, in an
ASP.NET web application, with integrated window authentication.
it does work, and works fine on my dev machine. it also works fine on the
... more >>
ASP.NET, C#, AccessDenied problem...
Posted by Denis Brkljacic at 2/4/2005 12:36:39 PM
Hi,
Please, could anybody help me out to fix this... When I put this code:
Process [] aProcesses = Process.GetProcesses();
foreach (Process proc in aProcesses)
{
if (proc.MainModule.BaseAddress.ToInt32() == ExcelH)
{
Temp = proc;
}
}
What I get is error, A... more >>
Cost of Visual C# 2005
Posted by JM at 2/4/2005 12:11:01 PM
Anyone know what the price of the new C# will be? :)... more >>
Input Box in C#
Posted by Abhishek at 2/4/2005 12:08:56 PM
Hi!
I want to prompt the user an inoput box and get the result in a variable
I know how to do this in VB but how do i do it in c#.
Regards,
Abhishek
... more >>
illegal characters
Posted by Dave at 2/4/2005 11:55:10 AM
I need to cut out illegal characters in a string submitted from a mobile
phone to a web form. I need a way to check for the illegal characters in a
textbox. I intend to loop through the text and remove the illegal characters.
Is there an equivalent function to c# to chr() in Visual basic? I w... more >>
FTP Server
Posted by Abhishek at 2/4/2005 11:27:08 AM
Hi!
I need to develop a FTP server for my application.
I want it precisely on C#.
I want it to have the basic FTP server facilities like logging in and being
able to traverse within the directories through GUI. Something like CuteFTP.
Any links or refrences or codes wil be greatly appreciated
... more >>
class or struct?
Posted by Sunny at 2/4/2005 11:10:25 AM
Hi,
I want to create a separate container for a bunch of constants used in
different classes, like:
internal class Constants
{
private Constants(){}
public const string CONST1 = "1";
.....
}
So, what's better for this container, to be class or struct? Why?
Sunny... more >>
A first chance exception of type 'System.InvalidCastException' occurred in scs.sr.dal.dll
Posted by karunakar at 2/4/2005 11:02:21 AM
Hi All
Here iam getting this Error "Specified cast is not valid."=20
My Project has Onc solution diffrent class libarary In that solution =
DALfactory solution iam getting this error=20
I was calling this function in DALFactory class library(this library =
generate the DAL.dll)
Another c... more >>
How to check if a variable is an Enum
Posted by Patrick B at 2/4/2005 10:49:44 AM
Is there a way to check if a certain variable is an enum?
Example code:
public enum MyEnum {
Monday,
Tuesday,
Wednesday
}
public void MyMethod()
{
MyEnum myEnum = MyEnum.Monday;
string myString = "Bla bla bla";
bool firstTry = IsEnum(myEnum);
bool secondTry = IsEnum... more >>
how to auto-update a text file before closing it
Posted by Fabian Härle at 2/4/2005 10:49:04 AM
Hi,
if I write to a tet file via a System.IO.TextWriter the changes to the file
are not done before I close the file. Is there a possibility to always save
the file with every change?
The point is that I want to write to my log file even if my app crashes. As
the log file is not closed cle... more >>
Web Service & Custom Return Types
Posted by Demetri at 2/4/2005 10:25:07 AM
I have created a class library which is shared by multiple projects. One
project is the web service. It has a web method that when invoked is to
return a class populated with all of the properties and such.
The client windows application that makes the call gets a null object.
However, when... more >>
Open default e-mail client with attachments.
Posted by Gama_Franco NO[at]SPAM clix.pt at 2/4/2005 10:11:20 AM
Hi,
I'm working on a project based in Windows Forms, and I need to open
the user's default e-mail client (a new e-mail) with some attachments
ready to send. Since the destination of the e-mail is unknow at this
point I can't send it using the SmtpMail.Send() method. And because of
the attachm... more >>
Discover user name given IP address or NetBIOS name
Posted by rdonnici NO[at]SPAM gmail.com at 2/4/2005 10:06:48 AM
Hi all,
Is there any way to, given an IP address(or NETBIOS machinename - I can
convert from one to other) from my network, and assuming that everyone
needs to log on a NT/2K/Windows Server 2003 Server, to discover the
user name for the user logged on that machine? The final result
desired i... more >>
Simple Question..
Posted by Irfan Akram at 2/4/2005 9:49:06 AM
Hi Guys,
Just wondering how we can build up a string which needs to contain speech
mark symbols in the text itself. For example doing something like..
exampleString = "Join the "2" groups together"
I am not sure how to do that in C#. Currently I can only able to acheive
something like t... more >>
Object null reference
Posted by Ricardo Luceac at 2/4/2005 9:02:25 AM
I'm geting a object null reference in this method
SqlConnection cnn = new
SqlConnection("server=(local);database=varired;trusted_connection=true")
;
SqlCommand cmm = new SqlCommand();
cmm.Connection=cnn;
cnn.Open();
cmm.CommandText="Delete from estados where
id_estado="+Co... more >>
a to z buttons at runtime
Posted by freddy at 2/4/2005 8:19:03 AM
I would like to add a to z buttoms at runtime... more >>
vb event in c#?
Posted by oscar at 2/4/2005 7:15:04 AM
i'm trying to convert some code from VB to C#, i know i can use both in .net,
but we know C# better and want to be able to change some things around for
our own needs. i have all of it converted except for the "public event..."
of the following code. is there anyone that can help me convert ... more >>
Second ItemDataBound command does not fire
Posted by kscdavefl at 2/4/2005 7:11:03 AM
When I execute the following code:
private void applicationPermissionGrid_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType == System.Web.UI.WebControls.ListItemType.Item ||
(e.Item.ItemType ==
System.Web.UI.WebControls.ListItemT... more >>
CollectionBase Class and DataSet
Posted by Siu at 2/4/2005 6:25:04 AM
Hi,
I've written a class which inheritates from the CollectionBase class
public class MyClass : CollectionBase
{
}
An object istantiated from MyClass can be transformed in a DataSet? does
exist a method which transform it into a DataSet?
MyClass myObject = new MyClass();
Thank you.... more >>
backup
Posted by dinesh krishna via DotNetMonster.com at 2/4/2005 5:07:32 AM
I had used the following code for taking registry back up.
[DllImport("advapi32.dll", EntryPoint="RegSaveKey")] public static extern int RegSaveKey(IntPtr hKey, string lpFile, int lpSecurityAttributes);
IntPtr user = new IntPtr((int)RegistryHive.CurrentUser);
RegSaveKey(user, @"C:\regbackup... more >>
Passing parameters...
Posted by appendix68 NO[at]SPAM hotmail.com at 2/4/2005 3:59:52 AM
Hallo people...
I desperatly need help with one problem...
I've got this .net web application that I need to pass some parameters
from, to a payment form page some other place. My problem is that I've
got this control, which contains some input fields and some pictures,
I use this control in ... more >>
passing xml to servlet file
Posted by Das at 2/4/2005 3:53:01 AM
Hi all,
I'm writig an application that sends an http request to java servlet file.
I have to pass an xml file to the servlet.
How should I pass xml file to the file.
When I try to access the url directly it shows me
Forbidden
You do not have permission to access /RequestListenerS... more >>
Accessing RepeaterItem.DataItem in nested repeaters
Posted by DonRex at 2/4/2005 3:39:04 AM
Hello all!
I couldn't find a web application-newsgroup for ASP.NET, so I'm sorry if
this is the wrong forum!
Synopsis:
In my webform I have 3 nested repeaters:
rpWeeks
----- rpTime
---------- rpClasses
I am databinding the first repeater in the !IsPostBack event of the page,
and t... more >>
Get Xmlnode by an attribute
Posted by Josema at 2/4/2005 3:33:03 AM
Hi,
Im trying to get a xmlnode having the value of an attribute, but without
success
this is my xml file:
<promotions>
<promotion id="0">
<image>images/gifs/Panel4/Panel4_Prom2.gif</image>
<text>Text of promotión 1</text>
</promotion>
<promotion id="1">
<image>images/gifs/P... more >>
|