all groups > c# > october 2003 > threads for thursday october 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
ref or In,Out?
Posted by Dirk Reske at 10/23/2003 10:54:54 PM
Hello,
I don't know how to use the In and Out attribute.
Is it better to use them in a P/Invoke call?
Or can I use "ref" instead, how I do it til now.
thx
... more >>
Accessing data from C#
Posted by Raja Gopal at 10/23/2003 10:52:01 PM
Hi,
I have a regestration form in a form through which users
enter the information . I have to insert this data into
database. I am using asp.net with C# in visual
studio .net. Can anyone please help me by giving me code
or other resources on the web.
Thanks,
Raja Gopal
... more >>
struct size?
Posted by Dirk Reske at 10/23/2003 10:41:32 PM
Hello,
I have the following struct:
public struct WAVEFORMATEX
{
public UInt16 wFormatTag; //2 bytes
public UInt16 nChannels; //2 bytes
public UInt32 nSamplesPerSec; //4 bytes
public UInt32 nAvgBytesPerSec; //4 bytes
public UInt16 nBlockAlign; //2 bytes
public UInt16 wBitsPer... more >>
Performance question regarding inlining of very simple struct methods
Posted by Fernando Cacciola at 10/23/2003 9:59:45 PM
Hi, I'm terribly new at C# (come from C++ land).
I'm making some benchmarks to see the effect of different coding styles, and
I run across a situation that strikes me as pretty odd.
For my image processing code I would like to use low-level "Iterators", as I
would in C++, so I have a struct of... more >>
Weird behavior with ASP.NET dynamic event binding
Posted by Jonathan Yong at 10/23/2003 9:15:14 PM
I observe a very weird behavior when dynamically create web control
and bind events to it.
Create a C# ASP.NET application,
Put a PlaceHolder and Textbox onto the Web form,
and try with the 4 code scenerio below.
---------------------------------------------------------------------------
... more >>
Changing tab name at runtime
Posted by Aaron Queenan at 10/23/2003 9:08:43 PM
Is there any way to change the name of a tab at runtime (after the dialogue
has been displayed)?
Alternately, is there any way to add and remove tab without causing the
screen to flicker?
Thanks,
Aaron Queenan.
... more >>
test reference type for null?
Posted by Mark Oliver at 10/23/2003 9:07:44 PM
Hi,
When I test my user defined class type passed parameter variable for null
it throws an exception. If I use class "string" the null test doesn't
through an exception. What could I be doing in my class that causes the
exception?
Thanks,
Mark
Thanks,
Mark
... more >>
Create Shortcut
Posted by Arran Pearce at 10/23/2003 8:02:37 PM
Hi,
I am wanting my program to be able to create a shortcut. How is this done?
At the moment i have the shortcut created and copy it to the location i
need. This is a bit inflexable.
any help?
many thanks
Arran
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ADSI Account Lockout
Posted by Arran Pearce at 10/23/2003 7:58:59 PM
Hi,
I am looking for a way to use System.DirectoryServices to find all users on
a domain whos accounts are either locked out or disabled. I have used
ADSIEdit and the mmc schema add-in to try and find properties for these
things but have not had any luck so far. Also i did a search on the
P... more >>
Date & Time?
Posted by LL at 10/23/2003 7:53:27 PM
Hi,
How to get the current Date & Time?
Date() & Time() ?
Thanks.
... more >>
Extract plain text out of HTML page
Posted by Guogang at 10/23/2003 7:26:17 PM
Hi,
I need to extract plain text from HTML page (i.e. do not show images, html
formatting, ...)
Is there some C# class/function that can help me on this?
Thanks,
Guogang
... more >>
How can i drag a datarow from a datagrid to other control?
Posted by NewSun at 10/23/2003 7:07:10 PM
How can i drag a datarow from a datagrid to a other control?
e.g.
Drag a datarow from a datagrid to a TextBox,Then display one colnumn' value
of the datarow .
Or Drag a cell's value to a controll and display/handle the value in the
other controll.
Thanks in advance.
... more >>
AxWebBrowser, Transparency?
Posted by Hugh at 10/23/2003 6:26:47 PM
Hi all,
I'm using the Web Broswer control on a project that I'm working on, as I'm
using HTML as my primary user interface. Is it possible to make the browser
control background transparent, so I can still see the windows form stuff
underneath, but have the HTML text still on top?
It may be... more >>
Possible alignment bug in DrawString() ??
Posted by David Lindgren at 10/23/2003 6:18:06 PM
Hello!
I am using the DrawString method with different StringAlignments passed to
it and the result varies alot!
Take a look at this screenshot:
http://www.lowrad.net/files/alignment_screenshot.jpg
As you can see I am printing four different text in each of the the parts of
this image. (... more >>
gradient progressbar
Posted by Thomas Kehl at 10/23/2003 6:10:38 PM
Hi!
Does anyone have a tipp for me where can I found (or how can I programm) a
"progressbar" which has a gradient and the color go from the left side to
right and back ... I should have a waiting-progressbar :-)
Thanks
Thomas
... more >>
Computer list in Workgroup
Posted by Eka Gautama at 10/23/2003 5:45:29 PM
Hi All,
How to retrive computer list in a workgroup?
Regards
Eka
... more >>
searching dates
Posted by Saso Zagoranski at 10/23/2003 5:32:14 PM
Hi!
This is not exactly a C# question but I don't know where else to post it...
I'm making an application where the user keeps track of it's art
collection... I'm also trying
to implement a search, where the user could search specific arts based on
defined criteria.
The problem is when it ... more >>
serial communication too fast?
Posted by Marco Martin at 10/23/2003 5:31:56 PM
Hi,
I'm writing a program in C# which logs data comming from a com port. the
port is set up 8 bit, no parity, 1 stop bit (n-8-1), @ 38400 baud. I'm
supposed to receive this data and simply display it in a listbox. No
problem there. Once I start iterating through the data to do some
manip... more >>
Persistence Question
Posted by Mike at 10/23/2003 4:40:43 PM
Hi,
Right now I am trying design user data persistence in my winforms app and
have a few questions. Right now the app is designed to save to a local file
however down the road it might be changed to saving to a database. So, I
was thinking about designing a dataset that if I do switch to a d... more >>
NamedColors problem
Posted by Tim Mulholland at 10/23/2003 3:45:24 PM
I am having a problem where a color i select, and convert to a string for
storage in an XML file is not being converted back properly. The following
is a small example that illustrates the problem.The color seems to show up
properly, but it has lost its IsNamedColor property. Is it possible to ge... more >>
network connection wizard
Posted by Thorpe at 10/23/2003 3:39:07 PM
I want to be able to create a script or exe (C# would be nice) that will,
when run, create a dial-up VPN connection, so that end users dont have to do
this task.
In other words is it possible to script/code the network connection wizard,
if so
how? I have looked through wsh and wmi and c# doc... more >>
Add toolbox item programatically
Posted by Christina Androne at 10/23/2003 3:26:30 PM
Hello everybody!
Has anybody developed an app which adds a toolbox item to the .NET IDE
designer? Or knows the steps to do so? Or knows some good tutorials on
this? I have a starting point, the IToolboxService interface, but till
now it didn't work out for me.
Any help is really welcomed,
... more >>
how to use connectioncreator
Posted by Saper(ek) at 10/23/2003 3:15:13 PM
when You create a ne sqlconnection, or any other connection, You can use
connection creator to create a connection string. how to do this in Your own
components?
--
"Zeglarstwo jest koniecznoscia
zycie nia nie jest"
www.saper.infra.pl/
Saper(ek)
... more >>
problems with WebReferences in VS2003
Posted by Dan Smith at 10/23/2003 3:11:33 PM
When I try to create a new C# Web Reference in Visual Studio 2003, I get an
error message "The proxy settings on this computer are not configured
correctly for web discovery. ..." This web reference is to a service on my
machine - http://localhost/... - so I don't know why any proxy configuratio... more >>
sqlDataAdapter filling Dataset
Posted by epmcj38 NO[at]SPAM yahoo.com at 10/23/2003 3:08:09 PM
Ok.......... I'm trying to fill a parameterized table onto a Dataset
via a sqlDataAdapter. It works fine if I fill the Dataset with all
the column fields. What I want to do though is to only fill the
Dataset with certain values from my DateTimeIn column (i.e. only files
where DateTimeIn == use... more >>
Best Practice for Writing and Retrieving Persistent Info?
Posted by Steve at 10/23/2003 2:55:04 PM
Can anyone tell me the preferred method for writing and
retrieving persistent information using .Net.
Specifically, I am referring to information that you used
to see in registry keys or .ini files like the name of a
database or connection string.
I have read several articles indicatin... more >>
Any good website or reference material to teach "Design Time" in C#
Posted by sasha at 10/23/2003 2:44:49 PM
Hi All
Any good website or reference material to teach "Design Time" in C#.
Thanks
Sasha
... more >>
Problems w/.NET debugger
Posted by bobness at 10/23/2003 2:19:40 PM
Why is it that I can interactively debug some files in
my .NET solution but not others? When I try to add a
breakpoint during runtime it give me a breakpoint with a
question mark and tells me "The breakpoint will not
currently be hit.No symbols have been loaded for this
document." How can... more >>
Control Property
Posted by Nicolas at 10/23/2003 2:15:27 PM
How can I simply do this.
string tAlign;
tAlign="Left";
TextBox textbox1 = new TextBox();
textbox1.TextAlign = tAlign;
I know that it shoul be like "textbox1.TextAlign =
HorizontalAlignment.Left;" but I want to replace this by a variable so I
dont have to go throught a lot of case sta... more >>
Unable to Close Popup window using ASP.Net
Posted by sutcliffe_grant NO[at]SPAM hotmail.com at 10/23/2003 2:08:25 PM
I am having a problem closing a popup window opened modally. When I
try to close the window (when the user hits save button and the data
has been processed), the Popup window opens as a full screen as a new
window. The original window plus the Modally opened Pop remain in a
separate window.
W... more >>
How to import an Office window?
Posted by CYShao at 10/23/2003 1:59:02 PM
How to import an Office window?
Hello.
I want create a MS.Office.Excel or IE window on my C# form and edit some
Excel files.
How can I do that?
Need I buy some licences from Microsoft?
Thanks
CYShao:-)
... more >>
Displaying a stored webpage in a windows form
Posted by freddy at 10/23/2003 1:57:39 PM
I want to display a webpage that I have in a string. which
control should i use to do this?, or how can i acomplish
this?... more >>
VB to C# translation
Posted by Daniel Rimmelzwaan at 10/23/2003 1:56:09 PM
I have been searching the VS.NET help files and the internet for hours for a
comparison between VB and C# of keywords, operators, other types of syntax,
but no matter what I type in the search box, it keeps giving me 500
articles, of which most are of no use to me, or have nothing to do with my
... more >>
Multiple SQL Databases
Posted by Gary at 10/23/2003 1:37:42 PM
I'm working on an app where I need to access a table from 2 different
databases (same MS-SQL box).
What I need is to have a SELECT string with an INNER JOIN based on these 2
tables. If they were in the same DB this would be no problem, but I can't
figure out how to get this via C#.
Any help... more >>
Urgent: Isolated Storage
Posted by gani at 10/23/2003 1:17:38 PM
hi,
how to get the fullpath of created IsolatedStorage directory.
thanks.
--
gani
... more >>
And / Or in C#
Posted by Daniel Rimmelzwaan at 10/23/2003 1:15:08 PM
Hello,
I have a conditional statement in VB that I want to translate in C#, but I
can't find the syntax.
VB:
If (MyFirstString = "" or MySecondString = "") Then
<insert your code here>
End if
C#
if (MyFirstString == "" ---- then what?) I can't get rid of those red
squiggly lines if ... more >>
consume a wsdll file
Posted by Mike at 10/23/2003 1:15:05 PM
I need to consume a wsdl file using C#. The web service was not created in
..NET but I need to consume it. Can anyone point me to an example that is
consuming a wsdl using C# for a windows application?
... more >>
Unable to hit breakpoint Mixed language SQL C# debugging
Posted by Ash at 10/23/2003 1:10:17 PM
Hi all,
I have a C# web application which calls a number of stored procedures.
I wish to step into the stored procedures while debugging i.e "Mix-mode
debugging":
I have completed the following steps:
Configured DCOM
Connected to database via Server Manager (I can see the SQL server an... more >>
C# Programmable Calculator
Posted by Eric Bergman-Terrell at 10/23/2003 12:44:42 PM
If you like the C# programming language and RPN (HP style)
calculators, you'll love C# Programmable Calculator.
Take a look at it at:
http://www.personalmicrocosms.com/html/cspcalc.html
Sincerely,
Eric Bergman-Terrell
wwwPersonal MicroCosms.com
... more >>
thread soluion design
Posted by Mullin Yu at 10/23/2003 12:27:57 PM
I want to have a controller class to do
- initilization: create a thread pool with max 10 thread
- get ten records from the db every time
- assign each record to one thread
worker thread
- do the application logic
- once finish, tell the controller class
once all the ten worker threads ... more >>
Any ideas?
Posted by Mullin Yu at 10/23/2003 12:26:41 PM
I want to have a controller class to do
- initilization: create a thread pool with max 10 thread
- get ten records from the db every time
- assign each record to one thread
worker thread
- do the application logic
- once finish, tell the controller class
once all the ten worker threads ... more >>
TimeSpan, Ticks
Posted by Jeroen CEuppens at 10/23/2003 12:24:15 PM
Hi, I want to measure a time (in ticks) between a couple of operations, with
these code:
long voor = DateTime.Now.TimeOfDay.Ticks;
bmp1 = new Bitmap(@"\Network\im\ImageWeftIllum.bmp");
bmp2 = new Bitmap(@"\Network\im\ImageWarpIllum.bmp");
g.DrawImage( bmp1, 0, 0 );
g.DrawImage( bmp2,... more >>
loading xml into datasets
Posted by Sandy at 10/23/2003 12:14:33 PM
I've saved an xml string into a file and loaded it into a
dataset then displayed it into a datagrid:
XmlDocument doc = new XmlDocument();
doc.loadXml(stringXml);
doc.Save(Server.MapPath("data.xml");
DataSet ds = new DataSet();
ds.ReadXml(Server.MapPath("data.xml");
DataGrid1.DataSource = d... more >>
System.NullReferenceException occurred in
Posted by Andreas Wirén at 10/23/2003 12:13:27 PM
Hi I'm a C# .NET newbie doing a minor school project but I'm getting a
strange error message.
'System.NullReferenceException' occurred in system.windows.forms.dll
Additional information: Object reference not set to an instance of an
object."
As my references look I seem to be using the old ... more >>
Can i Use .NET dlls (C#) in ASP 3.0
Posted by Bernardo Heynemann at 10/23/2003 11:52:03 AM
Is it possible?
My server would have the framework installed and the dll
properly registered.
Thanx for any help.
Bernardo Heynemann
Developer@BancoBva S/A - Brazil... more >>
Searching for a computer
Posted by Ing. Leandro Pérez Guió at 10/23/2003 11:34:32 AM
Hello:
I wanna know if a certain computer exists on the network by giving its name.
How can I do that? Any of you could send me the code?
Greetings
... more >>
ListBox methods, inherited from Control
Posted by David at 10/23/2003 11:32:03 AM
Hi
ListBox, ListView and other controls have inherited
methods and properties.
I could not understand how to use them.
For example if I have
protected override void OnClick( System.EventArgs e)
{
//.......
base.OnClick(e);
}
It is called only if I click in a form, but not in
ListBox o... more >>
where can i find on-line C# Exam?
Posted by chris at 10/23/2003 11:26:07 AM
Does anyone know any on-line C# exam which can give me a
quick self-evaluation?
Thanks a lot
Chris... more >>
MDI forms
Posted by Dmitry Karneyev at 10/23/2003 11:09:23 AM
How to collapse expanded child windows to their original state? (not layout)
... more >>
IHTMLDocument2, HTMLImgClass and images
Posted by Chris Soulsby at 10/23/2003 10:39:35 AM
Hi,
I've wrote a AxWebBrowser control to display html interfaces in my
application. This works fine, however, I would like to load images from my
application's resources instead of saving them to file then referencing that
file. For example:
in the HTML i'd have a image like this <img src... more >>
CFileDialog
Posted by Max at 10/23/2003 10:35:56 AM
HI
How can I extend the Open File Dialog like I can with MFC to show a preview
of pictures before loading them.
Max
... more >>
Backing Up Project files.
Posted by Martin Schmid at 10/23/2003 10:35:11 AM
I am developing using Visual C#.net. It appears that my web projects create
files in both "My Documents\Visual Studio Projects" and ".\inetpub\webroot".
Does backing up these files ensure that my code is all backed up? Is there
a backup/restore FAQ somewhere?
--
Thanks,
Martin Schmid,... more >>
Looking for VS.Net hotkeys to find matching brackets {} in C#
Posted by Robert Hanson at 10/23/2003 10:16:49 AM
Any idea on how to find a matching bracket in VS.Net??
Thanks in advance,
Bob Hanson
... more >>
Regular expression problem
Posted by marius_i NO[at]SPAM mymail.ro at 10/23/2003 9:49:51 AM
Hi,
I'm having an odd problem with a regular expression in C#. I'm trying
to parse the rows in a web page with this pattern, and the computer
locks up:
"<tr valign=middle>.+?<a
href=\"/listings/details/index\\.cfm\\?itemnum=.+?8000 FB
24/7.+?(Antonius|Marcus).+?PLATINUM (\\d+)K
PP.+?\\$<b... more >>
Hiding TabPages
Posted by Paul Sampson at 10/23/2003 9:36:27 AM
Hi,
Does anyone know how to hide certain TabPages inside a TabControl in VS.NET
2003?
I've seen code to remove the tabpage but I want to show/hide based on the
user's access rights each time, rather than removing the tabpage.
There doesn't seem to be an Enabled or Visible property and set... more >>
is it okay for native code to call calloc in c# app?
Posted by trashcan67 NO[at]SPAM hotmail.com at 10/23/2003 9:27:40 AM
I'm calling a function in a DLL from my C# app. The function returns a
int* that it allocates using calloc.
Will this be a memory leak problem for my app?
Is there a way to fix it other than adding another method to the DLL
which frees the memory?
thanks!... more >>
web.config and global.asax
Posted by Mark at 10/23/2003 9:26:32 AM
I have two projects - they both need to use the same web.config file, the
same global.asax file, and share a common "look and feel" via several user
controls.
Is there an easy way for two projects to share these resources in VS.NET so
we don't have to worry about synchronization issues ASIDE f... more >>
sending a DataTable through RSA
Posted by Eric at 10/23/2003 9:11:09 AM
I need to send an encrypted DataTable through RSA. How can I serialize it, deserialize it, then turn the byte array back into a DataTable object?... more >>
Can't save my data in the DB with ADO.NET
Posted by Torben Madsen at 10/23/2003 9:02:24 AM
Hello,
I'm trying to save the changes back to the database, but it doesn't
work -could anybody help me?
I'm using a DataSet and the wierd thing is that I can save the changes in
the memory but not in the database :-/
I have tried to duplicate an example I found on msdn -but with no luck. The
s... more >>
Delegates
Posted by kode at 10/23/2003 8:55:05 AM
im having problems trying to understand the delegates in
c#, does anybody know some link where i can find a good
and simple explanation?
thanks... more >>
setup nic-settings
Posted by azazel12345 NO[at]SPAM msn.com at 10/23/2003 8:31:18 AM
Hello,
I'm trying to set up my network properties e.g. my IP.
Has anybody tried this, and what did you in that case do?
That iphlp-library looks as it has stuff for getting, but not setting, the IP.
Please give me a hint, a snippet or a clue as to what api to use.
Best Regards,
Chri... more >>
webservice is throwing cs1595 error or the aspnet_wp.exe is stopped
Posted by René Meinecke at 10/23/2003 8:25:21 AM
hi there,
i have created a webservice which is running well on the developer computer.
for this i also created a windows installer setup
which also works well on the developer computer, but if i try to install it
on another machine (framework installed)
there comes the error cs1595. i have ch... more >>
string read only error
Posted by David at 10/23/2003 7:54:38 AM
Hi,
I wanted to replace all ',' with ';' but compiler gives
me an error that my subLine is read only
foreach ( ListViewItem.ListViewSubItem subItem in
Item.SubItems)
{
subLine = subItem.Text;
int nIndex;
while ( (nIndex = subLine.LastIndexOf(',' ) ) != -
1 )
subLine[nIndex] =... more >>
const return type's
Posted by Steven Dorning at 10/23/2003 7:47:29 AM
Is there an equivalent way in C# of writing the following
C++ code.
A and B are classes,
class B
{
private:
A m_A;
public:
const A & ReadA () const { return m_A;}
}
i.e. is there a way of returning a reference to a const
object as opposed to a reference to an non-cons... more >>
Open text file in notepad from C#
Posted by Jesper at 10/23/2003 6:38:29 AM
How can I open a textfile from C# using notepad (or the
user assigned application for this).... more >>
How to change the orientation of the toolbar in C# Winforms
Posted by Mehul Gadhia at 10/23/2003 2:22:55 AM
Hi All,
If anybody is aware please let me know how do i change the
orientation of the toolbar of the .net windows control.
When i drag out the toolbar its orientation is horizontal, then
once if i dock it to left and right and then again drag it in it remains
vertical always t... more >>
Panel AutoScroll - How can I tell when the scrollbar is visible?
Posted by newsgroper NO[at]SPAM yahoo.com at 10/23/2003 1:48:00 AM
I set the AutoScroll property of a windows panel to true. How can I
tell when the scrollbar becomes visible?... more >>
Word automation and late/early binding
Posted by PromisedOyster NO[at]SPAM hotmail.com at 10/23/2003 1:14:52 AM
We are developing a C# application that has many interfaces to the
Microsoft suite (eg Word, Excel, Outlook, Powerpoint, etc). We need to
support Office 97, 2000, 2002 and any future versions.
Our first cut used early binding and worked fine with Office 2002. We
then ran on a machine that had ... more >>
ANN: October 2003 .NET Documentation Update
Posted by Thomas Scheidegger [MVP] at 10/23/2003 12:12:55 AM
October 2003 .NET Framework SDK Documentation Update:
http://www.microsoft.com/downloads/details.aspx?FamilyID=2eaeb501-c197-4892-9c50-8f6be1b0d4e0
Download 48532 KB, English:
http://download.microsoft.com/download/0/b/b/0bb757a0-e734-4e78-b95b-d357e2d8635a/NDP1.1-KB827821-X86-Enu.exe
... more >>
DLL Version problems
Posted by Tomas Vera at 10/23/2003 12:08:15 AM
Hello All,
I have a Commerce Server application that uses
Microsoft.VisualBasic.Compatibility.DLL .
My development machine uses Framework 1.0.3705 .
When I deploy this app to a machine with Framework 1.1 I get the
"<add assembly="*"/>" configuration errors.
In the stack trace I see this... more >>
|