all groups > c# > august 2005 > threads for tuesday august 23
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
ListBox appearing empty
Posted by Pafo007 at 8/23/2005 11:34:59 PM
Hi.
I've built a small window, with some buttons and labels, and one listbox.
During design time, I put five lines in the listbox and launch the
program: the listbox appears empty! I can select the first five lines,
but they become blue (=selected) without any text.
I tried to feel the listbo... more >>
Fetching million data in dataset for datagrid slow down my system.
Posted by yatharth NO[at]SPAM gmail.com at 8/23/2005 11:26:11 PM
Hi Mike
I have Datagrid and i am fetching data around about 1 million into it ,
i think which is not good deal this makes my system slow.Please tell
the way so that i can fetch data in my dataset or else so that i dont
have to fetch such a large data again and again.
My datagrid alows p... more >>
*svchost.exe thing in BETA 2 ?
Posted by Abubakar at 8/23/2005 11:13:02 PM
Hi,
my exe's name is schemavalidate, and in my bin directory I also see a
schemavalidate.vshost.exe. What is this vshost file and why is this needed?
Can we choose not to generate it?
Abubakar.... more >>
FileSystemWatcher.. easy
Posted by Markus Stoeger at 8/23/2005 10:50:47 PM
Hello!
I'm using the FileSystemWatcher to get notified when new files are
created in a directory. Once a file appears in the directory I want to
read it's contents into memory and do some processing.
The problem I'm having is that sometimes the FileSystemWatcher event
gets fired before t... more >>
Some characters causing problems in HttpWebRequest
Posted by Peter Afonin at 8/23/2005 10:38:37 PM
Hello,
I've created the domain registration system in ASP.NET. I'm using
HttpWebRequest to post the data to the registrar's server. So in the Post
string I'm passing the data like name, address, phone number etc.
The only two fields that are causing problems are the phone and fax fields.
My... more >>
Visibility/Access of Class Members
Posted by Liz at 8/23/2005 9:25:31 PM
ok, this is really simple stuff, or it should be ... but I'm stuck
In a Windows Forms app, I have something resembling this:
Form1.cs
========
namespace NS
Class Form1
{
public Label label1
...
private void func1()
{
iterateRows();
}
}
Class1.cs
=========
... more >>
Show volume from Line In
Posted by Bender at 8/23/2005 9:23:22 PM
Hello,
I want to write a "little" program that shows the volume from the line-
in of my sound card, but I have no idea how to start on this.
Is there a possibility to use some existing libraries or does anyone has
an example on how to start with this ?
Thanx for any answer... more >>
Programmatically Add Reference Com Component into C# Project?
Posted by Adam Right at 8/23/2005 8:59:33 PM
Hi,
I am developing a project which uses "Microsoft Word Interop". There may be
a case in which the end-user may not have Microsoft Office or Office
Interops. So i do not want to add a com reference into my project from the
Solution Explorer by right-click "Add reference". I do want to add ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to hide application in task manager?
Posted by Tomas Machala at 8/23/2005 8:35:14 PM
Hi, is it possible to hide my application in task manager? It may (actually
it should) be visible in Processes tab, I want only to hide it in
Applications tab.
... more >>
ActiveX type control or similar in C#
Posted by Alex at 8/23/2005 6:36:03 PM
Hello,
I am trying to access some windows components from a web based application
and I am having trouble find my way. The only solution seems to be to creat
an ActiveX control to access the local com objects. My problem is that I
have been primaraly working in C# and too time consuming to ... more >>
Webservices
Posted by Alex at 8/23/2005 6:21:03 PM
Hello,
I hope someone can help me. I have created a windows based application in
C# using WebServices running. The Server is an MS Windows 2003 server. The
services simply retrieves data from a MS Sql data server and passes it back
to the Windows application in the form of a DataSet. My p... more >>
Vector or Raster?
Posted by B Maxey at 8/23/2005 6:19:01 PM
I am writing a graphics program. It draws images, shapes and text. I want
to be able to zoom and scroll the images it creates.
I also want to be able to email a jpg file to others.
But I am thinking for the windows app, at least when zooming text, using a
local metafile will look much be... more >>
Going to the end of a control
Posted by PromisedOyster at 8/23/2005 6:01:22 PM
How do I programmatically set the caret position to the end of a
Windows edit box control?
I was looking at using SendKeys but is there a better way?
... more >>
.NET 2.0?
Posted by John Salerno at 8/23/2005 6:00:27 PM
Since VS2005 will be released in October, does this mean that the .NET
Framework 2.0 will also be finalized and realized on or before this date?
Thanks.... more >>
Removing default xmlns from xml
Posted by EAI at 8/23/2005 5:21:54 PM
Hi All,
I have a XML of the following form
<?xml version="1.0"?>
<xxxx xmlns="http://xxx.xxx.com">
....
</xxxx>
When I try to read xml using SelectSingleNode, I am getting exception
"Object reference not set to an instance of an object.". But if I remove
xmlns and change xml into
... more >>
How to read a xml file in the project
Posted by John Britto at 8/23/2005 4:31:27 PM
Hi,
I have a xml file inside the project. How do I access this file?
John
... more >>
Relative paths break after install
Posted by Richard at 8/23/2005 3:36:03 PM
Sorry about the cross posting to this group but I posted this question for a
coworker last week in the setup board and got no help:
hi,
If my project has subfolders and I have relative paths into those folders
(for images, xml files, etc.), after installing the application on the target ... more >>
.NET Framework Initialization Error - Trap
Posted by Fox/Net West at 8/23/2005 3:24:41 PM
Currently using .NET v1.1.4322 and v1.0.3705.
Starting a C# console application for the office - I wanted to <gracefully>
via structured error handling trap the condition where the .NET framework
(neither of the above) is not installed on the server/workstation - instead
of the default message... more >>
How to call a function from another page
Posted by dale zhang at 8/23/2005 2:23:42 PM
Hi,
I have the following private function in one page:
private string Connect()
{
string sConnect;
// this value could go directly in the Global.asax.vb declarations
switch (((string)(Application["DBType"])).ToLower())
{
case "sqlserver":
sConnect = ConfigurationSettings.AppSettings.G... more >>
XSD Tool?
Posted by EAI at 8/23/2005 1:39:50 PM
I am new to XSD tool. I know what its used for but not sure how I can use it
to help me in the present situation.
I will receive a XML which confirms to a Complex schema. I created a class
out of schema. Now I want to use it to easily access members of that schema
so that I can verify/valid... more >>
Deselect default in TreeView control.
Posted by hartbypass at 8/23/2005 1:22:58 PM
Hello,
I have two treeview controls on a page. By default it appears that the
top item in both my trees are selected. I would like neither of these
to be selected initially. Is there a way to do this?
Thanks,
Greg
... more >>
Do I need to recompile all apps if upgrading to SP1?
Posted by GG at 8/23/2005 12:41:24 PM
We currently run .net version 1.1 with no service packs.
Do we need to recompile all the applications with sp1 and release them
on the machines that will get sp1 or
just install the sp1 on the machines without re-compilation?
Thanks
*** Sent via Developersdex http://www.developersde... more >>
GC collection question...
Posted by Steph. at 8/23/2005 11:23:30 AM
I have an Object " MyEmploye " :
=20
Class MyEmploye
{
private string Name;
private string Surname;
}
=20
Instances of this object are referenced by instances of an ArrayList =
"MyArrayList" . One instance of MyArrayList is referenced by the "Tag"' =
property... more >>
Define assembly folder?
Posted by Mats-Lennart Hansson at 8/23/2005 10:08:44 AM
Hi,
Is there a way to define where the assembly should search for its referenced
assemblies? I have my assemblies in different locations and I don't want to
add them the GAC.
Any help is appreciated!
Thanks,
Mats-Lennart
... more >>
.NET Script Hosting and events
Posted by Tim Wallace at 8/23/2005 9:55:59 AM
Can anyone point to to a good tutorial for providing end users the ability
to write scripts to handle events raised by an application written in .NET
(C# in particular)? I want to allow the users of my software to be able to
write scripts that will perform processing whenever application-spec... more >>
Load and unload Child App Domain Assemblies
Posted by brianbender NO[at]SPAM gmail.com at 8/23/2005 9:25:50 AM
I am trying to load and unload assemblies dynamically and call methods
and properties when loaded into an Appdomain
I can load assemblies all day in the current AppDomain without
references and without interfaces if need be. But try as I may they
will ot unload. I have been working on this pro... more >>
Looking for C#/.NET Internationalization consultant in OR
Posted by Internationalization at 8/23/2005 9:24:45 AM
COMSYS Globalization Practice is looking for a C#/.NET Internationalization
consultant in OR. Can you please contact me if you are interested or else
know someone who would be interested. It will be 4-6 weeks assignment.
Thank you,
Rhea Tanaka
COMSYS Globalization Practice
rtanaka@comsys.... more >>
inherit from TreeNodeCollection
Posted by Dmitriy Kolesnik at 8/23/2005 8:43:33 AM
Hello, All!
I have next problem: I need to override TreeNodeCollection method Add(), but
I know that I can't inherited from TreeNodeCollection.
How I can resolve this problem?
Help me please if you know solution.
Thank You.
__________________
Best regards,
Dmitriy Kolesnik,
SoftS... more >>
EnableViewState problem
Posted by seans at 8/23/2005 7:36:41 AM
Hi, please can someone help with this? I have a dropdown list on an
aspx page bound to a table in an SQL Server database. EnableViewState
is set to true but when I change the entry in the drop down list the
setting doesn't stick and the first item in the list becomes selected.
Is there somethi... more >>
Starting a new Thread vs. ThreadPool
Posted by Lenn at 8/23/2005 7:09:02 AM
Hello,
I have always used a certain design pattern for multithreaded Windows app;
Start new worker thread from UI thread, use events to notify UI threads when
something happens, update UI controls using delegates through .BeginInvoke. I
came across some code samples recently where ThreadPoo... more >>
Problem with Crystal Report
Posted by Victor at 8/23/2005 5:33:29 AM
Hi, i have a simple report with 1 parameter and i want to send it to
the printer without use the crystalreportviewer but it shows me an
exception "Parameter value is needed",maybe the problem can be in the
way to pass it the parameter.
CrystalReport1 cr = null;
try
{
cr = new CrystalRe... more >>
c# aspx webform page with window.open ... help
Posted by trint at 8/23/2005 5:26:42 AM
Ok,
I have tried other forums since window.open is java, but it is in my c#
..net aspx page. I need for the window to be a specific size like this
(and with NO BORDER):
<SCRIPT language=JavaScript>
<!-- Begin
function win() {
msg=window.open("buttontest.htm","","height=20,width=508,left=... more >>
Reentrant (?) Console Application....
Posted by carlbono NO[at]SPAM gmail.com at 8/23/2005 4:46:32 AM
I need a way for my console application to stay running and be able to
be called at any time with some parameters, do it's work, then wait to
be called again, repeat.
Here's the details:
I have a C# engine that's used to run a lot of complex financial
calculations and return a report based ... more >>
iframe problem
Posted by seans at 8/23/2005 2:28:05 AM
Hi, please, can somebody help me with this? I have an iframe on a form.
I need to add "runat=server" to the iframe tag to convert to a HTML
Server control. When I do that I get the error CS1012: "Too many
characters in character literal" when I try to compile the project.
Here's the line in the... more >>
App.config and class libraries
Posted by CodeRazor at 8/23/2005 2:19:03 AM
Hi,
I am building a class library and want to store a connection string in a
configuration file.
I've read around and it appears that this is not possible because "by
design, class libraries don't have their own config file - they read the
config files from the application they are house... more >>
completing a non-blocking socket connect request ?
Posted by yaron at 8/23/2005 2:03:01 AM
Hi ,
- how do i complete the non-blocking connect request when using the select
method on the client side ?
* (or how do i know that the socket is connected, because i read somewhere
that there is bug with Socket.Connected) .
** (because i have a problem, the socket that do the connect ... more >>
Reset Password.....
Posted by Balaji at 8/23/2005 1:44:22 AM
Hi All,
I am trying to change the password of a user in Active
Directory. I tried using
object[] oPassword = new object[] {"<oldPassword>","<newPassword>"};
userEntry.Invoke("ChangePassword",oPassword);
when i tried this i am getting error "InteropServices.COMException'.
Hence i t... more >>
NullReferenceException inside using statement
Posted by Arjen at 8/23/2005 12:00:00 AM
Hi,
Inside my method I'm using the using-statement for data access.
Before that, I create an object of a class. This works fine.
Inside the using-statement I set properties of the class (with the data from
the database).
Getting the data works.
Setting the data doesn't work. It say's:
... more >>
C# - Attributes - Unit Tests Question
Posted by Greg Roberts at 8/23/2005 12:00:00 AM
Hi
I want to place the tests needed in the code using attributes. There seems
to be enough code snippets around
for me to cover this. e.g.
// Test cases, run these here on the function and check the result
[Test, Function=CheckType, Args="-1,3,'flower'", Result=true]
[Test, Function=... more >>
Char... Unicode version (bug?): what about 2.0?
Posted by Dan at 8/23/2005 12:00:00 AM
Hi all, I'd like to submit what it seems to be a bug as for the Unicode
compliance of methods like Char.Is...: as stated by the latest version of
Unicode, codes +03F2 and +03F9 represent Greek lunate sigma, lowercase and
uppercase respectively (c and C). For these codes I get the following
r... more >>
Cloning
Posted by Tom at 8/23/2005 12:00:00 AM
I've a problem. I want to clone an object having a list of other objects
(and so on :/). Do you know any other way than ICloneable.Clone()
implementation for all classes in the way? Help..
... more >>
Win32_ScheduledJob
Posted by Jonas at 8/23/2005 12:00:00 AM
When i am trying to list scheduled jobs via Win32_ScheduledJob wmi class i
only get the job that has been created by wmi, not the jobs added through
the control panel scheduled tasks. Is this a know issue or should i use
something else than WMI?
... more >>
How to create non-visual application in Visual Studio 2003?
Posted by Tomas Machala at 8/23/2005 12:00:00 AM
Hi, how can I create non-visual application in Visual Studio 2003?
Theoretically I could just make windows form invisible but it's not much
elegant. I've also tried to use console application but then, there's
console window displayed even if program doesn't send anything there. The
third wa... more >>
Read binary
Posted by Arjen at 8/23/2005 12:00:00 AM
Hi,
I can read in a file with the binaryreader. But how can I get all the bits
("1" and "0") inside my textbox?
(I now get the number 68)
Thanks!
... more >>
problem with Socket.Available
Posted by Droopy at 8/23/2005 12:00:00 AM
Hi,
I try to implement a reusable socket class to send and receive data.
It seems to work but I have 2 problems :
1) I rely on Socket.Available to detect that the connection is closed (no
more data to expect). Sometimes, Socket.Available returns 0 but the other
end of the connection did n... more >>
Rijndael Decrypt returning escape characters at end of string
Posted by Mantorok at 8/23/2005 12:00:00 AM
Hi
I have a couple of encryption methods but when I call decrypt I get the
string back but with a load \0 escape characters on the end?
Any idea why? It is actually causing problems in some places, here are my
methods:
public static string Encrypt(string input, byte[] key, byte[] iv)
... more >>
Probably simple problem with networking
Posted by Tomas Machala at 8/23/2005 12:00:00 AM
Hi, I'm trying to make an application communicating over TCP/IP. It =
should do only one thing - write received data to console and terminate =
itself when "exit" received. Problem is that if I send some string to =
this application, it'll receive that string and many unwanted "new line" =
chara... more >>
Cannot change DataType of a column once it has data.
Posted by ad at 8/23/2005 12:00:00 AM
I use ado.net to fill a Excel wroksheet into a DataTable.
The data in the Excel wroksheet is digital.
After the data filled into the DataTable, the DataType of each column is set
to
Double, but I want to treat them as string, I use the code to covert them
DataTable dt = ds.Tables0];
... more >>
|