all groups > c# > october 2005 > threads for sunday october 23
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
Disable network adapter.
Posted by Nick Z. at 10/23/2005 11:47:05 PM
How can I disable/enable network adapters in C#?
Thanks,
Nick Z.... more >>
calling a stored procedure in ADO.NET 2.0
Posted by David Sagenaut at 10/23/2005 11:35:06 PM
How can I calling a stored procedure (say "sp_example") in ADO.NET 2.0? I
used to do this in ADO.NET 1.1, but in 2.0 (beta2 vs2005), after the
following
...
sqlConnection con = new sqlConnection(strCon)
sqlCommand cmd = sqlCommand("sp_example", con);
cmd.CommandType = CommandT... more >>
Serialize a class having property that return object as return type
Posted by surindersaini NO[at]SPAM gmail.com at 10/23/2005 11:31:42 PM
Hi
I am not sure if we can do it and if can, then how. I have a class
with a property that return object as its return type.
when i am trying to Serialize the class it gives me error
****************************************************************
An unhandled exception of type 'Syst... more >>
error in folderbrowse dialog
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/23/2005 11:22:27 PM
hi all
ia am getting following error at a time of displaying folder
browserdialog in c#.
'Unable to cast object of type System.__ComObject to type IMalloc.'
can some one help me why this is happening.
I am just calling showdialog method without setting any property.
any help will be apprec... more >>
Programmatically selecting a row in a DataGridView
Posted by David at 10/23/2005 10:36:06 PM
I'm creating a C# (.NET BETA2) Windows application (NOT a Web application, a
Windows application), and I would like to programmatically selecting a row
inside of a DataGridView. It seems like it should be pretty easy to do, but
I'm have a hard time with this.
Can anyone give me any guidanc... more >>
Executing operators through reflections
Posted by Yahoo at 10/23/2005 9:34:20 PM
I have an object being passed into a method that I know implements the +
operator. How can I execute this method if I dont know its type?
What I want to do is...
public object Add(object o1, object o2)
{
//what needs to happen
//return o1 + o2;
//What i want to do...
r... more >>
Concurrency violation POCKET PC
Posted by Vladimir O¾ura at 10/23/2005 9:31:58 PM
I am building a Pocket PC Application that uses a dataGrid. The dataSource
for the dataGrid is a dataView. When I insert a new row into the dataTable
it shows up in the dataView aswelll (that's what I want). The new row is
saved into the database by calling the Update method of the dataAdapter, a... more >>
Newsgroups for VS2005 / .NET 2.0?
Posted by Steve Kirsch at 10/23/2005 8:34:27 PM
Are there any separate newsgroups for .NET v2.0 and VS 2005?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Building a custom blocking dialog
Posted by pswulius NO[at]SPAM gmail.com at 10/23/2005 7:15:58 PM
Hey everyone,
for reasons I can't explain quickly, I'm developing a completely custom
OK/OK_CANCEL dialog, though I think many people would benifit from this
knowledge. I basically need to re-invent the wheel and provide a
simple API like:
Result result = CustomDialog.Show( Mode.OK_CANCEL,... more >>
Base64 encoding/decoding
Posted by nly at 10/23/2005 6:17:07 PM
What's the purpose of "Base64 encoding and decoding"?
Thanks in advance!
... more >>
Common Language Runtime detected an invalid program
Posted by Sahil Malik [MVP] at 10/23/2005 6:03:52 PM
Okay I installed the LINQ preview on Beta2, and anything I write gives me
this error now.
The documentation over here -
http://msdn.microsoft.com/vs2005/currentreadme/default.aspx
aptly tells me --
Also, an exception gets thrown in some cases System.InvalidProgramException:
Common La... more >>
All kind of download just here
Posted by aasava NO[at]SPAM gmail.com at 10/23/2005 4:54:22 PM
All What You Are Looking For And More....
Hello Dear friend...
Here http://s14.invisionfree.com/SaVaTaGe4eVeR/
you can find all what you are looking for in all the internet to
download it like ...
New Applications just here
http://s14.invisionfree.com/SaVaTaGe4eVeR/index.php?showtopic=94... more >>
What happened to UpdateCommandUI?
Posted by SugarDaddy at 10/23/2005 4:31:35 PM
I'm pretty new to C#, but I've had a lot of experience with MFC. MFC
had a mechanism for updating dialog controls using an idle message.
For those unfamiliar, basically you would override OnIdle and call
UpdateDialogControls(), and that would send WM_UPDATECOMMANDUI messages
to all the controls... more >>
Why can't I overload this constructor .. or can I?
Posted by Henry at 10/23/2005 2:51:59 PM
I was trying to derive a class from System.Windows.Forms.ComboBox. My =
goal was to create a class that loaded its own data. I did not want to =
create too many objects, so I tried to share a Database object from the =
calling class, but the compliler doesn't like it when I try to provide =
and... more >>
Obtain WAN IP from router
Posted by Charlie Tame at 10/23/2005 2:29:39 PM
I've looked at a few examples and think I can work with one of them but just
wondering if anyone has already done similar.
Router = Microsoft wired base station.
It has a web page config system which has one text box to enter a password.
It will be hard coded so no need for anything fancy ... more >>
Pointer position in unsafe code
Posted by TomHL at 10/23/2005 2:29:11 PM
this code set the color that I want only on the first pixel.
I have an X & Y values of the pixel that I want to change.
How do I change the pointer's position according to my X & Y values that I
already have?
BitmapData bmData = b.LockBits(new Rectangle(0, 0, b.Width, b.Height),
ImageL... more >>
check textbox focus
Posted by orahm at 10/23/2005 1:16:01 PM
I have 2 textboxes and one button and I don't know why my code doesn't work.
All I'm trying to do is write a number 1 into the textbox with the focus. so
if the user puts the cursor in textBox1 and pushes the button the 1 should go
into that box. If the cursor is in the other one the 1 should ... more >>
Images, soundfiles, and SQL image
Posted by wschlichtman at 10/23/2005 1:11:02 PM
I have an application that allows users to view images and hear sound files.
The images and soundclips are stores in a SQL database in image fields.
Originally, I transferred the data from an Access database using the Upsize
wizard. I have been able to retrieve the data from the SQL database u... more >>
How to understand the use of namespaces ...
Posted by clintonG at 10/23/2005 12:51:20 PM
Using 2.0 with Master Pages and a GlobalBaseClass for the content pages.
I understand the easy part -- the hierarchical structure of a namespace
naming convention -- but the 2.0 IDE does not write a signature for the
developer and after getting a good start developing a 2.0 application I
th... more >>
newbie problem with if-else
Posted by Aahz at 10/23/2005 12:35:16 PM
Hello;
I have dynamically crated string of numbers divided with comma
(2,3,5,6,4,)
Last comma is trimmed becose I need this string to create SQL query
When string is not empty it works fine, last comma is gone.
Now I need to make to determine if string is empty to skip trimming
comma.
Som... more >>
Magnetic Stripe Reader
Posted by ryan.arasteh NO[at]SPAM gmail.com at 10/23/2005 8:38:55 AM
Hi,
I want to write a c# application to capture the contents of a
magnetic stripe card with a card reader attached to the USB or COM
port of the PC. Are there any libraries or anything available to
do this, or do I need to read directly from the these port? Any
suggestions welcome ;) or Any c... more >>
SqlDataAdapters
Posted by jjmraz NO[at]SPAM hotmail.com at 10/23/2005 7:42:04 AM
Hi All,
I am creating a web app and on one form I am using multiple
SqlDataAdapters which I dont think from a design stand point I should
be doing, correct? Can I only use one and change the sqlcommands
associated with the sqldataadapter to point to other sp's that I have
created in Sql ser... more >>
Help - Run process through Web service withou ASPNET user
Posted by Aviad C at 10/23/2005 3:54:31 AM
Hello
I created a web service that runs a new process whice is a vbscript.
It all works well, i can see the wscript.exe running in the Task
Manager under the user ASPNET but nothing happened.
I did a little test, wrote a vbs that creats a folder but still nothing
happened. it runs in the backgr... more >>
Setting Pixel Value with Unsafe Code
Posted by TomHL at 10/23/2005 3:45:02 AM
hello,
- I have a Bitmap Object named: bmp1
- I already have the numerical values of:red,blue and green colors + I have
the X and Y cordinates.
How do I set the pixel value via safe code on the bmp1 object?
(the pixel location based on the X & Y values and it's color based on the
red,b... more >>
Custom base types !
Posted by Thomas Weiss at 10/23/2005 3:16:01 AM
Hi all !
Here is a tricky one, only for gurus !
I would like to associate a presence information with a base type.
In C language, we added a boolean presence field with each optional field :
typedef struct
{
unsigned char myFieldIsPresent;
unsigned short myField;
} SExample;
L... more >>
Timer Execution
Posted by Yama at 10/23/2005 12:49:31 AM
Hi,
Is there a way to execute a function after 1 minute on server-side once a
web form is rendered? Can you please show me some code to illustrate this?
Thanks,
~yamazed
... more >>
Sending additional info with byte array with sockets
Posted by TomHL at 10/23/2005 12:30:02 AM
Hello,
I want to send an additional info with byte array wiith sockets as "one
packet".
I know how to send the byte array by himself, but how can I send the
additional info with it at the same time (as one packet)?
thx for yout answers.
... more >>
How to retrieve appsetings in WinForm Application?
Posted by ad at 10/23/2005 12:00:00 AM
I have define some appsetings in ap.config like:
<configuration>
<appSettings>
<add key="MailBody" value="Test Mail body"/>
</appSettings>
.....
I use
txtSubject.Text =
ConfigurationManager.AppSettings["MailSubject"].ToString();
But it can't compile.
How can I retrieve a... more >>
|