all groups > c# > january 2004 > threads for thursday january 8
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
How to pass ByRef parameter to COM dll interface ?
Posted by pecker at 1/8/2004 10:51:29 PM
I have a com dll interface:
Public Function Hulian_Acount_all(ByVal vIndex As Variant, _
ByRef vDate As Variant, _
ByRef vCount As Variant, _
ByRef vMoney As Variant, _
ByRef vMyDetail As Varia... more >>
How to hide and unhide tabs
Posted by Peter at 1/8/2004 10:06:27 PM
How do I hide and unhide Tabs in the TabControl at the runtime?
Peter
--=20
Thanks
-------------------
czupet@wsinc.com... more >>
ADO.NET questions
Posted by Kevin at 1/8/2004 9:24:42 PM
Hi All
I have a couple of questions, I am not at a machine with
VS.NETso that is why I am asking them here
1. When working with a dataset, how do I go to a specific
record and update a field in a table in the dataset? I
know you could probably run the updateCommand for the
DataAdapter,... more >>
How to throw exception from asynch socket callback
Posted by banderbe NO[at]SPAM yahoo.com at 1/8/2004 8:23:26 PM
I am using asynch sockets and so I call BeginReceive and then in my
callback function I have certain events that would cause me to want to
throw an exception.
The problem of course is that the callback function is executing in a
separate thread from the main thread so when I throw the exceptio... more >>
threading in C#
Posted by josepinchero NO[at]SPAM yahoo.com at 1/8/2004 7:49:03 PM
after searching on amazon, i found no good books on threading in
..net/C#.
does anyone know if any are in the works? I've seen lots of
questionable threading code in our C# environment, and it'd be good to
see a good, advanced book on .net threading.
thanks.... more >>
Convert J# files to C#
Posted by Sylvain at 1/8/2004 7:25:15 PM
Hi,
I'm actually in the process of rewriting J# script into C#, and I was
wondering if there was a way to do it automatically?
Thanks.
SyP
... more >>
Creating IE Toolbar in C# (or VB.NET)
Posted by Pinkesh at 1/8/2004 7:23:54 PM
Hi All,
I want to create a customized IE Toolbar using either C#
or VB.NET. Is it possible?
I've come across some samples which show how this can be
achieved using Vc++ (and VC.NET). But can this be achieved
using C# (or VB.NET) only.
Thanking you in anticipation.
... more >>
Passing an out parameter
Posted by Dave Veeneman at 1/8/2004 6:52:06 PM
Can I pass a method pass one of its out parameters to another method? C# is
telling me I can't.
Let's say I have two methods, FooManager and FooWorker. FooManager is part
of a class that acts as a coordinator for several other classes. FooManager
basically passes its parameters, including an o... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Appropriate group for crystal reports
Posted by Junkguy at 1/8/2004 6:48:00 PM
Can anyone tell me what is the appropriate group for asking questions about
Crystal Reports for Visual Studio?
Thanks,
--
Junkguy... more >>
Date Calculations
Posted by Jim Heavey at 1/8/2004 6:43:29 PM
How to do you add and subtract dates in C#, in VB there was a Date Class
which provided AddDays.... I see a DateTime class in C#, but none of these
methods...where be it?... more >>
how to deal with bits
Posted by cedar chak at 1/8/2004 6:05:32 PM
ascii decimal binary
0 48 00110000
1 49 00110001
.... ... ...
9 57 00111001
My problem is:
when i get a serial numbers,i wanna to remove 00 from left
of each binary value and save them as following:
before saving saved
00110000,00110001 110000110001... more >>
Datasets
Posted by JJ at 1/8/2004 5:43:45 PM
Hi All,
I am writing a Win App in C# that has a data class for
my mid business component. I call it to fetch data for me
and return back a dataset to my Win app. So in order to
read my dataset that's returned I need to open up a
DataAdapter again and attach a Reader. If I want to
acc... more >>
How do I play Sounds?
Posted by Bouncer at 1/8/2004 4:56:53 PM
Hi, I've just begun to 'program', so I'm just a newbie.
But I wondered if anyone could give me some guidelines to play sound-files
in a windows application. I'd really appriciate it.
Thanks...
Stephen, Belgium
p.s.:sorry for any English mistakes...
... more >>
Divergence of c# and vb
Posted by george r smith at 1/8/2004 4:30:36 PM
A Microsoft partner has told us that with the next release of .Net VB will
become the
language of application developers and C# will only be used for "system"
work, that
C# will be left behind in the "application development domain".
I hate to believe this and would like a counter to this arg... more >>
Managed C# graphics libraries for .NET
Posted by toxidyne NO[at]SPAM yahoo.com at 1/8/2004 4:26:59 PM
Does anyone know of a set of graphics libraries written
in C#?
My goal is to create a set of graphics images in memory then
dump them to a file or network stream in any format. Unfortunately
the System.Drawing classes all resolve down to calls in gdiplus.dll
which are implemented nativel... more >>
convert vb.net to csharp
Posted by L.Peter at 1/8/2004 4:20:24 PM
Dear Group,
I have the following code for vb.net
***
Dim objFaxServer As New FAXCOMEXLib.FaxServer
Dim collFaxIncomingJobs As FaxIncomingJobs
Dim objFaxIncomingJob As FaxIncomingJob
'Error handling
On Error GoTo Error_Handler
'Connect to the fax server
objFaxServer.Connect("")... more >>
hiding an overload
Posted by Eric Cadwell at 1/8/2004 3:50:45 PM
I'm inheriting from From, but my Show method requires a parameter, so I
define an overloaded Show method:
public void Show(Form Owner)
Now I get intellisence for two methods:
Control.Show()
MyForm.Show(Form Owner)
I need to hide Control.Show(). I tried hiding it...
private new void Show(... more >>
treeview
Posted by selen at 1/8/2004 3:46:21 PM
I have a treeview in my ASP.NET c# application.when someone selects a node
on the treeview How do I set the node name
myNodeName = TreeView1.Nodes(TreeView1.SelectedNodeIndex).Text
The above code only gave me the value of the parent Node
Any and all help would be greatly appreciated!!!!
... more >>
.NET Newbie: Why is this SQL Statement Failing in C#?
Posted by Bobbo at 1/8/2004 3:36:18 PM
I'm having a devil of a time getting the following to run and was wondering if someone could see why. Seems to be related to data type I'm sure, but new to .NET and C# so am in head banging mode.
The connection is good. Am trying to run a Stored Procedure. Error that comes up is 'Additional in... more >>
How to find string in C#
Posted by Peter Afonin at 1/8/2004 3:12:09 PM
Hello:
In VB I was using InStr function to determice whether some string exists
within another string. How would I do it in C#?
For instance, I have a long string created by StringBuilder. I need to find
out if this string contains the words "Not found". Is there a C# function
for it? or pe... more >>
CSharp preparation
Posted by Sunny at 1/8/2004 2:48:42 PM
Hi All,
I wanted to ask if someone can help me out in locating a
ref on the internet for the preperation of MCSD.NET C#
Windows Applications dev exam.
I am planning to take it in the next few days, I have
already completely read the Microsoft training kit, for
this paper.
I was hoping if ... more >>
Suggestions for Large Files Using Tabs
Posted by Randy at 1/8/2004 2:43:21 PM
I'm writing an application where the user interface has many tabs, and sets
of tabs within each tab (customer requirement). Each subtab has a great
number of it's own controls and functions. Rather than have one enormous C#
source file, does anyone have a suggestion on how to setup an individual
... more >>
web services problem in accessing vb6 com
Posted by Mullin Yu at 1/8/2004 2:35:49 PM
i found out that if i debug the web services that accessing a vb6 com (a dll
file), other clients' request will be stalled until releasing from the debug
mode.
to me, the dll seems to be a queue then. but, my dll is already 1. set to
Instancing to MultiUse
2. try with COM+ at win2k
how to ... more >>
C#, PictureBox, and Keypress?
Posted by David M at 1/8/2004 2:18:31 PM
IS there a way to access a keydown event from the .net picturebox
control. I need to display a picture and have the user press the page
up/down key to go to the previous/next pic. I see mouse events but not
keypress. If the PB does not have this, then is there a way to
intercept a kepress fr... more >>
Start processes in the same DOS-window
Posted by Wim at 1/8/2004 2:13:40 PM
From my Windows app I would like to open a DOS-window (Process.Start
("cmd", "/k");) and then run a number of processes in that DOS-window.
How can I arrange that these processes start in that DOS-window?
--
Wim... more >>
database update problem usig visual studio.net c#
Posted by Shweta Agnihotri at 1/8/2004 1:55:05 PM
I created a mock databse table caleld custifo. it has
customer infformation like name, address etc. In visual
studio.net, I created a form that would allow users to
input the last name have all the related information of
the customer come up. If they need to make any changes in
the informa... more >>
Security/Distribution Group Member.Count limit of 1000
Posted by Terry E Dow at 1/8/2004 1:46:38 PM
Howdy,
I am having trouble with the objectCategory=group member.Count attribute.
I get one of three counts, a number between 1-999, no member (does not
contain member property), or 0. Using LDIFDE as a comparison I get the same
results. No members means just that, an empty group. Zero mea... more >>
General Common Dialog Question(s)...
Posted by SpotNet at 1/8/2004 1:44:11 PM
Hi NewsGroup,
I'm (not too) new to C#, I have built a Windows Common dialogs name space
with these dialogs contained within. Got all the functionality from these
dialogs that C# will let me do (and just a bit deeper). Having constructed
highly customisable common dialogs in VB 6.0 a long w... more >>
How to produce GUID from code?
Posted by RA at 1/8/2004 1:36:43 PM
Hi
I need to produce GUID as the program is executing. Which namespace is
dealing with that?
Thanks
... more >>
Windows Installer - From .net project
Posted by RA at 1/8/2004 1:35:06 PM
Hi
I have created a Windows installer project from the .net vs. When I add
custom actions for the Uninstall event how can I tell it in what sequence to
launch the custome action? Whats happening is that it removes the files and
then tries to execute the custome action. Also how can I get the r... more >>
How to access the web from windows form?
Posted by RA at 1/8/2004 1:30:51 PM
Hi
I have a c# windows form and when the user click a button I need to open IE
with a specified url and some arguments I need to pass with the url using
the POST method so that the arguments won't show with the url address. How
can I do this?
Thanks
... more >>
Definition problem
Posted by Abbiento Morgan at 1/8/2004 12:43:36 PM
How can i declare a definition with using (using a = b.c.d) and use it in
all files of my project without rewrite it in every file of my project ?
And if i want to permit the use of this alias to the user of my library ?
In C++ i use the #define instruction in a .h file and i include it in every
... more >>
Comparing object types
Posted by HelgeS at 1/8/2004 12:43:27 PM
I want to determin if objectA is of the same type as
objectB, or is inherrited from the same type.
I hav tried something like
Type objectAType = objectA.GetType();
if(objectB is objectAType)
....
That does not work, because the "is" statement requires a
class name and not a object of... more >>
Which 3rd party grid? Infragistics, XceedSoft, or ComponentOne?
Posted by Michael Howes at 1/8/2004 12:18:52 PM
I'm looking for a power grid control to use for some C#/Windows forms
development. There are a LOT of grids out there and trying to analyzes them
could turn into a long task.
Some things I'm looking for;
Grouping (TreeGrid capabilities)
Outlook style group by
Built in filtering a plus... more >>
WebForms compilation
Posted by Pink at 1/8/2004 12:15:38 PM
Hi
Windows forms are perfectly running from .
Microsoft (R) Visual C# .NET Compiler version 7.00.9466
for Microsoft (R) .NET Framework version 1.0.3705
but i have problem compiling WinForms from console
is that Winforms can be compiled from vs.net only
Thanks... more >>
Books on C#
Posted by Sven at 1/8/2004 12:07:23 PM
what're some good C# books to learn the language basics?
tia
~sven... more >>
Class intellisense hide/Show
Posted by michaelravan NO[at]SPAM yahoo.com at 1/8/2004 11:59:19 AM
I want to be able to control the display of my base classes in
intellisense, in the same manner as
[EditorBrowsable(EditorBrowsableState.Never)] works for methods and
property of the classes. Is this possible?
Thanks
michaelravan@yahoo.com... more >>
Application Performance,
Posted by Anders Both at 1/8/2004 11:48:53 AM
Does someone knows links to web-pages, or book contatining, information
about the most important things to consider, while trying to make the .NET
code perform faster.
e.g. In my code I make big use of ArrayList and Hashtable, but my code would
be only a little bit more complicated, if using n... more >>
Bug in C#?
Posted by Michael Culley at 1/8/2004 11:10:21 AM
This is fairly easy to reproduce, create a new exe project, add a second
form Form2, on Form1 add a button and put code under the button to show
form2 modally. Then in the activate event of form2 show a messagebox. Run
the project and click the button then click the OK on the messagebox that
pop... more >>
MessageBoxButtons
Posted by Jim Heavey at 1/8/2004 11:06:38 AM
If I want to create a MessageBoxButton which says "Edit", how would I go
about doing this?
Thanks in advance for your assitance?
... more >>
Why aren't arrays of constants equivalent to constant expressions?
Posted by JJ Feminella at 1/8/2004 10:29:46 AM
This statement is legal C#:
public const string day =3D "Sunday";
but this statement is not:
public const string[] days =3D new string[] { "Sun", "Mon", "Tue" };
The C# Programmer's Reference specifies that 'the only valid values of a =
constant declarator [involve] constant express... more >>
Win Service
Posted by Vai2000 at 1/8/2004 10:20:54 AM
Hi All, I have written a win service MSMQListener. On the OnStart method I
call a queue worker class which basically goes and invokes the delegate with
the following signature
OnStart()
{
QWorker q=new QWorker();
q.Run();
}
class QWorker{
void Run()
{
this.msmq=new Mes... more >>
Control usage question
Posted by Horatiu Ripa at 1/8/2004 9:53:49 AM
1. I have an image list defined in a control
2. I want to expose trough properties the image list in a manner to be able
to change it from the container where the control is used.
How do I do that?
--
Horatiu Ripa
... more >>
How to Create Exchange 2000 mailbox in C# and using Web Service?
Posted by Vincent Nguyen at 1/8/2004 9:42:09 AM
Hi,
I have problem create exchange 2000 mailbox using CDOEXM in my Web Service
application. The error I got was "Catastrophic failure". Here is the code
that I have:
DirectoryEntry user = new
DirectoryEntry("LDAP://fmsamrmc001.amrmc.minicorp.intel.com/"+strDN);
user.Properties["mailNickN... more >>
On Sort Event
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 1/8/2004 9:41:00 AM
Is there an event that is invoked when a user sorts a
column in a Windows Forms DataGrid?
I have context senstive icons that are enabled\disabled
depending upon the selected item in the datagrid. When I
sort the datagrid the selected item changes. I can not
find the event that is fired ... more >>
BeginInvoke calls disappears to God knows where
Posted by karl.larsson NO[at]SPAM tecan.com at 1/8/2004 9:25:53 AM
Dear all
I have an thread updating the GUI thread using the BeginInvoke
mechanism. However, in one app where I use this mechanism, it works
fine but in another it does not. The code looks like:
public void OnDisplay(GUIEventArgs args)
{
object[] list = {args};
// We get here withou... more >>
binary write problem.
Posted by PCH at 1/8/2004 9:09:36 AM
I'm trying to pull a data file that has an image (jpeg) embedded in it.
I can locate the bytes for the image, but when I try to write it to a file,
the image ends up being corrupt!
the kb/b size is the same as the original image, but the data itself isnt.
I have the binary data in a byte a... more >>
Update System Time
Posted by QQ at 1/8/2004 9:07:36 AM
How do I update the system time using the DateTime I
have? Thanks.... more >>
Deploying Web Application
Posted by Jeremy Ames at 1/8/2004 8:56:24 AM
I made a post yesterday under the same title, and I think I finally fixed
yesterday's problem by playing with the setup files. However, I am still
having a problem with the web service that the application is using. Here is
the error message I am receiving:
Server Error in '/EmpRemoval' Appl... more >>
How to open a web link from windows form?
Posted by RA at 1/8/2004 8:50:17 AM
Hi
I have a c# windows form and when the user clicks a button I would like it
to open IE with a specific link. How can I do this?
Thanks
... more >>
C# 2.0 Generics
Posted by Chuck Bowling at 1/8/2004 8:43:45 AM
I assume that 2.0 will be rolled out with VS.NET 2004. Does anybody know if
MS is planning to ship an STL package with it?
... more >>
Forwarding All Headers To Authorities
Posted by Tom J at 1/8/2004 8:05:58 AM
I don't know who's monitoring these groups and sending the viruses
(disguised as MS updates) to e-mail addresses of users on these groups...but
I'm forwarding all the headers to the authorities...
Suggest you stop now...
... more >>
Cannot display both byte arrays in Rich TextBox ?Please help!
Posted by bhutaninitin NO[at]SPAM yahoo.com at 1/8/2004 7:54:56 AM
Hi ALL,
I want to display in a RichTextBox the Binary Large Objects data
coming from database. If I have one record its not a problem I convert
it to byte array and pass it on in a stream as a byte array and then
call Loadfile method of RichTextBox and pass the stream. This works
BUT IF
I ... more >>
inline compilation across different assemblies?
Posted by trnewsnospam NO[at]SPAM earthlink.net at 1/8/2004 6:06:47 AM
I was wondering on the breadth of optimization with .NET JIT compiler.
Let's presume I have an assembly of static classes - mostly helper
functions. Some of these functions may be very small (small enough
that the optimizing compiler would inline them).
If I have another assembly that refere... more >>
Command line options
Posted by John at 1/8/2004 6:05:18 AM
Can I invoke a IE from command line and pass url as an
parameter... more >>
color chooser
Posted by liberty at 1/8/2004 5:48:06 AM
Hello...
To make a color chooser (like in photoshop, for example),
how its possible??
Do you have a clue?
Liberty
..
... more >>
Little window
Posted by josema at 1/8/2004 5:36:56 AM
Hi,
i have a form, and a button...
My question is that,
I would like that when the user press this button,
show another form with 3 checkboxes and 2 buttons
(accept and cancel). The user will choose for example 2
checkboxes and click in accept, and in my first form
catch the value... more >>
Accessing objects in a hierarchy?
Posted by Dave Veeneman at 1/8/2004 5:35:25 AM
I have an object hierarchy that's several layers deep, and I'm puzzling over
how to access an object at any point in the hierarchy, solely by its key.
The hierarchy is similar to an organizational chart, with a CEO at the top,
his/her subordinates in the next layer, their subordinates in the la... more >>
Web Configure
Posted by Jim Heavey at 1/8/2004 5:12:46 AM
When I use the command to retrieve the information, nothing comes back,
what am I doing wrong?
Here is my code...
private string connString =
System.Configuration.ConfigurationSettings.AppSettings["ConnectStr"];
I'm working on a WINDOWS application.
I created a configuration file wit... more >>
Binding csv file to datagrid
Posted by lltaylor2000 NO[at]SPAM yahoo.com at 1/8/2004 5:04:21 AM
Hello All,
I am currently in the process of writing an application
references a lot of data from user supplied csv files.
However for completeness I need to show the end user the data
in a neat and tidy format.
Is there an easy way of binding a csv file to a datagrid?
Any help on this ... more >>
arrays and datagrids
Posted by alanraby NO[at]SPAM hotmail.com at 1/8/2004 3:59:56 AM
I wonder if someone could help me.
I've got a 2 Dimension Array that I'm working with and want to display
the results from this array in a datagrid.
I'm quite new to C# and seem unable to link the two together.
So, the question is, how do I set up my datagrid to accept the array
as the ... more >>
anybody knows....
Posted by Jander at 1/8/2004 3:16:53 AM
Hi.
Anybody knows how could take all the messages in the
forum to store in my computer?
Thanks to all.
Jander.... more >>
How to convert decimal to string ?
Posted by Anders Both at 1/8/2004 3:03:34 AM
How do I convert a decimal to string, in a way so that only 4 digits after
the dot is present . E.G like in the below table:
Value : writeln
3.234556 : 3.2346 (or maybe just 3.2345)
0.34 : 0.3400
0.112234 : 0.1122
Best Regards,
Anders Both, Denmark.
... more >>
Little question
Posted by Roinem at 1/8/2004 2:58:39 AM
Hi, to all..
I have a method that creates a Random File
And another method that open the notepad with this File
I dont know, but first of all i call to the first method.
after that i call to the second.. The program crash cause
the file exist a little time after the execution of the
s... more >>
Read archived eventlog in C#
Posted by Mike at 1/8/2004 2:53:14 AM
Hi,
How to read archived system eventlog file (*.evt) in C# ?
Any code samples ?
-Mike... more >>
process
Posted by Perico at 1/8/2004 2:50:48 AM
hi to all,
If to start a process i can use this way...
System.Diagnostics.Process.Start()
How could close a proccess in my machine? there isnt a
method like End()
Thanks in advance.
Perico.
... more >>
Cross Thread Event Handling
Posted by Rob P at 1/8/2004 2:50:42 AM
Hi all,
I am working on a mesaging system at the moment which
currently uses at least two threads, one the main client
interface, and the second (or more) providing a
network/message listener.
The project works and is happily providing the required
functionality, but the users of the s... more >>
Same name Assembly loading
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 1/8/2004 2:19:36 AM
I have two assemblies with exactly the same name, but=20
which are different; one is on the local machine and the=20
other comes from a remote one.
I want to deserialize an object which is of a type of the=20
remote assembly.
How can I do this since my deserializer says "Type is not=20
resolve... more >>
Is .Net/C# supposed to supplant MFC/c++ on the desktop?
Posted by Shelly at 1/8/2004 1:39:28 AM
Hi All,
I'm a long time MFC programmer, but I do more UI than network programming.
Is C# the way to go for non-networked windows desktop apps, is MFC still
the way to go, or is something else brewing?
Thanks,
-Shelly
... more >>
How to draw animation in window app?
Posted by John at 1/8/2004 1:38:35 AM
How to draw anmation in window app? I mean... like how can
I draw a dot in window at a point then moves to another
point and we can see it moves. Please explain in detail.... more >>
More on Data Collections
Posted by Chibi at 1/8/2004 1:29:53 AM
I have a thread that fills a collection with a large
number of objects. This happens often and fast.
I would like to find a way to check every once in a while
the capacity of this collection and if it's at X capacity,
to dump all the data in a temporary collection, so that
the data can be... more >>
|