all groups > c# > march 2007 > threads for thursday march 22
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
Encrypting files with secure passwords
Posted by newbiesharp NO[at]SPAM hotmail.com at 3/22/2007 11:47:10 PM
I've written code for encrpting files, but I can't seem to find
examples where the password is secure from user input to wiping it from
memory after decryption. Is this atually possible in c#? Sorry,
but I've tried msdn to google.
... more >>
using a variable to display the number of images
Posted by kw_uh97 at 3/22/2007 9:51:45 PM
Hello All
I am not sure if this is the right forum or not so, my apologies before hand
if I am guilty. I have a C# application that has a property retrieving value
(int) from my database. I would like to use this value as the number of
images to dispaly in the page. I have two images (image... more >>
Listbox, context menu and HotKey
Posted by Jeff Williams at 3/22/2007 9:36:05 PM
I was wondering if it is possible to do the following so my users can
user the keyboard for all data entry.
1. I have a listview on a form.
2. I set the focus on this listview after key data is entered.
3. I would like a Hot Key combination like Alt-M to display a Context
menu for this List... more >>
How to change default text back ground color in RichTextBox when it is disabled?
Posted by James at 3/22/2007 9:02:41 PM
When property 'Enabled' is set to 'false', the text back ground color always turn to gray. Can I change this color?
From http://developmentnow.com/g/36_2003_7_0_0_0/dotnet-languages-csharp.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com... more >>
Questions about ScrollableControl
Posted by Rune Jacobsen at 3/22/2007 7:45:54 PM
Hi all,
I have a few questions on deriving from ScrollableControl that I hope
will be relatively easy to answer. I am using Visual Studio 2003, C# and
..Net 1.1.
I have this custom control I am making called ResourceView. It is
supposed to show a visual overview of resource usage over ti... more >>
Subclassing your own UserControl
Posted by arncota NO[at]SPAM gmail.com at 3/22/2007 7:41:03 PM
Hi,
I created a UserControl, and created its UI with the designer. Next,
I wanted to create a subclass of that UserControl, with a new UI. But
when I open it in the designer, I see the UI components from the
parent class. When I step through the code, it looks like the
InitializeComponents... more >>
Shared members, Events, Collections problem?
Posted by Wujood at 3/22/2007 6:22:00 PM
I am trying to solve the following take home assignment problem. I am not
sure whether to use Hashtables, events and shared members or could it be done
more easily? Also, do I need to implement a Generic Collection for Lights?
Any help in terms of pseudo code or implementation would be appreci... more >>
Debugging design time behavior od user controls.
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 3/22/2007 5:52:11 PM
How do you debug the design time behavior of user controls? I have code =
in the controls resize event and I've flagged a break point, but the =
code never breaks when I play with the control on the form in the test =
project at design time.
Thoughts?
J... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
best way to implement a 'static destructor'
Posted by Zytan at 3/22/2007 5:37:31 PM
I know two possible ways:
1. Use AppDomain.DomainUnload Event
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemAppDomainClassDomainUnloadTopic.asp
which is kinda like Turbo Pascal, which the desinger of C# made, did
it.
2. Use a hack. Make the class non-static, even though it ... more >>
Share a static variable across constructed generic types ?
Posted by Samuel R. Neff at 3/22/2007 5:03:48 PM
Is there any way to declare a static variable within a generic type
definition and have that variable be shared across all constructed
generic types?
For example, how can I modify this code:
private class C<T>
{
public static int Counter = 0;
}
public static void Test()
{
... more >>
Finding the Median in an Array
Posted by Bhadan at 3/22/2007 3:56:15 PM
Hello,
I have several jagged arrays which have been sorted.
I'm trying to find the median of each array. Any tips appreciated.
TIA.
Bhads.
... more >>
Murach's C# 2005
Posted by dubnde at 3/22/2007 2:48:13 PM
I am currently reading Murach's C# 2005. I find the first two sections not
worth the cost considering I am experienced C/C++/Java programmer. Is there a
book that delves into the C#/.NET without talking about trivial things like
operators and all that?
... more >>
Dynamically build a data entry form?
Posted by james at 3/22/2007 2:10:34 PM
Hi guys,
Does anyone know how to dynamically build a data entry form of the
format
Label: TextBox
Label2: TextBox2
I have a datatable with columns that define the types and names. I
guess what I want is to turn a DataGridView sideways and only allow
one row :). Any ideas?
Thanks,... more >>
International Datetime issue!
Posted by DBC User at 3/22/2007 2:06:04 PM
I needed to move the row from one table another one, so I read and
create a SQL to insert it to the destination table. One of the place I
use DateTime.Parse on the date time field. One thing I noticed is for
international clients (especially Germany) the last part where I have
AM/PM is getting s... more >>
Resize in specific increments...
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 3/22/2007 2:02:18 PM
I'm creating a user control where the size always needs to be divisible =
by three.
In the resize event within the custom control I'm having no problem =
maintaining the height to be the same as the width, but as soon as I try =
to add some code to make sure that the width is always divisible ... more >>
Help need on TcpClient
Posted by Nobody at 3/22/2007 1:37:16 PM
Hi all,
I try to write a small client that can handle some TCP communication
message.
I was wondering how I could use the TcpClient class to manage it.
At the first time, I don't want to play with the async methods. My main
issue is related about receiving informations back from the ser... more >>
TVM_GETITEM does not return unicode label
Posted by Alex K. at 3/22/2007 1:29:23 PM
Hi all
My TreeView has unicode and english labels. The treeview shows OK on the
screen.
When I am trying to get an item's label using TVM_GETITEM API message, the
buffer returned by SendMessage always contains single-byte coded labels
(ASCII) even though I use SendMessageW entry point. In ... more >>
Splitting a csv string file into a multidemensional array
Posted by Perseus at 3/22/2007 1:11:04 PM
Hi
To split a single string we do the following
#
myString= "bannana, bowling balls, juice"
string singleArray[]= myString.split(',');
#
This gives
singleArray[1] = "bannana" etc.
But to split a string into a multidemensional array is more complex.
The Arraylist() method has been shown ... more >>
Any such thing as a single column HashTable?
Posted by Joseph Geretz at 3/22/2007 12:54:49 PM
Basically, I just need an efficient way to store and retrieve keys from a
list. I don't need key/value pairs. I've implemented this with the standard
HashTable, but the value column is a waste since every key has the same
value, "".
Thanks for your advice.
- Joe Geretz -
... more >>
datagrid view (or datagrid) to text file
Posted by roger_27 at 3/22/2007 12:42:15 PM
hey, I'm using a windows form here,and I need to convert a datagridview
(actually its an Inragistics UltraGridView but whatever) to a text file. I
want each row to be in a single line.
I found plenty of tutorials online, but they are only for ASP, and they use
a stringwriter then they call ... more >>
Form minimize and maximize button click events....
Posted by JDeats at 3/22/2007 12:12:14 PM
Are there events I can trap on when the user clicks on the Form
maximize or minimize header bar "buttons".
... more >>
WCF requirement
Posted by DBC User at 3/22/2007 12:10:55 PM
Hi,
One of my post answer was to use WCF and I would like to know, can I
distribute WCF enabled application using VS2005 c# .Net Framework
2.0?
Thanks.
... more >>
Editing C# Painfully Slow
Posted by James at 3/22/2007 11:37:19 AM
I compile my code, I get a few errors, I go to the 1st error in the editor
and start to type in the correct code and I get no where because with each
key stroke the caret goes away, then a long pause and then the carey comes
back showing one character entered so it's like this::
SomeObject.... more >>
How can I make a Dialog modal in a threaded application?
Posted by forest demon at 3/22/2007 11:07:39 AM
i've seen previous posts somewhat related to this, so i apologize if
this is redundant.
I have a main form with separate threads. When showing a dialog like
<dialog>.ShowDialog(), it functions as a non-modal instead of modal.
any help is appreciated, thanks.
... more >>
re: re:newbie Main() or variable scope issue
Posted by notreally NO[at]SPAM hotmail.com at 3/22/2007 10:45:36 AM
sorry ididn't inclde enough code just trying to avoid the junk thats not releevent.
the app startsl ike a normal form app in VS
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
a user can click on several buttons after a folder/file count is obtained
so several parts of th... more >>
newbie Main() or variable scope issue
Posted by notreally NO[at]SPAM hotmail.com at 3/22/2007 10:18:22 AM
Yes I've searched msdn, this must be so simple. I'm new to programming in general.
I created a solution with a form1 that creates a new form1 in the Main entry point. (Normal)
A user selects a folder and my app counts the files and folders for other parts of the program.
Since these counts are us... more >>
TextWriter fails on Close() call in destructor
Posted by Zytan at 3/22/2007 9:58:40 AM
I have a log class that makes a synchronized TextWriter like so, in
the constructor:
StreamWriter sw = new StreamWriter(filename);
tw = TextWriter.Synchronized(sw);
In the destructor, ~MyLogClass(), I call:
tw.WriteLine("some stuff");
tw.Close();
The Close() call throws an exception s... more >>
Inter process communication!
Posted by DBC User at 3/22/2007 9:44:14 AM
Hi,
I have 2 completly independent programs and they need to talk to each
other once in a while. Both are .Net VS2005 c# programs and both
reside in the client machine. I have a limitation, I can not use MSMQ
or registry. I want this program to run in Standard user mode when
moved to Vista as... more >>
programmatically checking if app is running
Posted by Mike P at 3/22/2007 9:40:30 AM
I am programmatically starting and ending a local instance of Outlook :
//programmatically start local Outlook
System.Diagnostics.Process proc = new
System.Diagnostics.Process();
proc.StartInfo.FileName = "outlook.exe";
proc.Start();
... more >>
Method/proc for every type of call, or just one and let the client slice and dice?
Posted by Ronald S. Cook at 3/22/2007 8:25:31 AM
So we'll have a SelectPens function and associated proc to bring back all
pens to the client. Now think about all the variations that might be needed
(many). For example, to show the pen feed sequence I'll need a subset of
fields and ordered by FeedSequence.
Option 1) I've seen some s... more >>
Programmatically Disable All Checkboxes on a form
Posted by masterej NO[at]SPAM gmail.com at 3/22/2007 8:20:55 AM
Developers,
Is there any way to disable all checkboxes on a form? I have a form
with 160 checkboxes and I want to be able to disable all of them. Is
there a way I can do something like this:
for (int i = 0; i < 160; i++)
{
string checkbox = "checkBox" + i.toString();
(Cast)che... more >>
arrays from other functions
Posted by reedr NO[at]SPAM uni.edu at 3/22/2007 8:10:30 AM
I'm stuck with trying to reference an array of datagridviews that i
created at runtime. It works fine when I reference them within the
function they were created, but now I want to refer to them in another
function. They are both public functions so I just was wondering what
I need to do to acce... more >>
Key-Value pair list - not sorted
Posted by Sehboo at 3/22/2007 7:57:09 AM
I am trying to use key value pair list, but I don't want to use sorted
list because it messes up my order. I am not sure what other options
I have. Can anybody point?
Thanks
... more >>
table structures
Posted by DaveP at 3/22/2007 7:49:53 AM
Hi im looking for a Example of getting
the table structures back to my app.....
TIA
Dave P
... more >>
Windows Service and ActiveX
Posted by John F at 3/22/2007 6:45:23 AM
Hello All,
I have a question about using an ActiveX control with a Windows Servce in
C#. I believe it is not possible to properly setup an ActiveX control in a
windows service as the particular ActiveX control we're using (GrFinger for
fingerprint reader)implements several event handlers. ... more >>
Output-Debug Window Clearing
Posted by Bob at 3/22/2007 6:20:19 AM
Does anyone know how to clear the window so it's easier to see the
stuff you have listed with Debug.Write(xyz)?
I need to know how to do this in code...I know how to manually do it
with the mouse.
Bob Sweeney
... more >>
MDI support in C#
Posted by Christian Havel at 3/22/2007 5:30:36 AM
Hi,
exist in C# any support for MDI applications to notify the views (MDIChild)
automatically like in C++ MFC?
Thanks
Christian... more >>
trouble witch using struct from C dll
Posted by yucikala NO[at]SPAM gmail.com at 3/22/2007 5:26:38 AM
Hello, I'm a "expert of beginner" in C#.
I have a dll - in C. And in this dll is this struct:
typedef
struct msg_s { /* please make duplicates of strings before next call
to emi_read() ! */
int op_type; /* of "op_t" type: operation type; submit (>0), response
(<0) */
union {
struct... more >>
OpenGL accross multiple threads in C#.NET
Posted by sarah_c_clough NO[at]SPAM hotmail.com at 3/22/2007 4:36:45 AM
Hi,
I have an application (written in C#.NET with the 2.0 framework and
OpenGL) that runs several display lists. It's currently a little
slow, so thought it would be a good idea to initialise the most
important display lists first and display them. Then while the user
is able to play with t... more >>
Clear Output/Debug window?
Posted by Bob at 3/22/2007 3:46:50 AM
Does anyone know how to clear the window so it's easier to see the
stuff you have listed with Debug.Write(xyz)?
Bob Sweeney
... more >>
Type conversion/ costum_type[] to int[]
Posted by time_error NO[at]SPAM hotmail.com at 3/22/2007 3:18:40 AM
Hi,
Environment: VS2005 standard, programming app/service for WinCE 5.0
I'm trying to use the Win32 DeviceIoControl(...) from C# with P/
Invoke.
In my managed C# code the inbuffer of DeviceIoControl is defined as
int[], but the data (type of buffer) I want to use is not. Actullay is
an array... more >>
OleDbConnection to Sybase
Posted by tamarindm at 3/22/2007 2:48:30 AM
I am using the following to connect to a Sybase server.
OleDbConnection Conn= new OleDbConnection();
string connstr = "Provider=Sybase ASE OLE DB Provider;Data
Source=SERVER;User ID=USER;Password=password;database=DB";
Conn.Open();
I get the following error. What could be the problem ?
... more >>
regex question
Posted by bonit99 NO[at]SPAM gmail.com at 3/22/2007 2:01:03 AM
hello!
I have a question on how I can replace all occurences of one special
character within a matching string?
for example string:
key = 'som#ething#something' OR anotherkey <= 'anot#her' AND somekey =
'some#'
would have to replace the character # within any string between the
two qu... more >>
C# drag and drop for treeView items
Posted by amir at 3/22/2007 1:26:29 AM
Hello all,
I am trying to write the code for the drag and drop feature for moving
items in treeView. I have looked in several places but didnt quite
managed to code it. Just wandered if anyone can direct to some good
place for some code example (looked at code project site) or short
explanation... more >>
calling matlab function in c#
Posted by eric_jin at 3/22/2007 12:39:10 AM
i wrote a c# webservice to call matlab functions.
add is the function written in matlab,and then make it dll to use in c#;
//add.m
function result=add(left,right)
result=left + right;
//end of add.m
//calling add in c#
[webmethod]
public double add(double left,double right)
{
... more >>
setting Control.Region takes too much time
Posted by Sagaert Johan at 3/22/2007 12:10:33 AM
Hi
I have a customcontrol that has a boolean state variable.
The control is placed over a picturebox.
Depending on the value i assign a new Region to the control.
The region is simple and contructed from a graphicpath containing 1 ellipse.
(size no more then 100 pixels)
if (state)
thi... more >>
copy directory
Posted by Puja at 3/22/2007 12:00:00 AM
hi all,
how can I copy directory c:\test to a directory c:\backup with all files,
folders and subfolders that are contained within test.
please advice!
thanks
... more >>
How to Get the List of AppDomains in a Specific Process?
Posted by Laser Lu at 3/22/2007 12:00:00 AM
Hi, can anybody tell me if it is possible to detect whether a process =
has some AppDomain(s) hosted, and how to get the list of all the hosted =
AppDomains within that process?... more >>
has anyone successfully called matlab functions in c#?
Posted by eric_jin at 3/22/2007 12:00:00 AM
i called function show() in a c# webservice
//show.m
function ans=show(x)
ans=x;
it works;
but when i try to call add(),it breaks;
//add.m
function ans=add(a,b)
ans=a+b;
code in c# as follows:
[WebMethod]
public int show()
{
mat.matClass st=new mat.matClass();
object ... more >>
List Current Applications running
Posted by Jeff Williams at 3/22/2007 12:00:00 AM
I need to develop a application which will replace Windows Task Manager
function of displaying and ending applications which are running for the
currently logged on user.
This is for use in a school environment where if an application the
student is running hangs they can kill it off but th... more >>
Messagebox appears behind form
Posted by gewe at 3/22/2007 12:00:00 AM
I have a form (sizeable border, shows in taskbar, nothing unusual), which
is the main form of my application (called MainForm). During an operation
progress is shown in another form, that is shown from within the main form
with: pf.Show(this);
When I have to show a messagebox, the messagebox i... more >>
Form with StartupPosition CenterParent not centered on parent
Posted by gewe at 3/22/2007 12:00:00 AM
I have a form (sizeable border, shows in taskbar, nothing unusual), which
is the main form of my application (called MainForm). During an operation
progress is shown in another form, that is shown from within the main form
with: pf.Show(this);
I have set the StartupPosition of the form pf to C... more >>
|