all groups > c# > november 2003 > threads for friday november 21
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
Reflector issue
Posted by Kerry Sanders at 11/21/2003 11:15:58 PM
I opened up my assembly using Lutz Roeder's .NET Reflector. I made sure I was
using the latest version, which is v3.4.3.0
When I open the assembly, I get a message saying that a particular method
(GetColumns()) in my collection class does not have an implementation. Well,
the method is there... more >>
Why don't IE become a thin .Net VM?
Posted by feng at 11/21/2003 10:43:17 PM
float bug or bad implementation
Posted by Kubik at 11/21/2003 9:56:15 PM
Hi!
Let's see, we got:
float var=4.6f; //as we know 414/4.6 shoud be equal to 90
but Math.Ceiling(414/var) gives us 91
but (414/var).ToString() prints '90'.
And when we convert:
((double)(414/var)).ToString() we got '90,0000018658846'
I know how the floats are represented in mem... more >>
mouse pointer applciation
Posted by indexnode NO[at]SPAM yahoo.com at 11/21/2003 9:50:22 PM
I want the mouse to move to a desired location based on point.
how can i move it programatically without user interaction.
(i need it as part of an whiteboard application)
kartik... more >>
Can I use C# to build ActiveX control?
Posted by seaweed at 11/21/2003 8:47:56 PM
Hi, all.
I am a beginner. If C# can not be used to ActiveX control, How can I do?
Thank you in advance.
... more >>
hyphen in regular expression?
Posted by Henrik Dahl at 11/21/2003 7:47:45 PM
Hello!
The regular expression [a-c] matches on a, b or c. How to put a hyphen
itself as either a or c, i.e. something like [--c] (from hyphen to c)?
Best regards,
Henrik Dahl
... more >>
newb question about strings
Posted by Blue Man at 11/21/2003 7:31:42 PM
hello
I am writing an error handling within different classes in asp.net. the
error class reports the Exception E's string to the database.
but it cuts big strings, if i just display the error it is ok , but when i
send it to function to store it in database just a little part of error
string a... more >>
Assembly key file vs. key NAME?
Posted by Jon Davis at 11/21/2003 6:39:05 PM
I'm strong-naming my nice big project now, never done this before...
I understand (I think) that for creating a strong name key file, the
assembly key file would be @"\..\..\myAssembly.snk"
What's the key NAME all about?
And why does the AssemblyInfo file have
[assembly: AssemblyDelaySi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
CVS plugins that work with sourceforge
Posted by Greg Merideth at 11/21/2003 6:25:06 PM
I have a project up on sourceforge and I've tried a few plugins to
visual studio (2002) and none of them work and have caused visual studio
to crash when I try to initiate a CVS connection.
Does anyone know of any "working" CVS plugins to visual studio that are
proven to work with sourcefor... more >>
saving data from dataset to an empty table
Posted by 2003et at 11/21/2003 6:05:45 PM
How to save data from a created dataset to an empty sqlserver table? tables
have identically the same schema.
Thanks,
... more >>
ArrayList.RemoveAt(i)
Posted by Alex Ting at 11/21/2003 5:23:14 PM
Hi All,
I've done the same things for another array list like resetting the
datasource and its working fine but this time for a separate case i still
get the same error "index out of range"
And like before, the arraylist that is being binded is deleting correctly
from 4 items down to 3 etc. ... more >>
Windows Service monitoring a Database table ?
Posted by Sylesh Nair at 11/21/2003 4:57:15 PM
could anyone give me a possible solution for a Windows Service (in C#)
listening to a table in a database for insertion or updation.
thanks
... more >>
Designer: mysterious behavior with form constructers and static methods
Posted by Sebastian Bargmann at 11/21/2003 4:45:15 PM
Hi,
[C# / VS2003]
I've run into a weird problem with the form designer. I have three classes:
a messagebox class and two forms (Base and Derived which is derived from
Base):
(note: only relevant code below)
<code>
public class MyMsg
{
[DllImport("user32.dll", EntryPoint="Mes... more >>
What is the current preferred way to save user preferences in dotnet?
Posted by Mountain Bikn' Guy at 11/21/2003 4:28:26 PM
What is the current preferred way to save user preferences in dotnet? Is the
registry the right place to do this? Can anyone recommend a good article (or
book) for this topic? Thanks.
... more >>
Console "Pause"
Posted by Kerwin Cabrera at 11/21/2003 4:26:10 PM
I am writing a console application and I would like to put a "Press any key..." message once the program is done executing. Currently, when it executes it returns to the prompt. I have tried console.read and console.readline but they both require an <Enter> key to be hit. Any suggestions
Thanks... more >>
String manipulation question.
Posted by Ivan Demkovitch at 11/21/2003 4:15:12 PM
Hi!
I have a string like:
"partly cloudy and warm. high around 70. south wind 10 to 15 mph."
I want to make 1st char upper case and every char after ". " in uppercase as
well.
What would be the easiest way? (I know how to do it char by char :-) )
TIA
... more >>
Remove the application icon from the alt-tab list.
Posted by ODB at 11/21/2003 4:07:20 PM
Hi
I have a small application with a notifying icon, in the task bar, i have
removed the normal icon from the taskbar, but now i need to remove the Alt-
Tab menu icon, can you tell me what proberty i have to set on a windows
form to remove that icon, Thanks¨
ODB... more >>
Event handling question in C#
Posted by Marinos Christoforou at 11/21/2003 3:47:57 PM
Sorry if this has been asked before but as an inexperienced wanna-be C#
programmer I wondering how to code classes to help build a standard Windows
UI.
For example to build a common toolbar. I would call a method from the class
in the load event of my varioius windows forms, to create the tool... more >>
CLR version
Posted by Hayato Iriumi at 11/21/2003 3:45:34 PM
Is there also a way to detect on which CLR the code is currently being
executed?
... more >>
Shortcut/Accelerator Key Problem
Posted by brhoades NO[at]SPAM msn.com at 11/21/2003 3:38:48 PM
I have created an Outlook style bar in my C# application and have
associated accelerator keys to my group/icon buttons by using the &
key and setting UseMnemonic as appropriate. The problem is that the
buttons are being selected even when I do not press the Alt key.
Simply pressing the shortcut ... more >>
Interface Properties with Custom Attributes
Posted by Microsoft at 11/21/2003 3:37:46 PM
Hello there,
I have following situation , how can I solve this puzzle in
C#.
I have interface called IVendor with some custom attributes applied to it
interface IVendor
{
[LengthValidator("Vendor
Name",FieldLength.Vendor),RequiredValidator("Vendor Name")]
string N... more >>
Hook menu item event
Posted by BC at 11/21/2003 3:19:17 PM
Hello,
I successfully display an add-in menu. However,
when I try to hook the message item to the event
handler, I receive this compiler error message:
(291): Method 'MyAddIn.Connect.MenuItem_Click
(Office.CommandBarButton, ref bool)' does not match
delegate 'void
Microsoft.Office.Core.... more >>
Convert.ToDouble() problem
Posted by discussion NO[at]SPAM discussion.microsoft.com at 11/21/2003 3:14:29 PM
Hey
I am calling Convert.ToDouble(someString);
But this double can have to ways or representing doubles dependant on the
locale, it can be 1.0 or 1,0
Is there a way to make Convert.ToDouble(..) accept both comma and period
notations for representing numbers?
thanks
... more >>
How to create rubberband effect when drawing line?
Posted by Anand Ganesh at 11/21/2003 3:03:46 PM
Hi All,
In my application I am allowing the user to draw a line. But when the user
clicks the start point and starts moving the mouse there is a series of line
generated. When the mouse is up the final line is drawn.
How to avoid the series of lines being generated during mouse move event?
... more >>
How to get .NET Framework Folder
Posted by Hayato Iriumi at 11/21/2003 2:37:53 PM
Hello, folks. Good afternoon.
I'm trying to figure out a way to get CLR folder (e.g.
C:\Windows\Microsoft.NET\Framework\v1.1.4322) for the application that is
currently running. I took a look at System.Environment.GetSpecialFolder()
method, but couldn't find something I could use.
Any idea?
... more >>
What can I do in Visual C# Standard
Posted by Mortel at 11/21/2003 2:23:59 PM
Hi,
What I find in this product ? I want to buy this tool but I'm afraid that
it's simple tool to do good application.
I know that I can read about that on the internet but I want to hear what
you think about that. I know that vesion Standard is as good as Professional
or Architect but I don't ... more >>
get object from name
Posted by Aamir Ghanchi at 11/21/2003 2:13:59 PM
How can I get reference to a control object on a form by
passing it's name. something like
TextBox txt = SomeClass.SomeGetObjectMethod
("MyTextBoxName");
wheras SomeClass and SomeGetObjectMethod is what I am
looking for.
Thanks in advance.
Aamir... more >>
Comm Object
Posted by Lou at 11/21/2003 1:44:49 PM
Here is My Code in VB, How do I translate this to C#
Dim objDeko As New RocketEngine.Application
Dim myScene As RocketEngine.Scene
Set myScene = objDeko.Scenes.Add("D:\1.dkc")
... more >>
How to get Where my Exe is installed
Posted by fireInWinter at 11/21/2003 1:37:08 PM
Hi,My program has a xml config file ,I put it along with my exe file ,and
how can I get the path so that I can use XmlReader to get config infomation.
and now I use Application.StartupPath.ToString();
but it seems not always OK.
... more >>
Struct return a value
Posted by nvivo NO[at]SPAM mandic.com.br at 11/21/2003 1:27:02 PM
I have a struct, and i always use it like "myStruct.Contents" to get
it's value... I was wondering if I can make a struct to behave like a
value.
Something like
struct MyStruct {
private int number;
get {
return number;
}
set {
number = value;
}
}
... more >>
Dispose of COM
Posted by andrew lowe at 11/21/2003 1:26:02 PM
Hi,
I have a web service that calls a COM object written in Uniface and
unfortunatley we don't have the opportunity to rewrite this component. This
COM object is not thread safe, in fact when two threads access the object it
will fail spectactularly! This is fine, I have created a class that o... more >>
Why is this Microsoft UIP Application Block code valid?
Posted by BillyM at 11/21/2003 1:25:50 PM
The sample code that comes with a StoreController class with the following
method definition:
public void ResumeShopping()
{
State.NavigateValue = "resume";
Navigate();
}
As you can see, the above is not a static method. However, it is consumed in
the Cart class as follows:
pr... more >>
Blank DataGrid
Posted by Eric at 11/21/2003 1:11:07 PM
Is it possible to start with a blank datagrid and enter the information like an excel spread sheet? This doesn't seem to be the case. If it doesn't work that way, is there another control I can use other than inserting a spread sheet?... more >>
Question regarding C#
Posted by Franck Sodogandji at 11/21/2003 12:41:10 PM
Hi
Please Could you tell me what make these 2 pieces of code behave differently in visual studio .NET
#
tcPacket.Data = new byte[1]
tcPacket.Data[0] = GET_CURRENT_MODE
#
tcPacket.Data = new byte[1]{GET_CURRENT_MODE}
During execution of the code, in case#1 tcPacket.Data allways point to ... more >>
COM+
Posted by p988 at 11/21/2003 12:20:14 PM
I'd like to ask some basic questions about COM+ technology. Hope someone
can give me some brief answers or some links to related articles.
What is COM+?
What makes it different from COM technologies?
What kinds of problems it solve? Or when to use COM instead of COM+?
Can C# be used t... more >>
Regular Expression
Posted by Seth Juarez at 11/21/2003 12:16:56 PM
I wanted to know how to use regular expressions to pull out values or
strings knowing what set of strings are before and after?
Seth Juarez
... more >>
Deserializing in a different assembly... how to?
Posted by Carl Mercier at 11/21/2003 11:40:05 AM
Hi!
I have 2 different applications/assembly. The first one creates an
object and serializes it to a textfile on disk.
The second one has the the exact same class (copied/pasted). It reads
the file that is on disk and attempts to deserialize it and create a new
object.
The process wor... more >>
Please help!!
Posted by Catherine Jones at 11/21/2003 11:02:46 AM
Hi all,
We are into the development of an application in C#. In one of the module we
are using RichEdit control as text editor. This text editor is resposible
for highlighting certain keywords. After parsing the text we are using the
following methods for setting the color of the text.
Rich... more >>
Please help!!
Posted by Catherine Jones at 11/21/2003 11:02:31 AM
Hi all,
We are into the development of an application in C#. In one of the module we
are using RichEdit control as text editor. This text editor is resposible
for highlighting certain keywords. After parsing the text we are using the
following methods for setting the color of the text.
Rich... more >>
Network Serialization
Posted by Ray Mitchell at 11/21/2003 10:53:22 AM
I'm trying to do serialization of an object across a
network. I'm getting an error when the client runs that
says: "Cannot find the assembly MyServer,
Version=1.0.1420.18327, Culture=neutral,
PublicKeyToken=null.
at
System.Runtime.Serialization.Formatters.Binary.BinaryAssemb
lyInfo.G... more >>
Exceptions are slow - is there a better way to test for valid objects?
Posted by David Berman at 11/21/2003 10:52:38 AM
#1 - Is it just me or is catching an exception a very slooow thing?
#2 - Sometimes using certain API's you don't know if you have a valid
object or not, at least, I don't know how to test it. Sometimes for
example I'll do something like this:
if (excel_range.value2 != null)
DoSomet... more >>
Sorting CheckBoxes
Posted by NotYetaNurd at 11/21/2003 9:56:27 AM
Hi,
I have a panel under which i have lot of checkboxes added during
runtime...which can have three values for priority(low,high,medium) i have
set docking = top ; now my problem is i have to sort these checkboxes
according to their priority ... any optimal way to do it...
Regards,
....
... more >>
How to embed icons in a resource?
Posted by Morten Wennevik at 11/21/2003 9:43:09 AM
My application has a sysTrayIcon loaded on startup with Icon1.ico =
(Embedded resource).
When I pause this application I want sysTrayIcon to show this by swappin=
g =
the icon with a greyed out version, but I don't know how to get the =
object, or if the object is embedded at all.
At l... more >>
services and console apps...
Posted by Daniel Bass at 11/21/2003 9:35:24 AM
Forgive me if this is in the wrong place, I couldn't find a suitable .net
services newsgroup to post in.
I read in services that they are designed to have no UI, but I'd like to
create one that can be run from the command line, and in doing so would act
as a console application for debugging p... more >>
Code for images
Posted by johnmark1515 NO[at]SPAM yahoo.com at 11/21/2003 8:52:32 AM
I am writing a web based C# application that will allow users to post
images files to the server and also view them (like a photo album).
The back end database is Access.
If you have any good code references, please let me know.
Thanks.... more >>
Debugging Problem
Posted by John at 11/21/2003 8:26:03 AM
I am trying to debug on my local machine but am unable to
do so. I am getting the error message that I am not part
of the Debugger Users on my server. I've tried following
the help instructions and going into my SQL Server
Enterprise Manager, but I am unable to fix the problem.
Can anyo... more >>
UML tutorials for C#
Posted by designpatterns2003 NO[at]SPAM yahoo.com at 11/21/2003 8:03:01 AM
I found a whole bunch of free tutorials aimed at C#/.NET programmers
at http://www.parlezuml.com - there's even one on the Object
Constraint Language with C# code examples. There's links to other
useful C# and OO resources, too.
designman... more >>
user defined exception not caught
Posted by philipl NO[at]SPAM vistatec.ie at 11/21/2003 7:43:32 AM
hi,
I have a pluggin whiich throw an exception of the following user
defined exception:
public class SpellCheckException : ApplicationException
{
public SpellCheckException(string msg) : base(msg)
{
}
public SpellCheckException(string msg, Exception innerException) :
base... more >>
Hashtable question
Posted by Raghu at 11/21/2003 7:16:11 AM
The HashTable object exposes IsReadOnly property from IDictionary interface
(default is false). I have a hashtable that I want expose in a method call.
However I do not want the user to remove or add any items to it. Is there a
way to use this property so that user won't change the items in the
... more >>
Strange Marshalling error
Posted by Dave Harris at 11/21/2003 7:08:26 AM
One of our customers using our Mixed mode application
reported the following error message:
Title = "Microsoft Internet Explorer"
Can not marshal parameter #1: Invalid managed/unmanaged
type combination (Int32/UInt32 must be paired with I4 or
U4).
The customer unfortunately took it... more >>
Stand-alone App
Posted by Jim Witt at 11/21/2003 7:08:07 AM
Is it possible to compile an assembly to be a stand-alone app
independant of installing the .NET framework, or would that make an
enormous .exe size?
Thanks!
... more >>
Printing Word RTFs on the server
Posted by daurizio NO[at]SPAM usa.net at 11/21/2003 6:46:22 AM
Hi,
I've been looking for ideas on how to print Word RTFs (or RTFs that
contain headers and footers) on the server, and I haven't really found
any solution.
I would like to implement this as an NT service, no UI, so no UI based
controls like TXText. We don't have the budget for the expens... more >>
Best way to handle printing of HTML in .NET?
Posted by thelawnet NO[at]SPAM yahoo.com at 11/21/2003 5:28:11 AM
My Windows forms app generates HTML via a server-side XSL
transformation of XML out of a SQL server stored procedure. I'm
emedding the HTMLEditor control from
http://www.itwriting.com/htmleditor/index.php, and using a custom
print template.
The app by the way is for a homogenous intranet envi... more >>
Ref problem
Posted by ~toki at 11/21/2003 3:02:38 AM
I need to write a value over a field of a structure.
.....
public struct ARSubMesh {
private Matrix matrix;
public void setMatrix ( Matrix mat ) {
this.matrix = mat;
}
}
.....
ARSubMesh mesh = getMesh("torus");
mesh.setMatrix ( mat );
.....
public ARSubMesh getMesh(... more >>
Custom Binary Serialization
Posted by Rein Petersen at 11/21/2003 2:53:29 AM
Hi Everyone,
I'm into serializing/deserializing a particular class I have created but I
need to control the exact binary formatting. From what little information I
can find on the subject, it seems that it is possible. To clarify, I'm not
interested in the .NET binary formatting of object grap... more >>
IE ActiveX control usage
Posted by indexnode NO[at]SPAM yahoo.com at 11/21/2003 2:50:25 AM
Hello,
I have an activex control in a windows form.
When i load a document url in the activex control
and when the user clicks some other url within the active control html document
i want to know the url where he is going.
how can i do it.
kartik... more >>
Read Only Combobox
Posted by chris NO[at]SPAM ckerrison.freeserve.co.uk at 11/21/2003 2:29:09 AM
I've got my own Inheritted Version of the standard Winforms Combo
control and I want to add the ability to make this Read Only.
I've added a ReadOnly Property, set the backcolor to my Appropriate
Read-only color and prevented the User typing anything into the box.
Now I want to prevent the us... more >>
Multihomed addressing
Posted by Rein Petersen at 11/21/2003 2:23:33 AM
Hi Folks,
Wondering if there is a class in .net that makes it easy to find all the ip
information of the local machine without resorting to the registry... the
local machine can be multihome addressed.
Thanks, Rein
... more >>
Use of unassigned local variable
Posted by Mike P at 11/21/2003 1:11:29 AM
I keep getting the error 'Use of unassigned local variable' in my code,
which I have used before and it works fine :
SqlTransaction Trans1, Trans2;
SqlConnection objConnectionDeactivateInvisilinkLNX,
objConnectionDeactivateInvisilinkSQLSRVXwireless;
SqlCommand objCommandDeactivateInvisilin... more >>
|