all groups > c# > march 2006 > threads for friday march 3
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
findind Computer Resources
Posted by salman at 3/3/2006 11:23:11 PM
how can i find cpu speed , ram capacity and cpu's free cycle in C#
..Net. Please reply urgent.
... more >>
References across multiple projects
Posted by sonali_reddy123 NO[at]SPAM yahoo.com at 3/3/2006 10:57:38 PM
Hi all,
I have developed an application in which there are uptill now 12
projects and few of them are
dependent on each other.
The problem is I am not able to manage the references across different
projects.
Previously I used to get one error it says something like the object of
typ... more >>
Not Operator?
Posted by Lee at 3/3/2006 6:02:12 PM
If (Not MyBooleanVal) Then
Begin
// Do Something
End;
if (! MyBooleanVal)
{
// Do Something
}
Same right?
--
Warm Regards,
Lee
"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."... more >>
Which reporting tool to use?
Posted by Mathieu [Marti-IT] at 3/3/2006 5:03:45 PM
Hi all,
in creating a C# Windows Forms library to create professional applications
with. In searching for a good reporting tool to create and distribute my
applications reports with. Does anyone know a good reporting tool for .NET?
Crystal Reports is, of course, a good reporting tool, but ... more >>
How to order builds?
Posted by Brett Romero at 3/3/2006 3:31:51 PM
I'm using a custom Configuration to build four of eight projects under
the same solution. For this configuration (call it ConfigA), I have
the four projects set to build. However, the order is important. When
I update a DLL that happens to start with the letter "u", the EXE,
which happens to ... more >>
delete file: Access to the path 'X' is denied
Posted by wo20051223 NO[at]SPAM yahoo.com at 3/3/2006 2:45:34 PM
Deleting some files with C# fails with "Access to the path 'X' is
denied".
I have files copied from a CD that I burned (and not locked by a
process) and a text file that I created in Windows Explorer. I can
delete all of them through Windows Explorer. I can programmatically
delete the text... more >>
Load data into combobox control asynchronously
Posted by Vish at 3/3/2006 2:44:33 PM
Hi,
I am having a problem with my form being too slow to load up. I have a 4-5
of comboboxes on the form that load a lot (~30,000 records) into them. So
this is causing a lot delay (5-6 seconds) for the form to load. Most of the
time the form will be used for viewing data only. But sometime... more >>
databinding to a dictionary
Posted by Dan Holmes at 3/3/2006 1:56:12 PM
I have a custom dictionary and i would like to bind it to a control.
Since Dictionary doesn't implement IList i would have to write it. Is
the only way to do this to keep another collection that matches the key
in the dictionary to an index in the collection?
dan
Here is the code i want... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
System.IO.Ports
Posted by José Valim at 3/3/2006 1:48:15 PM
Hi,
Can I use System.IO.Ports to read virtual COM ports, created by a
driver?
I need to know it before buy a Serial-to-USB cable! hehe
Thanks,
Jos=E9 Valim.
... more >>
Newbie: Should code go in Form.cs or FormDesigner.cs?
Posted by deko at 3/3/2006 1:46:36 PM
There are situations where it appears code can go either in the form
Designer's class or the form's class. Is there a best practice regarding
where code should go? Does it matter?
Here are some examples:
1) If I have multiple TreeViews on a single form (Form1) and I want to
consolidat... more >>
Facade pattern
Posted by anonymous.user0 NO[at]SPAM gmail.com at 3/3/2006 1:20:58 PM
I'm a little confused about the Facade pattern. As I understand
it, it's supposed to be a single, simplified interface into a larger
amount of subsystems. The question I have is basically how simple and
interface is it supposed to be? Lets say I've got an application with
multiple layers... more >>
Suggestions For Touch Screen Form Sizes [C#]
Posted by MikeY at 3/3/2006 1:18:17 PM
Hi Everyone,
I'm looking for suggestions for touch screen form sizes. Or better yet
dealing with forms very various screen sizes. How to deal with anchoring
buttons etc and so they don't overlap with bigger screen size.
I'm trying to build a hospitality touch screen application w/ Window f... more >>
Installation problem with C# 2003
Posted by JohnTheys at 3/3/2006 12:56:27 PM
Cannot seem to install Standard Visual C#.net 2003. Was previouslly
installed and framework got wiped out. Reinstalled framework 1.1 from
Prerequisics disk OK but installation of C# produces this error:
"
[03/03/06,10:48:33] Visual C# .NET Standard 2003 - English: [2]
ERROR_FILE_NOT_FOUND ... more >>
FormView Question
Posted by akylitis at 3/3/2006 12:49:28 PM
Question regarding the use of a FormView control. All I need is the
ability to submit a form (insert a record) and return back a "Thank
You". I am defaulting the FormView to "Insert" mode
(InsertItemTemplate), but after the post I would like to put my Thank
You message in the ReadOnly template... more >>
Data conversion
Posted by Roy at 3/3/2006 12:44:27 PM
In C#, how do I convert a data (could be any primitive types or user defined
structures such as int, short [] ...) to byte[]? How do I convert it back
assume I know the type in advance?... more >>
how to convert datetime
Posted by ziggislaw at 3/3/2006 12:14:09 PM
hello
how can I convert DateTime from "25.12.2005" to "2005-12-25
00:00:00.000" ?
Now I have DateTime as string (I get it from <asp:label>).
Thanks
... more >>
Wrox:Anonymous method in event hanlder
Posted by moondaddy at 3/3/2006 11:41:06 AM
I'm reading the book Wrox-Professional C# 2005 and it's trying to
demonstrate an anonymous method in an event handler. I would not do this in
a real app, but am trying to understand how this works.
They have a windows form with a button on it. Rather than wiring up the
click event to a me... more >>
Cannot add MSWord reference
Posted by vul at 3/3/2006 9:57:19 AM
I'm trying to add Microsoft Word 11.0 reference to the project. It adds with
a yellow mark and it doesn't bring anything in Object Browser.. I tried it
in VB 2005 and C# (VS 2005) on 2 machines (Windows XP Pro) with the same
result.
What's wrong?
Thank you
Al
... more >>
Generic Collections and inheritance (again)
Posted by Adam Clauss at 3/3/2006 9:34:18 AM
I ran into a problem a while back when attempting to convert existing .NET
1.1 based code to .NET 2.0 using Generic collections rather than Hashtable,
ArrayList, etc.
I ran into an issue because the old code allowed me to do what basically was
the following assignment:
class SomeClass
{
... more >>
Custom Attributes - Are they implicitly inherited by subclasses?
Posted by Lee at 3/3/2006 9:26:07 AM
public class ClassA
{
[MyCoolAttribute]
private string _FieldName;
public string FieldName
{
get { return _FieldName; }
}
}
public class ClassB: ClassA
{
// [MyCoolAttribute]
// Must be explicity typed in attribute or implicit in
// the base class?
... more >>
Using Application.Settings at run time
Posted by autenzio NO[at]SPAM gmail.com at 3/3/2006 8:52:50 AM
I want to be able to load up the items collection of a combobox with
string values I create in Application settings. I have created a
collection of strings in the Settings window, but I am unable to bind
it to the "items" member of a combobox because that member is not
available in ApplicationSe... more >>
SortedList bind to datagrid
Posted by Sean at 3/3/2006 8:52:31 AM
How does one bind a SortedList to anything. If it cant be done why would
anyone ever even use a sortedlist?
We are currently (via business objects that use interfaces etc) binding
gridviews to List<T> type with zero problem which was an upgrade from our
previous methodology of doing the exa... more >>
communication between apps
Posted by Luiz at 3/3/2006 8:18:28 AM
Basically my dept. needs to rewrite a big powerbuilder app into C#(vs 2005)
and since we're doing it in modules, the 2 apps need to talk to each
other(like passing string back and forth). Does anyone have an idea on how to
aproach that? Any sample code would be great
Thanks in advance... more >>
DataAdapter UpdateCommand not updating record
Posted by susan.f.barrett NO[at]SPAM googlemail.com at 3/3/2006 8:16:50 AM
Hi,
Despite me being able to type the following in to SQL Server and it
updating 1 row:
> updatestockcategory 1093, 839
In my code, it is not updating any rows.
dataSet = new DataSet();
dataAdapter = new SqlDataAdapter(SQLCommandString, conn);
dataA... more >>
Capture control as image when running in background
Posted by aledrjones NO[at]SPAM gmail.com at 3/3/2006 7:59:20 AM
Hi
I've got a c# application that will often run in the background as it
is used to monitor connections to a host.
An activex control displays the communication between the app and the
host. When the host disconnects the app, I want to take a screen shot
of the active x control.
Two met... more >>
writing multithread applications in dotnet 2.0?
Posted by Elhanan at 3/3/2006 7:15:01 AM
hi..
we are planning to do a file distibution system in dotnet 2.0 (the
system will recieve request for file transfers from one legacy system
to another using connect direct api, the execution of the file transfer
itself will be multi-threaded.
are there any differences between 1.1 and 2.0 ... more >>
DataTable
Posted by Roy at 3/3/2006 6:58:26 AM
How do I copy the binary data (possibly longer than 8000 bytes) to a
DataTable? What is the syntax to add a column and add data to it like below?
DataTable.Columns.Add("MyBinaryField", ???); (What is the syntax for the 2nd
parameter)
DataRow dr = DataTable.NewRow();
dr["MyBianryField"] = ... more >>
UserControl with a ComboBox
Posted by Jochen Berger at 3/3/2006 6:57:37 AM
Moin!
I've 'composed' a special UserControl I need for my current project. On
this Control I put a ComboBox. The user is not allowed to access the
ComboBox directly (to protect some properties), so I used Properties to
enable the user to do some things in design mode. It all works fine
except... more >>
DB parameter collection
Posted by Roy at 3/3/2006 6:30:27 AM
I have a binary data to write to sql database by using a stored procedure.
What is the syntax for data type passed to the following call for adding the
parameter? What if the data is longer than 8000 bytes?
cmd.Parameters.Add("Data", "data type");... more >>
Identify hidden folders
Posted by CodeRazor at 3/3/2006 4:34:27 AM
I loop through all the folders in a directory.
I want to be able to check if a folder is set as hidden.
I've been playing around with FileAttributes, see below. But its not working.
FileAttributes fileAttributes = File.GetAttributes(fileName);
It returns a value of 34 which is not one of th... more >>
.dll to exe conversion
Posted by jyoti at 3/3/2006 3:47:47 AM
Hello friends,
i m working on a project for developing a framework
component for multilingual support in C# .net.
I have a class library project so i want to convert
this dll to a exe so that the deployer can use my component without
exposing coding details.
... more >>
Check Date Format
Posted by Thomas at 3/3/2006 1:50:26 AM
Hi all,
i have to check if a value is a valid date format depending on a "format
string" the user specified. For example:
Format String: "dd/mm/yyyy"
Date Value: "01/12/2006"
Valid: Yes!
Format String: "yyyymmdd"
Date Value: "01/01/2006"
Valid: No!
Format String: "dd.mm.yyyy"
Date ... more >>
Which database ?
Posted by Steven at 3/3/2006 12:00:00 AM
Hi,
I have to create an application using a database.
There won't be client/server access (only one user...).
What is the best solution ? Access ? MSDE ? Something else ?
Thanks !
... more >>
appSetting in .Config file
Posted by Mats-Lennart Hansson at 3/3/2006 12:00:00 AM
Hi,
In a windows service, I have some appSettings. If I during runtime changes
one of the values, is it availabele to the service from that moment? Or do I
have to restart the service before I can access the new value?
Ex.
I have this entry in my .config file:
<add key="Path" value="C:... more >>
Inheritance design quandry
Posted by news.microsoft.com at 3/3/2006 12:00:00 AM
Hello,
I've got a design problem that I can't figure out. I need to override a
static method which happens to be referenced by methods inside nested
classes. In the sample below, in the call tst.runTest() I need the result
to display "child", however it always displays "parent". I can un... more >>
initializing an array of structs
Posted by Steve Roberts at 3/3/2006 12:00:00 AM
In C# is it possible to initialize the items of an array when the array is
an array of structures?
When I try to initialize the items of the array (as shown below) using the
method I would use in C++, I get the compiler error "Array initializers can
only be used in a variable or field i... more >>
Read files
Posted by alberto at 3/3/2006 12:00:00 AM
I want to read all the files of a directory using this:
DirectoryInfo d = new DirectoryInfo(Environment.CurrentDirectory +
@"\Documents");
The application is stored in another machine and when I try to execute it,
an error appears: System.Security.SecurityException.
What can I do?
Thank ... more >>
Using OpenProcessToken
Posted by Niclas at 3/3/2006 12:00:00 AM
Hi,
I am trying to get a usertoken from a particular process running on the
computer, from a Windows Service to do a Windows group membership of the
user running that process. I was planning to use a API call to
OpenProcessToken and use the Tokenhandle retrieved to build a
WindowsIdentity... more >>
Getting info on the user's system
Posted by beaker at 3/3/2006 12:00:00 AM
Hello,
I'd like to be able to (programatically) determine the following about
the computer my application will be running on:
* whether the machine is a laptop or a desktop
* whether DirectX is installed, and if so which version
For the DirectX I know I could check system32 for s... more >>
|