all groups > c# > october 2007 > threads for wednesday october 10
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
??? Which Key Encrypts .Config Files ???
Posted by Tom Baxter at 10/10/2007 11:17:18 PM
Hi everyone,
I have a small block of code that encrypts a database connection string in a
..config file, but I'm not sure where the encryption key comes from. There is
no problem with this code -- it seems to be working fine -- I am able to
retrieve the connection string with no problem aft... more >>
How to Share a ToolStripMenuItem
Posted by Martijn Mulder at 10/10/2007 7:30:08 PM
My application has a standard MenuStrip on top of the window and a
ContextMenuStrip that pops up when the user clicks the right mouse button.
I have defined a ToolStripMenuItem that I want to appear on both the
MenuStrip and the ContextMenuStrip, but any attempt to do so makes the
ToolStrip... more >>
Throwing Exceptions
Posted by Jay Dee at 10/10/2007 6:09:13 PM
I have a query about throwing exceptions.
To throw an exception I type something like:
try
{
// do somthing
}
catch (ArgumentOutOfRangeException)
{
throw new Exception("My Exception");
}
And when the try section fales my excepton is thrown and if not court
elswair will displ... more >>
Get Error Number
Posted by RP at 10/10/2007 6:04:11 PM
If an exception occurs, how to get the error number. I mean, is there
anything like ex.number?
... more >>
detect "task manager end process"
Posted by e-Ricc at 10/10/2007 5:49:02 PM
Hi guys!
Im trying to detect when a user "kills" my c# app using windows task
manager, i've tried with the form events _closing and _closed managing
for example putting an if inside to detect it:
if (e.CloseReason == CloseReason.TaskManagerClosing)
{
MessageBox... more >>
Generate PasswordSalt 128
Posted by Juan Puebla at 10/10/2007 4:47:00 PM
I'm trying to execute the procedure aspnet_Membership_CreateUser but I don't
know how to generate the parameter PasswordSalt nvarchar(128).
Thanks... more >>
Error: '<struct>' does not have a predefined size
Posted by kernel_panic at 10/10/2007 4:43:45 PM
Consider the following code noting the two uses of sizeof():
unsafe struct A
{
int value;
}
unsafe struct B
{
fixed byte value[sizeof(A)]; // Error: 'A' does not have a
predefined size
}
unsafe struct C
{
static void test()
... more >>
Open (or Activate) Outlook from C#
Posted by timnels NO[at]SPAM gmail.com at 10/10/2007 4:15:23 PM
I have a button on a form, when clicked I want it to open (or activate
if it's already open) the Outlook client. I don't want to do it by
creating a new email message. Is this possible? Thanks.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
App.StartMode equivalent in C#?
Posted by lenzdata NO[at]SPAM bellsouth.net at 10/10/2007 3:32:04 PM
I am in the process of porting a VB6 ActiveX exe to a C# exe. The
finished product will either be run directly from Windows or hosted by
other .NET applications. The application's behavior will differ
slightly based on it's start mode.
In VB6, the App.StartMode would indicate whether the app... more >>
simple not on int or uint
Posted by Jure Bogataj at 10/10/2007 3:20:19 PM
Hello!
Why I cannot apply this operator to UINT or INT type in c# (VS 2005)?
uint MyConst;
uint SomeValue;
....
MyConst = MyConst & (!SomeValue)
Trying to erase certain bit inside MyConst. I come from Delphi world and the
translation would be
MyConst = MyConst and (not SomeValue)
whe... more >>
Invisable Text in Lst Bx & Msg Bk
Posted by Tim Hitchcock at 10/10/2007 2:53:30 PM
I have written a couple of programs in C# using Visual Studio.NET 2003.
Both of these programs have the problem that when they are ran on my Windows
XP computer at work items in list boxes and text in message boxes appears
invisable. The items are actually added to the list box because you ca... more >>
PDF in asp.net
Posted by Tem at 10/10/2007 2:52:54 PM
Hello
how would i go about generating PDF on the fly with asp.net?
i found some itextsharp examples that can create PDF file, but i would like
to write a cutome handler than generates PDFs on the fly.
This is what i have some far
public void ProcessRequest (HttpContext context) {
... more >>
Connecting to a legacy RPC server
Posted by Ben at 10/10/2007 1:38:14 PM
I have a C# application that I would like to modify to communicate
with a legacy RPC server to get some data. I have the IDL for that
server. Is there an IDL compiler that will give me C# code? What are
my options here?
Thanks,
Ben
... more >>
Need Referrals for Software Engineering position in S. Florida
Posted by Holly Foster at 10/10/2007 1:32:39 PM
Our client is seeking a Software Engineer. Their products are targeted for the Microsoft Windows XP/2000 for pc based applications and Microsoft Windows CE/Pocket PC for portable hand held applications. Current development is performed in Microsoft Visual Studio using C#, National Instruments LabV... more >>
permissions policy checker
Posted by auldh at 10/10/2007 10:35:05 AM
i'm looking for best methods to add to a C# program i want to build to do
checking on permissions for files/folders and what rights in local pc policy.
if i have a give user id i want to traverse the Windows rights/permission
for that account. then see what rights under the local machine poli... more >>
together
Posted by vinnie at 10/10/2007 10:29:48 AM
If i make a small banner in Flash 8, what's the best way to import it
in ASP 2.0 ?
Thanks
... more >>
Newbie question: Arrays
Posted by Blue Streak at 10/10/2007 9:15:50 AM
What exactly is the difference (besides syntax) when you declare multi-
dimentional arrays this way?
int [] [] a = new int[3][3];
int [,] b = new int[3,3];
// What's the difference between a and b?
TIA...
... more >>
GroupBox AutoScroll property
Posted by Gus Chuch at 10/10/2007 9:07:01 AM
I’m working on a GroupBox and need to set the AutoScroll property to true.
My problem is I have no AutoScroll property listed in the property box.
And even if I go in to the Designer.cs file I can’t find the AutoScroll
property.
Do I need to set something up for this property?
Any help wou... more >>
Thread monitor user input
Posted by sippyuconn at 10/10/2007 6:10:02 AM
Hi
I am trying to figure out how to monitor user input.
I have the user typing in a textbox where I fire a method on the text
changes event but this fires on every letter and it fies mant times if the
user types a long string - I 'd rather just run my method when the user is
done or if ... more >>
Enterprise Library
Posted by Helen Trim at 10/10/2007 3:41:00 AM
I have a web method that I want to improve by using the Enterprise Library
Data block. I have added the Microsoft.Practices.EnterpriseLibrary.Data.dll
and Microsoft.Practices.EnterpriseLibrary.Data.xml references to my project
but I can't work out how to use them. The Help is confusing and I... more >>
Express C# to excel
Posted by jed NO[at]SPAM auto-soft.co.za at 10/10/2007 3:23:05 AM
What is the best way for me to send data from C# to excel and open the
file in excel from a windows application please help.Is there an add
on i can download to gain access to the excel namespace or some other
way.thanks
... more >>
Signing with PFX file using CSC
Posted by l0b0 at 10/10/2007 2:03:50 AM
Hi all,
I've got a Visual Studio project which compiles just fine within
Visual Studio, but I'm unable to compile it with CSC with the same PFX
file as in the project. Is there some way to get the actual string VS
executes? Is some other parameter necessary for PFX files as opposed
to SNK fil... more >>
Translating WinForm menu items dynamically
Posted by Andrus at 10/10/2007 12:00:00 AM
I have database containing translations.
I'm creating VS 2005 WinForms application which should use this database to
translate menu items to user language.
I replaced lines in myform.designer.cs like
Text = "File";
to call my translating routine
Text = Translator.GetMessage("File");
... more >>
Mapping objects in a room
Posted by Atul Thombre at 10/10/2007 12:00:00 AM
Hello,
I am not sure if this is the right forum for this question or not. If not,
please ignore.
I am developing an application in C# that requires me to display a map of
the objects present in a room with proper locations [X, Y coordinates]. The
objects will be tiny images [either jpg... more >>
Load from database without load whole page
Posted by tranky at 10/10/2007 12:00:00 AM
Hi!
I'd like to insert a new ajax.net idea inside my homepage.
I'd like to realize this, and i hope you can help me. (i'm italian,
excuse me for my english!!)
In my homepage, i load last 15 messages from my forum (via mysql
database). These messages are loaded with title and body and show wit... more >>
what is best pratice doing this?
Posted by Jeff at 10/10/2007 12:00:00 AM
Hey
I'm about to start developing an windows application based on .net 2.0.
The GUI will consist of 2 things: a treeview and an area displaying things
based on selections in the treeview. The treeview shows all the modules in
the application and gives easy access to each module...
Lets ... more >>
|