all groups > c# > october 2007 > threads for monday october 29
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
JAVA Fork to C#?
Posted by E2CMonkeyBoy NO[at]SPAM gmail.com at 10/29/2007 11:51:42 PM
Quick Intro: was thumbing through a book on Programming Windows in C#
and was wondering if I shouldnt fork my developement: I've written a
program in windows script, and now a more robust version in Java
(using eclipse). I've hit the wall - in that the UI portions of
eclipse are still manual... more >>
Automatically saving and restoring a form/ webform
Posted by catherine NO[at]SPAM myoddjobs.info at 10/29/2007 11:29:30 PM
Hi, I was wondering if anyone had any ideas / opinions on what the
best way would be to automatically save to and re-populate a form from
a business object would be.
I usually find myself spending a ton of time hooking up my GUI to my
business objects to save the object to the database and the... more >>
Can Somebody Help Me Open One Form From The Other Please
Posted by AshParr NO[at]SPAM gmail.com at 10/29/2007 11:02:33 PM
Hi all,
this may seem like a silly problem to you guys, but i want to be able
to open my 2nd form from my 1st form.
(Im Using Visual C# 2005)
Form Names:
1st form = ticketDispenser
2nd form = signDisplay
How can i open "signDisplay" from my button on the 1st form
"ticketDispenser"?
... more >>
?? Definite Assignment of Structs -- Language Spec Issue ??
Posted by Tom Baxter at 10/29/2007 10:57:12 PM
Hi All,
I was hoping someone could clarify something I read in the C# Language Spec
regarding "Definite Assignment" of structs. This is a very subtle point.
I am referring to ECMA-334, section 12.3:
[quote]
The definite assignment states of instance variable of a struct-type
variable a... more >>
What event is fired
Posted by Martijn Mulder at 10/29/2007 10:39:18 PM
in response to clicking the X in the upper right hand corner of a Form?... more >>
VOID Keyword (VB vs C# Question)
Posted by SMH at 10/29/2007 10:27:38 PM
Hi All,
I am currently making the switch from VB to C#.
I understand that the VOID keyword allows creation of a function which
doesnt require any parameters and doesn't return a value.
Is this then, the equivalentof a SUB in VB?
Thank you.
Simon.
... more >>
using access to a field from a passed object
Posted by Tony Johansson at 10/29/2007 10:12:20 PM
Hello!
Below I have method MostPowerful which is located in class SportsCar.
As you can see the fomel parameter for method MostPowerful is carCompare of
class SportsCar.
Because this method MostPowerful is a member of class SportsCar
can I use the field directly for the passed SportsCar obje... more >>
Access to field from a passed object
Posted by Tony Johansson at 10/29/2007 10:09:48 PM
Hello!
Below I have method MostPowerful which is located in class SportsCar.
As you can see the fomel parameter for method MostPowerful is carCompare of
class SportsCar.
Because this method MostPowerful is a member of class SportsCar
can I use the field directly for the passed SportsCar obj... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
calling Excel Macro from C#
Posted by Vinki at 10/29/2007 9:18:06 PM
Hello Everyone,
I exported a gridview to excel spreadsheet. I want to adjust the column
width of the excel spreadsheet.
Is it possible to create Excel macro from C# to adjust the column width of
the spreadsheet. Below is my code for exporting to excel
string attachment = "attachmen... more >>
Developing generic - wasting time?..
Posted by Bliss at 10/29/2007 9:13:22 PM
I have some problems with my generic.
Part of code:
using System;
using System.Collections.Generic;
using System.Text;
namespace Gnrc
{
public class Gnrc<T>
{
//[some statements]
protected void SomeMethod()
{
T A, B, C;
//[some statements]
C = ... more >>
Access to field from a passed object
Posted by Tony Johansson at 10/29/2007 9:03:20 PM
Hello!
public SportsCar MostPowerful(SportsCar carCompare){
if (carCompare.horsepower > this.horsepower)
return carCompare;
else
return this;
}
... more >>
Cab file compression
Posted by GeoffreyD at 10/29/2007 8:29:11 PM
Hi
Is there a way that I could use the .net framework to extract from and
compress using the legacy cab compression system (without having to buy 3rd
party licenses)? My company uses this type of compression to support older
windows PCs (pre-.net) as we can be sure that the OS is always abl... more >>
Windows 2003 IIS 6.0-Creating local website
Posted by Trouble at 10/29/2007 8:28:30 PM
Basicall I am trying to create a local folder in IIS 6.0 to display
default contents I have put in the C:\inetpub\wwwroot\nocdata
default.asp.
When I go to http://localhost/nocdata I don't get any content I get a
404 error code. Any assitance would be appreciaed.
steps I have taken go websi... more >>
Regex help needed
Posted by Boaz Ben-Porat at 10/29/2007 5:04:40 PM
I need help with a Regular expression to match the following strings:
/debug
/x
-debug
-x
The / or x are at the beginning of the string
TIA
Boaz Ben-Porat
Milestone Systems
... more >>
Is there a C# Book for VS 2005 Express Edition with lots of 'beginner' SQL database integration examples?
Posted by Matt at 10/29/2007 4:23:38 PM
I've coded using VBA on top of MS Excel for the last 2 years (40 hours a
week). I've stepped up to VS C# 2005 Express / SQL Server 2005 Express a
couple months ago, but the videos that I downloaded along with the software
didnt really give me the kinds of examples I think I need to write the t... more >>
I set my database to trustworthy and deployed this clr stored proc as unsafe ok but when i run this it returns 1 each time. as if ival keeps getting s
Posted by DR at 10/29/2007 4:17:48 PM
I set my database to trustworthy and deployed this clr stored proc as unsafe
ok but when i run this it returns 1 each time. as if ival keeps getting set
back to 0 each time i call this clr stored proc. How to fix so that ival
keeps its current value each time i execute this from sql server?
... more >>
C# 3.0 questions
Posted by Fred Mellender at 10/29/2007 4:00:26 PM
1. What are the additions to the class library that are not associated
with new language features, or "Foundation" classes. E.G. I have heard
a rumor that a "BigNum" class, or infinite precision arithmetic would be
supported.
2. Are there any (runtime) performance improvements promis... more >>
opional Parameter
Posted by Sriman at 10/29/2007 3:08:02 PM
We are migrating the vb6 project to C#.Net 2005.
In this migration process we are facing one big issue with optional
parameter. Actually in C#.Net there is not optional parameter concept . For
that C# introduced 2 concepts like 1)overloading 2)params .
But problem is
1) I am not able to see ... more >>
About EventLog.SourceExist
Posted by TonyJ at 10/29/2007 2:44:53 PM
Hello!
I just wonder what does it mean when this statement return true
EventLog.SourceExists("MySource")
I have read in .NET framework but doesn't quite understand what they mean.
They say return true if the given event source(here MySource) exist in the
computer's registry.
What is a e... more >>
Tab Control - how to move from one tab to anotherone
Posted by Mike at 10/29/2007 2:04:21 PM
Hi,
How I can, on btnClick move from one tab to another, for e.g.
from tab1 go to tab2 and make tab1 disabled.
Actually, I am trying to do some kind of wizard.
Thanks for help.
... more >>
I heard there is some trick to referencing statics in C# CLR stored procedure without having to mark the assembly as unsafe. Does anyone know this? Th
Posted by DR at 10/29/2007 1:48:57 PM
I heard there is some trick to referencing statics in C# CLR stored
procedure without having to mark the assembly as unsafe. Does anyone know
this? This is usefull as the case of needing a little static shared variable
here and there without having to compromise safety in the Sql Server 2005. ... more >>
Conditionally serialize a member
Posted by Joe at 10/29/2007 1:40:10 PM
I have a member of my class which I only want to serialize in a flag is
true. So in a way it would be ideal if I could do something like this:
if (flag == true)
NonSerializableAttrbiute(mymember);
Is there a simple way to do this?
Thanks,
Joe
... more >>
Measuring exact size of a string
Posted by EgregioSignore at 10/29/2007 12:47:20 PM
Hi all, hope not to be OT here.
I want to write a function that gets the following parameters:
a string "s"
a font "f"
and returns the EXACT width and height of the font.
I tried first with MeasureString but it adds me extra space;
then I tried with MeasureCharacterRanges but I didn't ... more >>
Multiple Undetermined Number of Variables
Posted by Jessee Holmes at 10/29/2007 12:43:01 PM
I'm not sure I'm going about this the right away, and I've attempted to
search every online topic that I can which makes me think this is not
possible or I'm simple coding this incorrectly.
What I'd like to do is this:
1) See hot many COM ports are on a computer: foreach (string port in
... more >>
Generics Dictionary - modify ContainsKey and Key Lookup
Posted by sippyuconn at 10/29/2007 12:29:01 PM
Hi
I have a class that inherits from Generics Dictionary
The string that is used for the key is passed thru-out my pgm and sometimes
it has modifiers added to the key string that are used in the system.
The problem is now I have to strip the modifer to lookup in the Dictionary
and I have t... more >>
CLR Shared Memory, C# DLL load
Posted by DR at 10/29/2007 12:28:49 PM
CLR Shared Memory, C# DLL load
How to share memory between CLR calls to the same C# dll? Is there some way
to know in the C# dll when the dll is loaded? Is the dll reloaded each tiem
a method is called from SQL Server or is the DLL loaded once when the C# dll
is added to sql server with CRE... more >>
Generic Naming Convention // EnterpriseLibrary way of doing things?
Posted by sloan at 10/29/2007 11:07:43 AM
Is anyone else using the Microsoft Practices EnterpriseLibrary conventions
for naming FILES (.cs) as far as a non-generic and generic implementation is
concerned?
Anyone have an alternative?
I brought this up a while back, but with this new thing I just saw, thought
I'd ask again.
S... more >>
NULL Value
Posted by BD at 10/29/2007 10:18:36 AM
Developing C# app using VS 05 to connect to remote SQL Server 05. One
form has a textbox bound to datetime column. When I delete the date
in the textbox, app locks. I was using Access 2003 to hit the
database and this did not cause a problem. Therefore, I know it can
be done but have been un... more >>
SetCapture not caputring mouse events for me
Posted by MrNobody at 10/29/2007 9:51:03 AM
I mught have misunderstood how SetCapture works, but I call it passing my
form's Handle and I am not noticing any difference in what mouse events my
app is picking up. It is only limited to mouse events within my control,
which is the same way it worked with just setting a mouse event handler ... more >>
coding style question
Posted by DBC User at 10/29/2007 9:07:15 AM
I have the following code which does
1. Make sure the array of numbers are in decending order starting from
startNumber.
2. Make sure the total numbers in the array is equal to the
totalNumbers passed to the method.
Following code works, but for me it looks like there must be a better
way of... more >>
Generic way of writing this enum code?
Posted by codefragment NO[at]SPAM googlemail.com at 10/29/2007 7:56:55 AM
Hi
The methods below are identical except they take as arguments
different enum types.
There must be a better way of writing this?
ta
public string ConcatValues(params EnumType1 [] types)
{
StringBuilder sb = new StringBuilder();
bool first = true;
foreach (EnumType1 ty... more >>
How to get the current date/time stamp from a network computer?
Posted by trytobreak NO[at]SPAM gmail.com at 10/29/2007 7:47:27 AM
Hi All,
I am a network administrator in a fairly large software company and I
would like to write myself a small utility, which would connect (one
by one) to all machines on the network and get their current date and
time stamps.
This is mostly because of coming DST changes and having hundr... more >>
How to perform mouse/keyboard events for user? Like macro tools do
Posted by MrNobody at 10/29/2007 7:07:02 AM
I want to do something similar to what some macro tools do, where they
perform mouse/keyboard events on the user's machine , while intercepting the
user's current keyboard/mouse events so that it does not interfere (unless
they press a certain hotkey to deactivate it). How would I go about doi... more >>
DataSet.Delete does not change number of rows
Posted by dami.gupta NO[at]SPAM gmail.com at 10/29/2007 6:20:10 AM
Hi,
I have a DataSet with 4 rows. I use .Delete command to delete a row
from it. I use .Count to get the number of remaining rows - still get
4, and if I try to access the rows, I get a
'DeletedRowInaccesibleException' on it. Has anyone seen this kind of
behaviour?
Thanks a lot in advance
DG
... more >>
trouble getting ref object parameters while calling COM object with C#
Posted by rocketfire97 NO[at]SPAM gmail.com at 10/29/2007 1:36:53 AM
I'm trying to call a COM object using C# but having no luck getting
values back for passed in ref objects.
I've tried the same call using VB.NET and can get data back. How would
I implement the following in C#
This is the method I am calling, which populates ref paramters with
results.
S... more >>
Copy from datagridview and paste to second datagridview
Posted by ing.Zeco at 10/29/2007 1:17:39 AM
I need usage possibility when I double click on any row in datagridview,
that row must be copied in second datagridview.
Any good link about that?!... more >>
MultiLine TextBox - KeyPress Question
Posted by Gidi at 10/29/2007 1:13:00 AM
Hi,
In multiLine textBox, enter moves to the next line, how can i overwrite it,
so enter will move to the next control and ctrl + enter will move to the next
line?
Thanks,
Gidi.... more >>
sync main windows with solution explorer
Posted by Ryan Liu at 10/29/2007 12:00:00 AM
I was supervised that Vista is so difficult to use(e.g. search), lost so
many good features (e.g. go upper level folder) and so unstable(even MS own
programs will hang up, back to Windows 95/98 era). Now I am surprised again
that VS 2005 is lacking of some basic features VS 2003 has. (BTW, I w... more >>
About window service
Posted by TonyJ at 10/29/2007 12:00:00 AM
Hello!
Below I have the two methods OnStart and Start that are relevant to my
question.
If I do net start TimeServerService I will see something like Service
TimeServerService starting .........
It wasn't possible to start the service TimeServerService
The reason for this it that OnStart doe... more >>
Object serialization
Posted by Alan T at 10/29/2007 12:00:00 AM
What is object serialization?
Thanks
... more >>
|