all groups > c# > november 2006 > threads for monday november 20
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
C#.Net in VS8
Posted by pack at 11/20/2006 11:23:03 PM
Where is a Modules window of list of modules in C#.Net in VS8?
How to enable and disable Browse info in C#.Net?
... more >>
scribble
Posted by Bill Q at 11/20/2006 10:44:28 PM
Hello,
I am trying to learn vsc#. I downloaded the sample project for scribble
and was wondering if there is a tutorial to read and walk me through the
code. If there is if I could get some hint as to where it is located I
would really appreciate it.
thanks
bill... more >>
Changing ProgressBar in a seperate Thread
Posted by Martin_Pöpping at 11/20/2006 10:13:50 PM
Hello,
I want to change a ProgressBar in a separate Thread.
My current code is the following:
private void changeProgressBarThread()
{
changeProgressBar();
}
private void changeProgressBar()
{
toolStripProgressBar1.Maximum = 100;
for (int i = 0; i <= 100; i++)
... more >>
Howto use NotifyIcon single click to bring form in front?
Posted by Marcel Brekelmans at 11/20/2006 8:59:11 PM
Hello,
I have an application with a notifyIcon. When my application's main form is
hidden by some other window I would like to bring it in front by
single-clicking the NotifyIcon. However, I can't get it done. In the Click
event I've used all sorts of methods:
this.SetTopLevel(true);
th... more >>
Accessing Data between threads
Posted by Jon Slaughter at 11/20/2006 8:04:34 PM
What concepts do I have to know to access data between two threads safely?
Right now I'm using a delegate method and Invoke to call a function in the
other thread that handles the data. This method seems a little bulky and I
read that it can have problems as it stalls.
for example, heres h... more >>
listview can't work in console mode
Posted by justdo NO[at]SPAM alumni.ice.ntnu.edu.tw at 11/20/2006 6:11:02 PM
Hi, I am writing the unit test for our application. It use "listview
component" in some functions. The following code work fine and get c =
1 in Windows Application mode, but fail in unit test which get c = 0 :
listView2.Items.Add("xxx");
listView2.Items[0].Selected = t... more >>
Help! Need to sorted collection accessible by key
Posted by Burt at 11/20/2006 6:08:42 PM
I need to create a collection of classes (or structures) can be
accessed by a string key, eg MyColl("ShortName5").Name for class with
key ShortName5. But it also has to be sorted by a second ordering
field.
Hashtable offers access by key, but is not sorted. Arraylist is sorted
(the fields wil... more >>
a .dll works on 32-bit machine but not 64-bit machine
Posted by erxuan at 11/20/2006 6:04:13 PM
Hi, I'm calling zlib.dll to compress/uncompress file in my C# program.
The problem is it works very well on my 32-bit machine, but on another
64-bit machine, it throw an exception says "An attempt was made to load
a program with an incorrect format. <Exception from HRESULT:
0x8007000B>"
when un... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Integer from a decimal.
Posted by ChrisM at 11/20/2006 6:02:38 PM
Hi Guys,
I'm looking for a function that will return the lowest integer that is
greater than or equal to a decimal number.
eg.
3.1(decimal) returns 4(integer)
3.9(decimal) returns 4(integer)
4.0(decimal) returns 4(integer)
I guess I can do somthing with Math.Ceiling, but that seems t... more >>
Assigning Reportviewer datasource at runtime?
Posted by Brett Romero at 11/20/2006 5:56:14 PM
I have a winform with a reportviewer object on it. I'm trying to get
data from a datatable to display on the report. myDatatTable is
created and filled at runtime. I don't get any errors but only the
literal below displays in the report.
Microsoft.Reporting.WinForms.ReportDataSource rds = n... more >>
A question about visual studio team suite
Posted by Maxwell2006 at 11/20/2006 5:12:05 PM
Hi,
Sorry about asking this question here, but I cannot fins the right newsgroup
for visual studio team suite related questions.
I have a performance test result with all perf. Counter values and graphs.
Is there any way that I extract a detail report in excels and work based o... more >>
Q: Assign a component in a cell in DataGridView, possible?
Posted by Martin Arvidsson at 11/20/2006 5:09:48 PM
Hi!
I have created a ComboBox, with special features. When I use a DataGridView
i want to use my ComboBox instead of the built in combobox. How can i do
this?
Regards
Martin
... more >>
User Interface Design - Books?
Posted by Spam Catcher at 11/20/2006 4:41:36 PM
Hi all,
Can anyone recommend any books for User Interface Engineer for Windows
Forms application?
At the company I work at, we've gone GUI component happy. Basically GUI
tools (i.e. Infragistics) are placed into the product for the sake of a
pretty GUI. In the end, I find the application... more >>
C# & Word Mail Merge Problems
Posted by Bishman at 11/20/2006 4:39:38 PM
Hi,
I have some issues with the code below.
These are:
ONE: In code I open an existing document and 'attach' the Mail Merge data
source, but the data is not poulating the merge fields until I manually
press 'View Merged Data' button in Word. The data then appears as expected.
If I ... more >>
Sql Server Reporting Services 05 in C# Express 05
Posted by iansinke at 11/20/2006 4:33:02 PM
Hi, I have Visual C# 2005 Express Edition and SQL Server 2005 Express
Edition. I downloaded and installed the Advanced Services for SQL Server 05,
and the Toolkit for SQL Server 05. I installed just about everything, so I
have Management Studio, Report Server, and Business Intelligence Develop... more >>
Property Bag Question
Posted by Bree at 11/20/2006 3:44:50 PM
I am looking for a *very simple* (newbie C# person here) of how to use
a PropertyBag. I have a method that calls a web service to retrieve
customer data, based on a customer ID. I want to be able to persist
this data in memory, in order to be able to reduce the number of trips
out to the sevice.... more >>
Ramifications of No Namespace
Posted by Jonathan Wood at 11/20/2006 3:05:57 PM
Greetings,
Normally, when I create C# modules, the class appears within a namespace.
However, I've just created a Web service and new classes have no namespace.
Can anyone tell me why this is? And what the ramifications are of having or
not having classes defined within a namespace?
Th... more >>
Stop debugger dialogue in Process object
Posted by Jon Davis at 11/20/2006 2:56:52 PM
I'm hosting a .NET console application in a .NET Windows Service using
System.Diagnostics.Process. How do I block the debugger dialogue from
appearing?
Thanks,
Jon
... more >>
Borderless Button
Posted by Martijn Mulder at 11/20/2006 2:50:08 PM
I want my buttons to look like and behave like the 'Tools' in, for example,
MSPaint. The border of the button is invisible, the image just 'hangs' in
the gray background. When the mouse pointer is moved over the button, the
border shows. Clicking the button first indents the picture and on rel... more >>
Add ActiveDirectory user to Global Security Group
Posted by killbill at 11/20/2006 2:06:52 PM
Hi All,
I am struggling with a problem, i want to add ActiveDirectory user to
Global Security Group using C# and DirectoryServices. Any suggestiion
???
Thanks.
... more >>
Typed dataset
Posted by John at 11/20/2006 1:21:02 PM
Hi,
I am developing a windows app using C# 2005. This app uses SQL Server or
Oracle database depending on the what the user is using.
Can I create one typed dataset and use it for SQL Server and Oracle?
Probably not.
How can I structure my data access layer so the app will be switching ea... more >>
TCP/IP connection, to copy a file
Posted by Jason at 11/20/2006 1:13:10 PM
I've got twp PC's that are connected via xover cable.
I want to get a file from one pc, and put a copy of it on the other. How
can I accomplish this? I assume it would be done over a TCP/IP connection.
Anyone have any ideas, or examples of how to do that.
... more >>
Changing Route Table
Posted by cyberco at 11/20/2006 12:58:01 PM
I've posted this question in
'microsoft.public.dotnet.framework.compactframework' as well, but
despite the great help I still haven't solved the problem. So before
going the C++ route I would like to see if anybody in this group may
have the answer.
What I'm trying to do is change the route t... more >>
integrating with active directory
Posted by Phil Townsend at 11/20/2006 12:13:00 PM
I need to create a web form for use on our company intranet. When the
form loads, it needs to grab Active Directory user info from the machine
which the user is logged on. Can anybody point me in the right
direction? Thanks!!
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Simple question
Posted by D. Yates at 11/20/2006 10:41:48 AM
Hi all,
Is there a place in the .NET framework where simple time constants are
defined?
For example:
How many days are there in a week? Hours in a day? Minutes in an hour?
Seconds in a minute?
None of these are going to change, so they are obviously constants. Now I
can define my ... more >>
ClickOnce program fails to run properly after update
Posted by Michael D. Reed at 11/20/2006 10:31:02 AM
I am using ClickOnce to distribute a program. It works well except for one
detail. When a new version is installed, the program does not initialize
properly immediately after the update. The sequence is the user starts the
program, is informed a new version is ready, installs it, when it is... more >>
Win32 API Help
Posted by Vai2000 at 11/20/2006 10:14:49 AM
Hi All, Does any1 know which Win32 API is called when you hit the
Start/ShutDown button on WinXP/2000? Basically I am looking for the API
which grays the entire background and highlights the shutdown message box on
the fore ground
TIA
... more >>
adding javascript menu
Posted by trint at 11/20/2006 9:14:22 AM
How can I add javascript to my code view of my default.aspx file and
get my meny to show?
Here is the code I want to display (it's obviously a menu):
<!-- menu script itself. you should not modify this file -->
<script language="JavaScript" src="menu.js"></script>
<!-- items structure. menu h... more >>
Deep copy ArrayList problem.
Posted by Steven Blair at 11/20/2006 8:21:40 AM
I need to perform a Deep Copy on an ArrayList.
I wrote a small sample app to prove this could be done:
ArrayList a = new ArrayList();
ArrayList b = new ArrayList();
a.Add("Hello");
b = (ArrayList) a.Clone();
a[0] = "World";
This appears to work fine. However, when I try it in my app... more >>
Treenode Images
Posted by WhiteWizard at 11/20/2006 8:18:01 AM
Anyone out there today? Happy Thanksgiving!
I am writing a Window app that has a TreeView control. I am creating the
nodes dynamically from an XML file, and I have some icon images that I have
associated with each of the "top" nodes. The users, after some usability
testing, have decided ... more >>
Text won't change back to Regular from Bold
Posted by fidtz NO[at]SPAM clara.co.uk at 11/20/2006 7:27:20 AM
Sorry for asking here, but I don't know enough dotnet or Windows
programming yet to be very good at googling for answers. OTOH, this is
the first question I haven't be able to resolve myself, the
documentations is excellent.
This code looks to me like it should swap the bold highlight around,
... more >>
Cannot install .NET framework 1.1
Posted by Clayton at 11/20/2006 7:27:16 AM
Hi ppl,
I've got a problem when trying to install the .net framework 1.1!
Recently I formatted my pc. I already had .net 1.1 + VS2003 installed.
Now I downloaded the SDK from microsoft site and when I run the
installer, an error is being prompted in the last few secs of the
installation that ... more >>
Opinions Please - Properties and Constructors
Posted by John F at 11/20/2006 6:40:01 AM
Hello All,
Is it better to pass 'data' into a class object through a constructor and
then set it as a property internally in that object or is it ok to
instantiate a class object with no parameters and then attach 'data' to the
class object by merely setting a property?
The ultimate goal... more >>
Window Form, Panel, can't set ZOrder at run time/design time
Posted by Adil Akram at 11/20/2006 5:06:01 AM
I'm using VS 2005, .net 2.0 for a desktop application (Window Form app).
I can't set ZOrder of Panel control neither at design time by toolbar/menu
command "Bring to Front"/"Sent to Back" nor at run time by calling
BringToFront method of panel. And Panel control doesn't support SetTopLevel
... more >>
How to display the VS.NET Add/Modify Connection dialog at runtime
Posted by Polaris431 at 11/20/2006 4:06:45 AM
An article is available on how to display the VS.NET 2005 Add/Modify
Connection dialog at runtime. The article shows how you can include
this dialog in your applications to allow users to establish a
connection to any data source and data provider and create the
connection string at runtime. The... more >>
dataform wizard in visual studio 2003 and sql server 2000 database
Posted by Ralph at 11/20/2006 3:55:50 AM
I am trying out the dataform wizard in visual studio using a sql server
2003 database.
It seems to want to create ole db adapters and connections and
commands.
How do I make it use sql commands adapters and connections?
This wizard could save time, however would prefer it used sqlconnection
co... more >>
clickonce secure deployment
Posted by jez123456 at 11/20/2006 1:36:02 AM
Hi Experts
I've been running a couple of ClickOnce tests deploying a simple C#
application which uses the NorthWind Access database.
When I publish the application to an un-protected web server folder,
everything works as I expect.
I need to restrict who has access to download the appli... more >>
How to get the XML path of an XmlNode?
Posted by Sharon at 11/20/2006 1:02:01 AM
How can I get the full XML path (as string) of a specific XmlNode ?
--
Thanks
Sharon... more >>
String builder
Posted by simonZ at 11/20/2006 12:00:00 AM
I have Function with string parameteres:
public string newLine(String string1,String string2,String string3){
StringBuilder webLine = new StringBuilder();
webLine.Append("<tD nowrap>" + string1 + "</td><td nowrap>" +
formatR(string2, 2) + "</tD><td nowrap>" + string3 + "</td><td>")
... more >>
Creating a type from a generic argument using Reflection?
Posted by Ympostor at 11/20/2006 12:00:00 AM
Why can't I do this (it gives a syntactic error):?
foreach (System.Reflection.PropertyInfo oProp in
oObject.GetType().GetProperties())
{
if ((oProp.PropertyType.IsGenericType) &&
(oProp.PropertyType.GetGenericTypeDefinition() ==
(typeof(IList<>))))
{... more >>
I need a bit inspiration!
Posted by Jeff at 11/20/2006 12:00:00 AM
Hey
..NET 2.0
I'm about to start learning C# 2.0. I want to develop an C# 2.0 application
which I can use to impress my employer. I think it's much more fun to
program on something I find inspiring... I've spent some hours thinking on
what to program... but all which comes to me are acco... more >>
|