all groups > c# > july 2007 > threads for thursday july 19
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
i want 2 make a higly secured guard lock which no 1 can heck
Posted by at 7/19/2007 11:46:40 PM
hi everrybody,
i want 2 make a higly secured guard lock which no 1 can
heck......
here i hav already make a login page, change password
page,and file uploder page with encryption..
bt here i wana , when i store a encrypted file on that
perticular location... more >>
Date server webcontrol
Posted by brandonjack007 NO[at]SPAM gmail.com at 7/19/2007 10:03:57 PM
I am looking for a date custom webcontrol that extends from
System.Web.UI.WebControls
The control will expose the following Properties to the page that
implements it
Date (datetime)
Month (int)
Day (int)
Year (int)
MinDate(datetime)
MaxDate(datetime)
The control will expose the follo... more >>
Help on communicate with web server in C#2005 and PHP
Posted by Lemune at 7/19/2007 9:26:09 PM
Hi all.
I'm trying to build an application that will communicate with web
server.
My application (in C# 2005) will be communicated with some web
application (using PHP).
For example, my desktop application (application A) want to login and
get data from database, but i don't want the applicati... more >>
SortedList<T> missing GetByIndex method?
Posted by Bruce Wood at 7/19/2007 8:59:58 PM
Sorry if this is a repost. My original post appears to have
disappeared.
Is it just me, or is the generic SortedList<T> missing a GetByIndex
method. The old (non-generic) SortedList has a method that, given an
index into the sorted list, will return the value of the item at that
index.
The... more >>
Calling C and C++ functions from a dll
Posted by greg at 7/19/2007 7:46:49 PM
Hi all,
What is the easiest way to call C or C++ functions from C# code? Via a
DLL file?
Thanks,
Greg
... more >>
ReadLine() from multiline string variable
Posted by sam01m at 7/19/2007 7:42:02 PM
just as the subject states, I need to find a way to read each line from a
multiline variable without having to write the string out to a file so I can
stream it in and use ReadLine(). Below is a snippet of code where I am trying
to read the string that has been passed into the function.
... more >>
PropertyGrid and the base classes
Posted by John Olbert at 7/19/2007 7:42:00 PM
Is there a way to pass a class to the SelectedObject of PropertyGrid and have
it only show the properties in the child class and not those in the base
class's that it is derived from?
Thanks.
--
John Olbert
... more >>
how to monitor the system clock for changes
Posted by Dica at 7/19/2007 6:23:26 PM
i'm working on a windows service that needs to check the system's clock
every minute and see if there are any jobs in my database taht are scheduled
to run at that time:
sSql = "select * from tblJobs where runTime = " + dtTheCurrentSystemTime
are there any classes designed to allow me to m... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Create a C/C++ dll and call it from C#
Posted by greg at 7/19/2007 5:46:59 PM
I used the same approach as the one described here:
http://blogs.msdn.com/jonathanswift/archive/2006/10/02/780637.aspx
The only catch is that the project which I am trying to compile into a
dll is half written in C and the other half in C++. What were the
developers thinking !?! I am using Vis... more >>
interface function has structure parameter.
Posted by andrewcw at 7/19/2007 5:22:00 PM
I am new to interfaces. My simple string parameter in & return of string
worked fine.
BUT I need something better -
- accept as input a structure, Where is the structure definition maintained
? how isi it used ?
Is this possible & how ?
using System;
using System.Collections;
nam... more >>
How to find out what methods, etc. a web service makes available?
Posted by sherifffruitfly at 7/19/2007 3:34:05 PM
Hi all,
I've got a URI (ip/port) that has a web service on the other end. I
can't access it through VS Add Web Reference because it requires
authentication. How can I find out the interface the service provides?
Thanks for any tips,
cdj
... more >>
Lambda Expression issue
Posted by Ruth Mark at 7/19/2007 3:22:04 PM
Hey,
Am trying to write a lambda expression for a delegate, am getting an error as
------------------------------
only assignment, call, increment, decrement, and new expression can be used
as a statement
-----------------------------
For the following code.
// Delegate Declaration
de... more >>
ClickHandler bug
Posted by Joseph at 7/19/2007 3:18:03 PM
I've written a memory game Windows application that consists of 16 pictures
and the object of the game is to find all the matching pairs of cards. When
you first start the game everything works fine. If a card match is found both
cards are removed. If the two cards selected are not matches the... more >>
Windows events
Posted by Itzik at 7/19/2007 3:02:33 PM
Hi all,
How can i handle windows events.
For example i what to know all times when new folder creates.
Thanks
... more >>
Additional information in .resources files
Posted by schaf at 7/19/2007 1:57:53 PM
Hi NG !
I would like to add additional information to a .resources file. For
instance the translation date,
How can I add this information to the .resources file of a form?
In the resheader, the information will be deleted during the
generation of the .resources (using resgen).
Is there a poss... more >>
GDI+ - finding a rectangle inside another rectangle
Posted by sklett at 7/19/2007 1:56:52 PM
I have a situation where I'm getting in Image that has a gray (solid, same
color) background with a smaller white rectangle inside. The position is
not always the same. What I need to do is locate the postion and determine
the size fo the white rectangle and then crop the image to leave only... more >>
reading a text file
Posted by Stephen at 7/19/2007 1:10:35 PM
I am reading a text file using TextReader reader = new
StreamReader("file.txt"); like I have done many a times before. I then
execute the statement string a = reader.ReadToEnd(); this string is then
sent into a function to convert its contents (hex string) into a byte array.
Well when this p... more >>
Having brainfart on date algorithm problem
Posted by Brian Simmons at 7/19/2007 12:55:55 PM
Hi all,
I'm just having one of those days where seemingly easy problems are giving
me a devil of a time.
Here's the scenario:
Company's fiscal year runs from 10/1/YY -> 9/30/(YY+1), i.e. 10/1/2006 ->
9/30/2007
Users are required to enter a FromDate and ToDate for services needed.
The ... more >>
Using ForEach and FindAll of Generics
Posted by Doug at 7/19/2007 11:28:42 AM
Hi,
I have a collection of objects and I need to compare each item in the
collection to see if it's a match on any or all of the others. I have
stored my collection in an item like so: "List<PossibleDups> dups"
where PossibleDups is an object of my own creation.
I have been looking at how... more >>
how to build a code that to share/
Posted by DBC User at 7/19/2007 9:19:36 AM
This is a simple question so please bare with my ignorance on this
topic. I want to build a project that I want to share with multiple
development group.
... more >>
Totals Problem
Posted by BD at 7/19/2007 8:31:17 AM
Writing C# database app with VS 2005, I need to have a text box that
computes and displays only a total from a datagridview computed totals
column. I did this before with VBA with the following:
=nz(WorkOrderMaterial.Form![Total Parts])
How would I do this with C#. I have added the co... more >>
Reading real time log files.
Posted by Justin Rich at 7/19/2007 8:28:03 AM
looking for the best approach to reading a real time log file. The file gets
updated pretty quickly, always appended to the end.
do i really need to just keep re-opening the file and reading the end of it?
I cant help but think there is a better way to go about this.
any suggestions would... more >>
Sums & Totals
Posted by BD at 7/19/2007 8:24:43 AM
Writing C# database app with VS 2005, I need to have a text box that
computes and displays only a total from a datagridview computed totals
column. I did this before with VBA with the following:
=nz(WorkOrderMaterial.Form![Total Parts])
How would I do this with C#. I have added the co... more >>
Common code generation
Posted by DBC User at 7/19/2007 8:20:43 AM
Hi,
This is a very simple question so please bare with my ignorance on
this. I want to write a piece of code which does a common task
(independent) which reads xml input and process something and then
create an xml output. I want to share this code with different groups,
I have 2 questions on... more >>
Copy all files from a folder to another folder, recursively
Posted by pamela fluente at 7/19/2007 8:20:12 AM
What is the most current (for framework 2.0) and easy way to copy
recursively
all files from folder "Folder1" to folder "Folder2" ?
Is there any simple function in the framework to do that?
-P
... more >>
DoubleClick Handler
Posted by Looch at 7/19/2007 7:04:40 AM
Hi All,
Am just getting into handlers at the moment and had a question. How
would I write the code (the 'public void example handles cell
doubleclick...) for a method to handle a double click in any cell of a
particular datgridview column?
Thanks for any help.
... more >>
userlevels - howto
Posted by ohmmega at 7/19/2007 6:51:16 AM
hello,
i'm new to c# and wanted to know a simple way to hide forms-stuff
(like buttons) depending on a user level:
example:
user1 logs in -> userlevel admin -> everything is just fine and
visible
user2 logs in -> userlevel oh_no -> only the log off button is visible
it should be possi... more >>
Sums and Totals
Posted by BD at 7/19/2007 6:17:56 AM
Writing C# database app with VS 2005, I need to have a text box that
computes and displays only a total from a datagridview computed totals
column. I did this before with VBA with the following:
=nz(WorkOrderMaterial.Form![Total Parts])
How would I do this with C#. I have added the co... more >>
VB.NET solution doesn't port to C#.NET
Posted by al-s at 7/19/2007 6:17:30 AM
I have a working VB.NET 2005 (.NET2.0) solution that works. When I
translate the code modules, form modules to C# I get all sorts of
build errors, much of which are related to scoping of methods.
I have the following given in a form module:
using System;
using System.Collections.Generic;
... more >>
ArrayList OF Objects
Posted by thomson at 7/19/2007 5:09:43 AM
Hi All,
i do have an array list of objects
eg: ArrayList al=new ArrayList();
al.Add(new MyOb(1);
al.Add(new MyOb(2);
from this i need to access a particular object values , how do i do
it??
eg:
From the Arraylist how do get object with vari... more >>
Generics confusion
Posted by joseph_gallagher NO[at]SPAM hotmail.com at 7/19/2007 4:06:40 AM
Hi,
I've been playing with generics and I was wondering if anyone could
tell me why the following doesnt work, and if there is another way to
do it
public class A<T> where T : B, new() {
public B Get() {
B b = new B();
b.X = this;
... more >>
advice a good ASP.NET C# 2005 book
Posted by mesut at 7/19/2007 3:47:04 AM
Hi colleagues,
I need your advice...
I have approx 1,5 years experience with ASP.NET/VB.NET 2005 and I have
to switch over into C# 2005 language. I don't have experience with C#
2005 language. (> but 10 years experience in mainframe languagues).
My question is: I need a good book can some... more >>
Padding is invalid and cannot be removed [Cryptography]
Posted by floppyzedolfin at 7/19/2007 3:22:34 AM
Hi there.
I'm coding an encryption / decryption program.
At this very moment, I think I should be pretty close from the end,
but there's something blocking me on my way.
There's a "Padding is invalid and cannot be removed" error raised when
closing the cryptostream (or FlushFinalBlock-ing i... more >>
entry point of OLE DB Provider
Posted by George at 7/19/2007 3:22:00 AM
Hello everyone,
I am implementing a simple C# OLE DB Provider (C# COM Server). For C#
(managed code), I am wondering what is the entry point (which coclass and
which method), client will invoke at first?
It is clear if I write my own client, but I am confused about other clients
which ... more >>
asp.net2.0, how to print part of the page?
Posted by Taoge at 7/19/2007 2:36:02 AM
Hi all,
Suppose I have a table in the page. Now I want to print the table only,
don't print any other contents in the page. Is it possible?
Thanks in advance.... more >>
webbrowser / don't want to use cookie.
Posted by Boki at 7/19/2007 2:02:25 AM
Dear All,
How to disable cookie when using webbrowser ?
Thank you!
Best regards,
Boki
... more >>
serializing a COM object
Posted by at 7/19/2007 1:57:17 AM
Is it possible to serialize a COM class for which you don't have the
source code? Obviously it won't work without the [Serializable]
attribute, which I can't add, and implementing ISerializable on a
derived class won't help because I don't have access to the private
fields that I would need to w... more >>
C DLL to C# (types exporting)
Posted by A n g l e r at 7/19/2007 12:00:00 AM
Hello there.
I've got a DLL written in C convention. There're a few of enum types
that I would like to make available to C#. Is there any easy way of
doing this (exporting, etc.), or do I have to redefine all custom types
in C# (especially enumerations)? Normally, I go over these problems b... more >>
Querying presence of a keyboard
Posted by Claire at 7/19/2007 12:00:00 AM
Hi,
Is there any way to query whether or not a keyboard is attached to a pc
please?
My software will be running on XP/Vista systems in an environment where
there may or may not be a keyboard/mouse attached to the system.
thank you
... more >>
Invoke method causing dead lock ....
Posted by LamSoft at 7/19/2007 12:00:00 AM
It seems that my program is dead lock after running this sentence (bold)
private delegate void updateBuildingDetailCallBack(String key, =
String Value);
private void updateBuildingDetail(String key, String Value)
{
if (tabBuildings.Controls["lblBuild_Reso... more >>
Does C# provide array properties (as in Delphi)?
Posted by Debbie Croft at 7/19/2007 12:00:00 AM
Does C# have the ability to define array properties, as in Delphi? For
example, does the following have an equivalent in C#?
type
TMyGrid = class
{ ...some code... }
property IntegerCells[i, j: Integer]: Integer read GetIntegerCell write
SetIntegerCell;
property StringCe... more >>
Callback mainthread in a class
Posted by Cheryl at 7/19/2007 12:00:00 AM
Hi all. I am writing a component library that does not have an interface.
I would like to create a class that allows the worker thread to callback the
mainthread so that the Form interface does not have to invoke the main
thread before updating the control. Would this be possible? If yes, h... more >>
Thread Safe?
Posted by bob at 7/19/2007 12:00:00 AM
I have an application that has 4 threads answering phone lines.
The threads make calls into a static class' functions.
Assume there will be 'concurrent' calls into any function.
Smallest function I could find is
public static void Play_Invalid_Option(AxVbocxLibrary.AxVBocx
Vbocx1,string sLa... more >>
UserControl reference problem
Posted by mAbZ at 7/19/2007 12:00:00 AM
I neeed to instantiate an UserControl in an aspx page like this:
<MyNamespace:MyControl ID="ctrl1" runat="server" MyParent="<%# this %>" />
where "this" is the current aspx page and should be assigned to
property Parent contained in MyControl class.
Above code is contained in a PlaceHolder.... more >>
is this possible with a DataGridView?
Posted by Jeff at 7/19/2007 12:00:00 AM
..NET 2.0
On my form I have a DataGridView, I want the rows in this DataGridView to
have different background colors. The data presented on the rows are of 3
types: A, B or C.... For the user to easy see what type the data on each row
have I want to individually set the background color of ... more >>
|