all groups > c# > october 2003
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
better thubnails?
Posted by Martin at 10/31/2003 11:48:40 PM
I have tried using GetThumbnailImage to create thumbnails for uploading on
the internet.
However, quality of such thumbnails is quite poor while file size is quite
large (this is about jpg's).
Is there a way to set a quality and compression level for jpg's, or if not,
does anyone know a good c... more >>
Write data do Database
Posted by at 10/31/2003 10:25:50 PM
I have a SQLConnection, SQLdataAdapter and a Dataset. The Dataset is
connected to a Grid. I can insert, update and delete data on the grid, but I
can only update my Database if push a button(save : Dataadaper.update(..)).
I would like to know if there is a way to update the database after the
in... more >>
thread hangs .. why ? + example project
Posted by Serge at 10/31/2003 10:19:33 PM
Hi,
I am having a thread hang problem in my c# code.
The example on the website: http://csharp.web1000.com/ is a
simplified version of my problem.
You will see in the form that a method TestThread increments a number in the
textbox on the form.
TestThread is called from a worker t... more >>
value type
Posted by RickN at 10/31/2003 10:15:36 PM
If you return a struct that holds an array of strings,
is the array of strings passed by value or by ref?
Thanks,
RickN
... more >>
Panel scroll event?
Posted by _Andy_ at 10/31/2003 9:30:16 PM
I've seen this question asked before, but no answer is visible.
Is it possible to determine when the user scrolls an auto-scroll
panel?
... more >>
is it possible....? (involves Reflection.Emit)
Posted by Chris LaJoie at 10/31/2003 7:50:01 PM
I'm wondering if it's possible to modify an existing program's CIL for the
purpose of "patching" that file. If so, would I have to rewrite the entire
function I wish to update (using Reflection.Emit)?
Thanks
... more >>
Count zip file downloads.........
Posted by adam at 10/31/2003 5:29:51 PM
How would i count how many times a file has been downloaded?
I want to do this C# and ASP.NET. Could any one point me to write direction.
Thanks
... more >>
Question about unsafe code
Posted by Ray Z at 10/31/2003 5:25:52 PM
hi, there
I have a question about unsafe code. The following is my code:
private byte [] a = new byte [100];
private System.IntPtr b;
unsafe private Aa()
{
fixed (void * p = a)
{
b = new IntPtr(p);
}
}
my question is, after some time, the GC maybe change the posi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Add line numbers to RichTextBox
Posted by Miguel at 10/31/2003 4:50:29 PM
Hi,
Can anyone help on how to add a line number section to a RichTextBox? In the
same way any code editor have...
thanks in advance
... more >>
FTP with C#
Posted by Victor at 10/31/2003 4:48:19 PM
Is there anyway to send files via ftp using a method other than
sockets in C#. I know there are the wininet api commands, but I really
cannot find or think of another method.
Most of the examples I have seen on the net regarding C# sockets
require a server app as well as the client app, but ... more >>
ArrayList.RemoveAt(i)
Posted by Alex Ting at 10/31/2003 4:30:57 PM
Hi Everybody,
I have an issue about deleting an object from an arrayList.
I've bounded a datagrid using this code
where it will first run through all of the code in loadQuestions() and bind
a arrayList to the datagrid.
private void BindQuestions()
{
dataGridQuestions.DataSource= thi... more >>
Calling C++.NET code from C#.NET code
Posted by David Elliott at 10/31/2003 4:13:57 PM
I have source code for a 3rd party product. The product is written for traditional C++. There
was a VS .NET Solution File that was provided for compiling the DLL.
I have compiled the code using the VS .NET 2003 C++.NET and am now trying to build some
demos to test the features.
My quest... more >>
invalid Cast
Posted by Steph at 10/31/2003 3:30:00 PM
Hello,
I'm using COM object in an application. One method used give an object wich
type is object.
When I use a GetType on its, I have "System.String[*]".
I try to convert it to loop on the array of string but I have an exception
(Invalid Cast Exception)
Here is my code :
myFormule ... more >>
protected + virtual
Posted by Eric Cadwell at 10/31/2003 3:24:24 PM
If I mark something protected virtual I really get protected OR virtual. I
see that the C# spec allows protected AND virtual but the compiler does not.
How would I make such a change to the IL?
Thanks,
-Eric
... more >>
C# or .NET bounds checker utility
Posted by Carlson Quick at 10/31/2003 3:19:39 PM
Hi, I am doing the regressive testing for a product that is about to ship,
and I would like to know just how throrough my testing has been. What I am
looking for is some kind of code coverage utility for c# code that can
determine how much a set of code gets exercised during runtime. It seems t... more >>
my head is spinning with regex
Posted by Daniel Billingsley at 10/31/2003 3:07:12 PM
First, if MSFT is listening I'll say IMO the MSDN material is sorely lacking
in this area... it's just a whole bunch of information thrown at you and
you're left to yourself as to organizing it in your head. Typical learning
starts with basics and progresses through increasingly complex informat... more >>
newbie C# question
Posted by Bob at 10/31/2003 3:04:07 PM
Trying to determine if I can use C# to write programs to run on the latest
version of the PocketPC. The website isn't clear, at least to me. At one
point they talk about using embedded VC++ or embedded VB, then they say they
are dropping support fo eVB. Another part actually gives an example i... more >>
UInt32 error?
Posted by Michel Racicot at 10/31/2003 2:53:47 PM
Hi there, The following code is troubling me:
UInt32 nOffset = nStringEntriesOffset + (40 * nIndex);
nStringEntriesOffset is a UInt32 containing 2124
nIndex is a UInt32 containing 5213
After the execution of the above line, nIndex equals to : 14036 !!!
What the hell is hapening?
... more >>
Mouse Wheel Scrolling Causes DataGrid To Loose Focus
Posted by Bryan Masephol at 10/31/2003 2:48:37 PM
Hi All
I got a datagrid and a ComboBox on a form. I populate the combobox with
years for all the data avaiable. When the user chooses a year the datagrid
is populated with the specific years information.
Problem... when the users scrolls the datagrid with the mouse wheel it work
for 2 whe... more >>
Question about comment format.
Posted by news.microsoft.net at 10/31/2003 2:40:25 PM
When I wrote <summary> comment for a function. I wrote:
/// <summary>
/// Line one.
/// Line two.
/// </summary>
I want the intelligence mechanism display:
Line one.
Line Two.
but it display:
Line one. Line two.
They were put in one l... more >>
Autopopulating PDF files using C# in asp.net
Posted by cholan at 10/31/2003 2:39:22 PM
Hi all,
We are developing an asp.net application using C#. Right now we have a set
of pdf files. we need to auto-populated some field in the pdf file from the
database and show that in the browser.
Can anyone please suggest how to do that.
Thanks in advance
cholan
... more >>
Hide some event
Posted by cfyam at 10/31/2003 2:38:37 PM
I made a new UserControl, and I want to hide some event (like click..) when
the other user use the control view the property page! How can I do?
... more >>
Adding large amounts of text to a readonly TextBox
Posted by Dennis C. Drumm at 10/31/2003 2:26:11 PM
What is the best way to add several pages of text to a readonly TextBox? The
text does not change and was created in a Word rtf document but could as
easly be put in a ASCII text file. Can this be done using a resource or
something? Can TextBoxes be attached to data sources other than database
o... more >>
DataSets in Child Forms
Posted by 2003et at 10/31/2003 2:26:03 PM
Couldn't I create DataSet in child forms????
Is there any solution for this???
Thanks in advance!
E.T.
... more >>
Microsoft software written in C#
Posted by Craig at 10/31/2003 2:11:37 PM
Does anybody can tell which currently working products of
Microsoft are written in C# ?
Or which products will be written in C# ?
I've was told, as an example, that next generation of the
database SQL Server will be in C#, is that true ?
Regards,
... more >>
URL
Posted by anonym at 10/31/2003 1:36:43 PM
I am trying to get the URL from the user and then set it
for a webservice. This fails when the URL is not of the
right format and gives me URIFormatException. My question
is : Is there anything I could use in my form so that I
check for teh right format for URL even before calling the
webs... more >>
Handle leak in Socket.BeginConnect()
Posted by Bryan Mayland at 10/31/2003 1:28:09 PM
I've got a problem with a System.Net.Socket that is failing on
connect. Each time I attempt a connection, 3 handles are allocated,
and when the connect fails 2 handles are freed. If left retrying over
a long period of time the extra handles build up to several thousand
quite quickly. Here's t... more >>
Does anyone know how to access a C# assembly from Borland C++
Posted by Curtis at 10/31/2003 1:23:43 PM
I am in the process of migrating an existing project from
Borland C++ to C#. I don't want to just throw away all
the existing C++ code, so I need to be able to call C#
assemblies from Borland. I want all future development to
be done in C#. Does anyone know how I can accomplish
this???
... more >>
Custom class array syntax help
Posted by Mick at 10/31/2003 12:42:08 PM
Hello, I know C++ but am new to C# so bear with me.
I want to create an array of my own class. Something like this:
///////////////////////////////////////
class CLoginInfo
{
public string name;
public string id;
public string pw;
public CLoginInfo()/... more >>
where is the activex.NET ?
Posted by sqpost NO[at]SPAM hotmail.com at 10/31/2003 12:39:16 PM
Hi,
Is it possible to compile a C# class and embed it into a asp.net page
like an activex control?
When the client access the page, the embedded and compiled class will
be downloaded by ie, and the client-site script can access the methods
of that downloaded class.
Ofcourse the client sh... more >>
Debugging problem
Posted by Mario Pflucker at 10/31/2003 11:53:20 AM
Hi, all
I keep getting the message "There is no source code available for the
current location" when debugging an application. AFAIK it has nothing to do
with MS's explanation
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/ht
ml/vxgrfnosourcecodeavailableforcurrent... more >>
Stack Overflow Error in UserControl
Posted by Harvey at 10/31/2003 11:26:42 AM
Hello:
I would appreciate if anyone could tell me why the
following occurred in my WinForms app. I am using a User
control and everything was running ok until I defined the
following property:
public int Height
// Height of the control in pixels
{
get
{
return thi... more >>
How to get a Hex value of an integre
Posted by sasha at 10/31/2003 11:23:01 AM
Hi All
How to get a Hex value of an integre. i tried ToString("%x"), but it didn't
return the right value.
Any help is appreciated.
Thanks
Sasha
... more >>
How Can I Drive Tab in Data Grid
Posted by andrewcw at 10/31/2003 11:04:39 AM
I have a DataGrid. I update a CELL in the DataGrid with
the value the user choses from a DateTimePicker.
The update is only visible in the grid when I tab over to
an adjacent cell. How do I coerce/raise a Tab event after
I load the cell with the new date ?
Thanks Andrew ... more >>
Stream to XML
Posted by Janne at 10/31/2003 10:40:48 AM
I have a Stream-object with a serialized Xml-Object.
How do I load an XmlDocument with the data from the
Stream-object?
I have tried the code below but it won't work.
Try 1.
XmlDocument myXmlDoc = new XmlDocument();
myXmlDoc.Load(myStream);
Try 2.
XmlTextReader myXmlTextReader = new... more >>
Properly terminating connections
Posted by Ivan Demkovitch at 10/31/2003 10:40:31 AM
Hi!
I use following code to execute SP's on SQL server from my web page:
// Create Instance of Connection and Command Object
SqlConnection myConnection = new
SqlConnection(ConfigurationSettings.AppSettings["connectionString"]);
SqlCommand myCommand = new Sq... more >>
how to define function pointer in C#
Posted by ZhangZQ at 10/31/2003 10:38:16 AM
if there is a function in a win32 dll, it is definition is
int add(int a, int b);
how to define that function pointer in C#?
thank you very much!
... more >>
How to write the EXE file itself?
Posted by jiatiejun at 10/31/2003 10:32:56 AM
I want to write a Update program like Norton LiveUpdate,
but I canot how to update the Update program itself?
... more >>
Dynamicaly load and call a function in Win32 dll
Posted by ZhangZQ at 10/31/2003 10:32:12 AM
Is it possible to dynamicaly to local and call a function in Win32 dll(not a
..net assembly dll) in C# at run time, for example, a C# program popup a
dialogbox to let use input which Win32 dll to be loaded, which function to
be called, and what are the parameters to call the function.
Thank ... more >>
play sound
Posted by yuen at 10/31/2003 10:19:02 AM
How to play sound by C# without using WMP?
... more >>
wait a few seconds before next statement
Posted by dawn at 10/31/2003 10:16:51 AM
Hi,
I'm looking for a way to have my app wait a few seconds before performing
the next statement.
I've tried Thread.Sleep(), but that makes my app non-responsive sometimes.
Is there another way to do this?
Thanks
... more >>
C# and VB.NET
Posted by ·½®¶«L at 10/31/2003 10:06:32 AM
How can I call a VB.NET function form C#?
... more >>
mdicontainer in mdicontainer?
Posted by 2003et at 10/31/2003 9:57:54 AM
Is it possible to use nested MDIContainers?
In Visual C#, I want to use another MdiContainer in a MdiContainer.
But it gives error, saying that an MdiContainer cannot be child at the same
time....
Thanks in advance!
E.T.
... more >>
[assembly: AssemblyVersion("1.0.1.*")]: How is the * really handled
Posted by José Joye at 10/31/2003 9:47:51 AM
Does anyone know how the number inserted in place of the * is generated?
It does not seems to be stored in any files (at least not in the one that
are managed by SourceSafe).
José
... more >>
"is" vs. "as"
Posted by Bobby C. Jones at 10/31/2003 9:37:37 AM
Is there an advantage to either of these methods, or is it simply a matter
of style? I used to use the "as" method, but later gave it up for the "is"
method as the intent of the code seems a little clearer to me. I now have
some projects coming up where the baseTypeCollection will contain 5k to... more >>
InputBox() or equivalent functionality (Copy text to clipboard)
Posted by jburgoon NO[at]SPAM sakon.com at 10/31/2003 9:35:29 AM
I'm switching to C# from Delphi. I do a lot of database programming
and I need a quick and easy way to copy a failed SQL string into the
clipboard. In delphi I use InputBox() which allows me to copy the
statement. There is no InputBox() in C# so how do I most easily copy
the string to the cli... more >>
Managing Resize Event?
Posted by Dave Veeneman at 10/31/2003 9:29:36 AM
I'm creating a custom control that uses the OnPaint event to paint a
graphic. The graphic needs to resize itself when the control is resized.
Right now, I'm trapping the Resize event to trigger the paint. However, the
Resize event appears to fire repeatedly as the control is being resized,
which... more >>
Version Number in .NET service
Posted by djs_tn NO[at]SPAM yahoo.com at 10/31/2003 9:10:31 AM
Does anyone know how to set the version number in a .NET service?
There is no AssemblyInfo settings.
Thanks.... more >>
Question about different buils/compiles (dev, test, production enviroment) (Help needed !)
Posted by Benne Smith at 10/31/2003 8:47:36 AM
In our company, i have three servers;
1) a development server (mine only - here i make daily changes and test my
stuff)
2) a test server (for the users to test milestone builds - changes weekly)
3) production server (for when a new build is fully tested, and stable)
The problem is that the ... more >>
How to find Operating System calls in C++ code
Posted by Robert Robertson at 10/31/2003 8:25:31 AM
Hello Experts.
I'm a H/W guy (not S/W)
In a C++ code, I need to find/identify all calls that the program sends
to the Operating System (Linux).
What are the definitions, syntax etc... of such a calls
that I can trace them ?
Thanks,
Rob.
*** Sent via Developersdex http://www.develop... more >>
|