all groups > c# > october 2006 > threads for friday october 13
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
Application.Run() problem
Posted by Joel at 10/13/2006 9:18:34 PM
2 Questions:
(1)
The documentation says application.run() creates a standard
message loop on the current thread and "optionally" shows a
form. This is really confusing because I was of the understanding
that application.run() creates a message loop for the form and
passes all messages to it.... more >>
Ebook c#
Posted by ClayHouseMaker at 10/13/2006 7:42:37 PM
You can download at
http://rapidshare.de/files/36657924/ebookcSharp.rar
... more >>
designMode
Posted by Hrcko at 10/13/2006 7:34:55 PM
How to make an application to recognize if it run in DesignMode?
I find in Help something called ISite but I don't understand how to use it.
Hrcko
... more >>
Obeying MSDN documentation
Posted by John Browning at 10/13/2006 7:19:17 PM
Hi there,
I've frequently noticed quite a few .NET functions with the following MSDN
caveat:
"This method supports the .NET Framework infrastructure and is not intended
to be used directly from your code."
Does anyone know whether this officially means you can't use the function or
it... more >>
How can I create -- CustomClass[propertyName].CustomMethod ?
Posted by Dimitry at 10/13/2006 5:58:01 PM
I can't figure out how to approach this problem.
I would like to have a custom object that will contain some predefined
attributes.
The simple solution that I know is to create my own class -- something like:
public class MyClass
{
private string _property01 = string.Empty;
pub... more >>
Object Persistence Framework
Posted by Peter Morris [Droopy eyes software] at 10/13/2006 4:22:00 PM
Hi all
Any recommendations for a good object persistence framework? I'd be
interested in hearing from anyone with personal experience.
Thanks
Pete
... more >>
Reading great code
Posted by gt8887b at 10/13/2006 4:11:47 PM
Hello!
In his recent newsletter embedded expert Jack Ganssle says that
programming students, as well as professional developers should readh
"great code" (hight quality/well-crafted code that works). He even
gives to examples. One is uC/OS-II operating system and the other is
TCP/IP stack f... more >>
XslCompiledTransform
Posted by Peter Kirk at 10/13/2006 3:45:35 PM
Hi
I am trying to exexute a transform (XslCompiledTransform .Transform), but
get this exception:
System.Text.EncoderFallbackException: Unable to translate Unicode character
\u2013 at index 3637 to specified code page.
at System.Text.EncoderExceptionFallbackBuffer.Fallback(Char charUnkn... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
sql injection prevention
Posted by Doug at 10/13/2006 3:43:16 PM
Hi,
I have a question on sql injection attacks. I am building a tool that
will be used exclusively by our other developers and will generate
stored procs for them dynamically based off input from them. I wanted
to add a "parser" functionality where based off the table and where
clause they ... more >>
pdf files
Posted by Hrvoje Voda at 10/13/2006 3:23:50 PM
How to read pdf files?
Is there a .net component that support that?
Hrcko
... more >>
Changing property attributes at runtime
Posted by Kimmo Laine at 10/13/2006 3:20:06 PM
Hi is there a way to change propertys attribute from the code?
Let´s say that i have the following property in my class:
[DisplayName("Number of cars")]
public int Count[
get { . . . }
set { . . . ]
}
Is there a way to change the displayname, from my code, at runtime to
"Number of... more >>
Datagrid Question
Posted by Dirk at 10/13/2006 2:27:02 PM
Has anyone had experience producing an employee schedule display by way of a
datagrid? Creating this isnt hard but I am trying to get changes made in
the database to show in the datagrid. For example if someone requests
vacation time and it gets approved by a manager I would like it to sho... more >>
Circular Audio Files
Posted by Quentin at 10/13/2006 2:17:01 PM
Hi,
I want to save an audio stream into a circular file so that I only keep say
the last hour's audio.
Can anybody help?
Cheers,
Quentin
... more >>
C# destructor and finalizer - guarentees?
Posted by tstephan NO[at]SPAM gmail.com at 10/13/2006 2:06:45 PM
I remember reading a few years back about destructors not being
guarenteed to be run. Doing a search all I can find is a reference to
some bugs with finalizers and appdomains in 1.0 and 1.1. Are
destructors guarenteed to be called in every case? Are there any
pathological cases?
... more >>
progress bar
Posted by Hrvoje Voda at 10/13/2006 1:34:24 PM
How to use progressBar with loading picture into pictureBox.
Code:
private void InitializeMyTimer()
{
// Set the interval for the timer.
time.Interval = 250;
// Connect the Tick event of the timer to its event handler.
time.Tick += new EventHandler(IncreaseProgressBar);
// St... more >>
Calculating daylight saving time automatically
Posted by maflatoun NO[at]SPAM gmail.com at 10/13/2006 1:32:17 PM
Hi guys,
I have to make a event signup page for our company that would display
the event time/date in 3 different time zones (Eastern - New York,
Central - Chicago, and Pacific - San Francisco). To do this. I convert
the inputed date from local time zone and convert it into UTC and store
it ... more >>
Data abstraction layer, is there something around?
Posted by S. Lorétan at 10/13/2006 1:22:31 PM
Hi guys,
I'm coding an application connected to a database. I have some clients that
use this program with 2 or 3 computers, and I use MsSQL Express for them.
But if the client needs more computers to be connected to the database, I
have to use a standard MsSQL. No problem with that, but I ... more >>
owned form
Posted by Hrvoje Voda at 10/13/2006 1:20:16 PM
I' using this code to call a loginForm(that form is in another classLibrary)
This is a Main Form from witch I'm calling login form:
void Login()
{
LoginForm lf = new LoginForm();
this.AddOwnedForm(lf);
lf.ShowDialog(this);
}
private void MainForm_Load(object sender, EventArgs... more >>
Transactions and Active Directory
Posted by msnews.microsoft.com at 10/13/2006 1:18:41 PM
Hello,
I need to create an application that will span its transactions through SQL
Server and Active Directory (Insert records in SQL Server and for example
set a property for a user in AD2003). Is it possible to wrap this kind of
action in a single transactions?
Thanks,
... more >>
ArrayList
Posted by C#Newbie at 10/13/2006 1:16:30 PM
Hi everyone, I'm new in this group and I have a question that might
have been answered already. I created an arraylist that I want to
contain the object that I created. But when I try to store these
objects, I end up having the same information in the arraylist. Here is
my code
in Person.cs
... more >>
c# and sql-server express 2005
Posted by Rob Pollard at 10/13/2006 12:19:47 PM
Hi All,
I'm pretty new to using these technologies so bear with me. I have created
a c# app which communicates with sql-server express 2005. When I run an
insert on a table via the SqlCommand class nothing seems to happen! No
errors are apparent either. If I check the table contents in the ... more >>
N threads synchronization - contrived example
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 10/13/2006 11:37:45 AM
Hi
Say you had N threads doing some jobs (not from a shared queue or
anything like that, they each know how to do their own set of jobs in a
self-contained way). How can you coordinate them so that they all wait
until they've all done one job before starting off on each of their
next jobs.
... more >>
Transactions and Active Directory
Posted by msnews.microsoft.com at 10/13/2006 11:23:17 AM
Hello,
I need to write an application that spans its transactions between SQL
Server and Active Directory. Is it possible to wrap the code in a single
transaction?
Thanks,
Sanja Stojanovic
... more >>
load event vs constructor?
Posted by Rolandpish at 10/13/2006 10:13:02 AM
Hi there.
I'm doing an application in C# 2005.
I was used in VB6 to put code in Forms load event in order to initialize
some values of the controls (grid values, text boxes values, label captions,
among others). Sometimes that code includes retrieving information from a
database.
Now that... more >>
check active user on XP S.O
Posted by Pedro at 10/13/2006 10:07:03 AM
Hi all,
I would like to know, how can I check the name of the current user that is
Log on in O.S XP.
Hi already try the
Environment.UserName.ToString();
but is not what i would like to appear,its abreviated,
like 'MJhonson', and and what i want is the complete name 'Michael Johnson'.
... more >>
XML Editors?
Posted by Martin Z at 10/13/2006 9:29:37 AM
Hi, I'm just working on a hobbyhorse command-line app for modders on
TA-Spring. The app is configured using XML deserialization, and I've
generated XSD to make designing the confuration XML files easier... and
in Visual Studio it's relatively painless.
The problem is that I want to be able to... more >>
Best method to retrieve a specific class instance from a collection
Posted by BSamp at 10/13/2006 8:33:21 AM
I have the following business entity classes shown below. I have a data
layer that
retrieves the data from the database and populates a new instance of
the PendingRecord class then adds it to the PendingRecords collection.
i.e. PendingRecords pendingRecords = dataLayer.GetPendingRecords();
... more >>
printing contents of EventArgs
Posted by benscribe NO[at]SPAM hotmail.com at 10/13/2006 8:10:35 AM
Is there a way I can list the contents of all the EventArgs passed to a
specific method?
Thanks,
Ben
... more >>
catch(Exception ex) Vs catch (Exception)
Posted by cashdeskmac at 10/13/2006 7:52:03 AM
Nice and simple one for you all...
Is there a time to use Catch(Exception) rather than creating an instance of
the Exception, as in Catch(Exception ex)?... more >>
Best method to parse xml content in VS 2005?
Posted by polaris431 NO[at]SPAM gmail.com at 10/13/2006 7:23:31 AM
I am new to VS 2005 although I have years of experience with the
previous versions of VS. Without having to spend a lot of time diving
into the docs, can someone tell me the easiest way to parse xml
content? In the past I used the DOM object model and XPath. Perhaps
things have improved in VS 20... more >>
how to register dll...
Posted by gujarsachin2001 NO[at]SPAM gmail.com at 10/13/2006 5:01:31 AM
hey i m using MSXML2.dll in my application when i m building this using
visual studio it is building with no error.
but when i m trying to compile same file using command prompt i m
getting 'type or namespace couldnot be found (are u missing directive
or assembly reference?)' error.
Can any... more >>
Plotting a thumbnail of line graph
Posted by Gouri at 10/13/2006 3:19:59 AM
Hi,
Got a query regarding plotting a preview / thumbnail for a graph
which reads data from a binary file. The preview should should take
very less time, look exactly like the original graph i.e. not miss the
peaks and curves should look similar. Is there algorithm or anyway to
do this in ... more >>
How to read mail from mail server (Pop3) using TCPClient
Posted by Prasanta at 10/13/2006 3:19:01 AM
Hello,
How to read a mail from the mail server as formatted. I am able to read the
mail as row HTML, is there any class, or something method using that i can
easily get the all info of that mail, like as TO,From,Subject,Body. here I am
attaching my coe which i developed.
using System;
u... more >>
Read mail from the mail server (Pop3) using TCPClient
Posted by Prasanta at 10/13/2006 3:16:02 AM
Hello,
Please cnay one can tell me how to read mail as formatted.... i have made
some code using that able to read but not able to serialize..... so am i need
to parse the HTML, or is there any class using that i can directly get the
full info ablt the mail, like TO,From,Subject,Body,Attach... more >>
How can Control/Form know if it's being displayed during design or in runtime?
Posted by TerryStone at 10/13/2006 2:41:37 AM
I have created a control that displays a list of items. During design
mode I fill it with junk data using calls from the constructor. So
when I look at a form with the control on, instead of being empty, it
has some content, and this gives a better idea of what the form will
look like when run... more >>
Problems with databinding in winforms
Posted by esakal at 10/13/2006 2:40:21 AM
Hello,
I have a very strange problem which involve databinding in winform
c#.net 2 .
I have a user control which holds textbox inside.
the user control has property which reflect the inner textbox text
property :
[Bindable(true)]
public string Content
{
get { return textBo... more >>
C# beyond 3.0
Posted by Néstor Sánchez at 10/13/2006 2:18:11 AM
Hi,
is there a tentive roadmap/features already semi-official for the next
version(s) of C#?
I'm interesting in the features of C# 4.0, maybe... Aspects? "Polyphony"?
Memory-Transactions? LINQ extensions?
And what about the CLR? I know in .NET 3.0 the CLR will be the same 2.0
core... what'... more >>
Any good c# api on internet?
Posted by Tom at 10/13/2006 2:15:30 AM
Hi!
I'm a newbe on c#. Is there any good api for c# classlibrary(.net) on the
internet that you can recommend? I'm thinking something like javas api.
Regards
/Tom... more >>
How to connect HTTP or HTTPS with the help of url in console application
Posted by gujarsachin2001 NO[at]SPAM gmail.com at 10/13/2006 2:07:01 AM
Hello friends,
I want to connect http or https by taking url, username & password
from user (if necessary )& then connect to download file from that
source in console application.
Can u help me out ............
Sachin
... more >>
Deleting items in a list
Posted by Macca at 10/13/2006 1:44:02 AM
Hi,
My app populates a list of custom objects from data fetched from a database.
What i want to do now is filter the list and remove items from the list that
don't match the filter criteria.
I was thinking of using foreach to traverse the list and dynamically remove
items that fail the ... more >>
Identifier expected
Posted by Jack at 10/13/2006 12:00:00 AM
I get the following errors from the code ( CRM 3.0 ) below, whats wrong ?
Any
suggestions are welcome because i'm kinda stuck here.
The first error is pointing on the last bracket ] <---
c:\inetpub\wwwroot\bredanaweb\jdshentlead.aspx.cs(18,35): error CS1001:
Identifier expected
c:\i... more >>
If a DataGrid.DataSource is an IList, not a DataTable, is there a way similar to dt.AcceptChanges(), dt.RejectChanges()
Posted by Ryan Liu at 10/13/2006 12:00:00 AM
Hi,
If a DataGrid.DataSource is an IList, not a DataTable, is there a way
similar to dt.AcceptChanges(), dt.RejectChanges()?
Thanks a lot!
Ryan Liu
... more >>
|