all groups > c# > july 2004 > threads for monday july 26
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
Passport authentication wouldn't work ......
Posted by jeevarvm NO[at]SPAM yahoo.com at 7/26/2004 10:37:44 PM
Hi,
I am facing some problems while implementing passport authentication.
I have followed the following steps ...
1. Installed Passport SDK
2. Got the Key and installed
3. Set SiteID using admin tool
After all these, the Login page wouldn't come up on login.aspx page
In the EventLog, i ... more >>
Handle to main window.
Posted by objectref at 7/26/2004 10:10:04 PM
Hi to all,
is there a way to get the window handle of the main window of an application
or process ?
For example, if someone opens Microsoft Word, he gets a window so he/she can
write text.
Spy++ gives that this window is called _Wwg.
How we can get a handle to this window assuming that we... more >>
create a table into a microsoft access database
Posted by authorking at 7/26/2004 9:03:55 PM
Now I have create a database with ADOX component, could I create a table and
read or modify the data in the databse with OLEDB component ?
... more >>
Run a program with options
Posted by Ricardo at 7/26/2004 7:43:28 PM
How can i run a program with some options from my windows form??? I have a
fileinfo object with the name of the file...
... more >>
web service parameter trouble!!!
Posted by Ivan A. Gavrilyuk at 7/26/2004 7:34:46 PM
Hi!
I have a trouble with web service. One of webmethod's parameters is a class
B derived from class A with public properties. Visual Studio generated proxy
contains both class A and class B, but when I pass class B from clientside
passing ALL public properties from class B and class A only B'... more >>
How can I get the directory name???
Posted by Ricardo at 7/26/2004 7:19:49 PM
How can I get the directory name that the aplication is being executed???
[]s...
... more >>
Is DAAB 3.1 the replacment of MS Data Access App. Block?
Posted by Özgür Aytekin at 7/26/2004 6:46:34 PM
Hello NG
Is DAAB 3.1 the offical replacement of Microsoft Data Access Application
Block 2.0?
DAAB 3.1 download:
http://www.gotdotnet.com/Community/Workspaces/viewuploads.aspx?id=c20d12b0-af52-402b-9b7c-aaeb21d1f431
We'll use for our online stock exchange game (www.borsagame.com) a data
... more >>
DataSet problem
Posted by Joerg M. Colberg at 7/26/2004 5:44:56 PM
Hi all,
I have a problem when using a DataSet. I am using it to query a
SQLServer database as follows. In my code it looks like
SqlDataAdapter eDA = new SqlDataAdapter(sqlcmd);
// where sqlcmd is a SQL String
DataSet ds = new DataSet();
eDA.fill(ds);
So far so good. That runs wi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Loading Xml-File as embedded resource in DLL
Posted by Christofer Dutz at 7/26/2004 5:41:09 PM
Hi,
I am trying to read a XML-File which I marked as embedded resource from
within the code of my DLL. Unfortunately it doesn't work.
On my search for the error I inserted some code for outputing all
Resources names to a simple textfile. Here nothing is output.
Here my code (a little me... more >>
UserControl Designer problems
Posted by Markus Wildgruber at 7/26/2004 5:37:54 PM
Hi!
We create an inherited user control and add it to a form. When we
successfully compile the project and switch to the designer of the form
again, the control disappears and we get 2 error messages in the task list:
There is already a component named 'dataGridControl1'. Components must
... more >>
out parameter problem
Posted by mei xiao at 7/26/2004 5:02:11 PM
Hi,
In my web service method (written in C#), I have a method like public string
myMethod(out int[] test1, string test1)
but when I use a web client to access this method, I got a run time
exception: System.NullReferenceException: object reference not set to an
instatnce to an object. What ... more >>
Datagrid and Clear Method Error.
Posted by bryja_klaudiusz[at]poczta[dot]fm at 7/26/2004 5:01:52 PM
Hi,
I have code that load DataSet with data from SQL Server Database using
OLE DB. When I want to fill datagrid with data I got error 0x80070057
(something like 'Zero is not valid value, use valu from minimum to
maximum').
Part of code which generate this Exception:
try
... more >>
URGENT: Unix/Windows Struct cast problem
Posted by Tamir Khason at 7/26/2004 4:28:08 PM
Follwing the struct:
[StructLayout(LayoutKind.Sequential, Pack=1, CharSet=CharSet.Ansi)]
public struct TpSomeMsgRep
{
public uint SomeId;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=2)]
public Byte[] notinuse1;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=674)]
public Byte... more >>
Crystal Report Samsya??
Posted by Vivek at 7/26/2004 3:40:44 PM
Hi all,
I am working on windows base CSharp application.
I want to use Crystal reports and viewer in my project it works fine through
wizard but after deploying the application database path get changed as I am
using access...
How to set parameters of crystal report dynamically...?
Thanx I... more >>
connectionpoint in C#
Posted by sandip at 7/26/2004 3:36:30 PM
Hi all,
I want to write a C# server that will invoke all umanaged COM client
methods; using something like connecitonpoint mechanism in C++.
Does anybody know how i can do this in C#?
tia,
Sandip Shahane
... more >>
PlaySound question
Posted by Harry J. Smith at 7/26/2004 3:01:47 PM
I added some sounds to my application, but the example in the msdn Library did not work.
It had:
[DllImport("coredll")]
public static extern bool PlaySound( string szSound, IntPtr hMod, PlaySoundFlags flags );
The file coredll was not found. I changed it to [DllImport("WINMM")] and i... more >>
XML Documentation: what good is it?
Posted by Bob Rundle at 7/26/2004 2:41:10 PM
I've been looking at the XML documentation for C# code. I've put in a
number of <summary>, <remarks>, <param> tags and used the /doc switch to
create an XML file.
What now?
I was expecting to have a style sheet or some other mechanism to present the
documentation. I was also expecting to ... more >>
Conversion
Posted by JJ at 7/26/2004 2:27:12 PM
Hello all,
Convert.ToDouble(this.comboBox2.Text.Substring(0,10));
This can result in an error, but sometimes, it doesn't, because
this.comboBox2.Text.Substring(0,10) is a value that CAN be converted to a
double. Is there a way to check for this possibility, and only convert when
the value C... more >>
maximize a windows form
Posted by M D at 7/26/2004 12:39:41 PM
I can't find how to set a Winapp project to a mazimized form as it's
default. As a matter of fact I would like to have the form maximized
and then disable the button so that it stays that way.
thx
md
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USE... more >>
Application Variables / Database Caching - Best Practice
Posted by Duncan Welch at 7/26/2004 12:25:34 PM
Good morning,
I have a classic ASP app that I'm converting to .NET. In the existing app
when accessing infrequntly changed data, it reads a database once a day, and
saves the results in an application variable.
I'm trying to replicate this in .NET, but I'm using a data access layer
(DAL) t... more >>
VS.NET 2005
Posted by David at 7/26/2004 12:13:23 PM
Is Visual Studio .NET 2005 avaleble or it's only beta version on this time?
... more >>
String as a reference
Posted by Nenad Dobrilovic at 7/26/2004 12:13:16 PM
Hi,
I have two references to the same string, like this:
string s1 = "One";
string s2 = s1;
s1 = "Two"; <--- s2 is still referencing to "One"
Now, I want that when I change the value of one variable (s1), the other
one (s2) is changed also. Can string behave like all other reference t... more >>
Basic File I/O in C#
Posted by brain444 NO[at]SPAM juno-dot-com.no-spam.invalid at 7/26/2004 12:03:01 PM
Hey all, my name is Dan and I'm brand new to C#; all my previous
programming has been in VB6, so this is quite a change. I'd like to
read to and write from a simple text file that's in the app
directory. How do I do that, and what's the accepted way to store
the file in memory? I know in VB i... more >>
disable enter key
Posted by Stephen at 7/26/2004 11:58:57 AM
Hi,
How do I disable the enter key for a "Form"? so that user has to click the
"Submit" button.
Is there a way of doing it other than using Java/VB script?
Thanks,
Stephen
... more >>
Adapter.UpdateCommand.ExecuteNonQuery() ???
Posted by Darryn Ross at 7/26/2004 11:56:05 AM
Hi,
I am having a problem updating a database table in an application of mine.
The application is thrown when i fire the following command...
Adapter.UpdateCommand.ExecuteNonQuery() ;
The exception that is being thrown is the following...
message -> "Data type mismatch in criteria express... more >>
My first app (what about runtime)
Posted by Marc Logemann at 7/26/2004 11:46:27 AM
Hi,
i created my first application with c# (normally i am programming the
other language where C# borrowed from) and i am impressed about the IDE
and the language itself. I used the Whidbey C# Express Beta.
But because i am a newbie, my questions is also quite beginner like. I
created a ... more >>
call intermediate class method
Posted by galenstewart NO[at]SPAM yahoo.com at 7/26/2004 11:27:59 AM
Given the following scenario:
class Base1
{
protected virtual void Method1()
{
}
}
class Derived1 : Base1
{
protected override void Method1()
{
// do stuff
base.Method1();
}
}
class Derived2 : Derived1
{
protected override void Method1()
{
base.... more >>
.Split cuts off a number
Posted by mike at 7/26/2004 10:47:55 AM
In my array i have 10|5.98
string[] mySplit = myArray.Split('|');
string DeliveryAddress = mySplit[0];
string ShippingID = mySplit[1];
my problem is ShippingID contains 5.9 not 5.98
can anyone tell me where my last number has gone, or how i get around this
problem?
Thanks in advance
... more >>
How do I get port number from etc/services?
Posted by johnfofawn NO[at]SPAM hotmail.com at 7/26/2004 10:34:12 AM
Hi,
I need to bind a socket to a port that's specified in the
C:\windows\system32\drivers\etc\services file. Is there a
GetPortByServiceName() method in C#? If not, does anyone have any
suggestions on how best to do this?
Thanks,
John... more >>
combobox problem - two selectedindex properties
Posted by Nikhil Patel at 7/26/2004 10:21:47 AM
Hi all,
I am using the standard System.Windows.Forms.ComboBox controls on a form.
There are 5 or 6 comboboxes and their selection depends on each other. The
comboboxes behave strangely probably because there are two properties called
SelectedIndex and selectedIndex. Both usually have differen... more >>
defining a const color object
Posted by Claire at 7/26/2004 10:16:00 AM
The following code raises an error.
"The expression being assigned to 'CeMate.frmMain.BACKCOLOR' must be
constant"
private const Color BACKCOLOR = Color.AliceBlue;
I want to define some const colors. How do I do this please.
... more >>
MessageBox.Show is showing BEHIND the application
Posted by Bill at 7/26/2004 8:15:20 AM
For some reason, I have an errormessage popup that "blinks", but pops up
BEHIND the applications, which is confusing to users.
Is there any way to force it to the top?
... more >>
Garbage collection and linked lists
Posted by Claire at 7/26/2004 7:54:48 AM
Is it safe to use linked lists of objects or is it likely that garbage
collection will dump the nodes?
thanks
... more >>
How to call a jsp page from my C# program?
Posted by Linda Chen at 7/26/2004 6:10:55 AM
I need to call a jsp page from my C# code and pass same
parameters to it, can any one tell me how to do that?
Thanks.
Linda Chen... more >>
Removing the form
Posted by Stephan Ainley at 7/26/2004 5:35:44 AM
Hello, I'm wondering what would be the best way to remove the main form from
a project, or at least hide it. My program is going to use a NotifyIcon
control to be in the system tray. I'd like to be able to open other forms
but don't need a main one. Is the only thing to set the opacity to 0%?
... more >>
Side By Side Execution
Posted by csharpdeveloper NO[at]SPAM hotmail.com at 7/26/2004 4:52:33 AM
Hi All,
We have an application in which all assemblies have version 1.5.0.0.
After client wanted some changes we changed few of the functionality
and changed the version to 1.5.1.0 as per client demand.
Now client wants to have a patch like installation. Means, if you are
having 1.5.0.0 ver... more >>
Shortcut Key TextBox
Posted by Stephan Ainley at 7/26/2004 4:21:24 AM
I'm trying to make/find a textbox control in which to create
shortcuts....For example when Shift, Alt, and F are pressed it'll show
"Shift + Alt + F" and change based on which keys are pressed. Is there
already a control that does this?
Thanks
... more >>
get the date and time of the event log entry I just created
Posted by interuser NO[at]SPAM hotmail.com at 7/26/2004 4:17:30 AM
Hi
I want to know the date and time of the event log entry I just created.
How do I do that?
I use myEventLog.WriteEntry(source, messageText, logEntryType, eventId, category)
but I cannot find anywhere any return values.
Thanks... more >>
TreeView
Posted by T.H.M at 7/26/2004 3:15:28 AM
Hello.
I have very simple problem, but it's still a problem.
I'm trying to build TreeView in C# with data from
DataSet. It is very simple tree, no join tables, no load
from XML only very simple data from dataset
The data in the dataset:
Domain computerName
xxx a
xxx ... more >>
Problem with setting 32ARGB values
Posted by James Dean at 7/26/2004 2:50:54 AM
I am trying to directly set the pixels in a 32ARGB image but for some
reason i am not setting them correctly. I have a struct 4 bytes in
size...
public struct PixelData
{
public byte Blue;
public byte Green;
public byte Red;
public byte transparent;
}
I set the data to the corre... more >>
UDL's
Posted by Ann Marinas at 7/26/2004 2:24:25 AM
I have a question regarding UDL's...
Is it not better to use a udl file for windows applications that uses
ADO.NET?
I've heard that whenever you store connection strings for a windows
application, it is much better to put it in a configuration file.
Any opinions?
Thanks!
---A
... more >>
Internet Explorer Automation
Posted by Adam Stirk at 7/26/2004 1:40:59 AM
Hi,
I have a application that I need to create multiple new "iexplore.exe"
processes (show more than once in taskmanger) and control them using the
shdocvw/mshtml.
I am able control Internet Explorer with instances created with the shdocvw.
e.g.
Activator.CreateInstance(Type.GetTyp... more >>
|