all groups > c# > april 2004 > threads for monday april 12
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
"The process cannot access the file" when trying to write to file the second time...
Posted by FrzzMan at 4/12/2004 11:59:38 PM
The first time I called this function, everything went well, but the
second time I called it. An Exception thrown, do you know why?
An unhandled exception of type 'System.IO.IOException' occurred in
mscorlib.dll
Additional information: The process cannot access the file
"E:\......\bin\De... more >>
Credit cards charge
Posted by jake NO[at]SPAM qucode.com at 4/12/2004 11:54:11 PM
I in the process of building a web-site using .net (C#). I just
finished building the shopping cart. What I need is to find examples,
details, or code packages that I can include in my web-site to let
users checkout by charging a credit card. I would appreciate all the
help I can get.
jake... more >>
idl
Posted by Dave at 4/12/2004 10:54:10 PM
Hi,
I am writing an atl exe server on visual studio dot net, and all the idl
section's are written as attributes and the idl file create every time after
compilation.
But I am using the com object inside the exe project so I need to import the
tlb file but the tlb is created after compilati... more >>
How to modify a Hashtable entry value in-place during enumeration?
Posted by Vladimir C. at 4/12/2004 9:56:48 PM
Hashtable map = new Hashtable();
map["first"] = 10;
map["second"] = 20;
foreach(DictionaryEntry e in map)
{
e.Value = 100;
Console.WriteLine("{0}: {1}", key, map[key]);
}
For some reason, the code below doesn't compile with some not very helpful
error message.
Please note tha... more >>
Text selection in AXWebBrowser
Posted by JSM at 4/12/2004 9:52:18 PM
Hi,
Would there any reason why I can't select text in an axWebBrowser control? I
use the Write method of the IHTMLDocument2 object to populate the control
with built on-the-fly html which looks fine but I can't select any text. I
have "onclick" and "oncontextmenu" event handlers but I have tri... more >>
Newbie Database in C# Qsn - Help
Posted by Ash at 4/12/2004 9:15:30 PM
Hi,
I'm very new to C# and OO, and am currently working on a very simple
solution with two projects in it using VStudio.NET 2003.
The first project in the solution is a Windows Application, and the
Second one is the class Library. The class library contains
constructor, which takes a connec... more >>
PictureBox and repaint event
Posted by user NO[at]SPAM domain.invalid at 4/12/2004 9:05:31 PM
Hello
i have PictureBox p1:
p1.Paint += new PaintEventHandler(MyFunction);
....
public void MyFunction(Object Sender, PaintEventArgs e)
and it works fine but: when i call:
p1.Refresh();
MyFunction() ADDS everything to my picture, and i want to
repaint it from the begining. How can i do i... more >>
random number generating
Posted by user NO[at]SPAM domain.invalid at 4/12/2004 8:13:43 PM
Hello
Is there any other class for generating random numbers (beside Random) ?
Thanx
Michal
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Thread array
Posted by Ricardo at 4/12/2004 7:17:10 PM
how can I create and use a thread array???
... more >>
Insert record with memo field in Access DB
Posted by microsoft.public.dotnet.languages.csharp at 4/12/2004 7:00:39 PM
I am trying to insert a record into an Access database that has a memo
field. It keeps giving me an error.
I am using C#, Access 2000 and OleDB.
Anyone know what the trick is to doing this?
Thanks,
Marty
*** Sent via Developersdex http://www.developersdex.com ***
Don't just par... more >>
Help in Treeview
Posted by Anil at 4/12/2004 6:28:04 PM
I want to invoke LabelEdit event of TreeView/ListView(property set to true)
from another event what should I do?
The scenario is like windows explorer. If u click F2, selected node or item
will be editable. How to map that LabelEdit event with MenuClick event.
Please help me out.
... more >>
PaintBox Paint event
Posted by user NO[at]SPAM domain.invalid at 4/12/2004 5:56:57 PM
hello
I have:
public void MyFunction(PictureBox b, PaintEventArgs e)
how can i set from code this function as PaintBox Paint Event handler ?
I tried:
box.Paint=MyFunction() and similar but always received errors..
Thanx
Michal
... more >>
include file asp.net
Posted by Selen at 4/12/2004 5:11:58 PM
I want to use include file...I am usung following codes.But it gives error:
There can be only one page directive .What can I use for include file?I am
using Asp.Net C#
<!-- #include file=".\documents\AllDoc.aspx" --> or
I tried
<!-- #include virtual=".\documents\AllDoc.aspx" -->
yazdýðýmda
... more >>
Printing a PDF in C#
Posted by cybertof at 4/12/2004 4:59:32 PM
Hello,
Is there an easy way to directly print a .pdf document from a c# app ?
Regards,
Cybertof.... more >>
ASCII values
Posted by Drew at 4/12/2004 4:38:30 PM
I need to display the ASCII numeric values of each letter in a string.
I think strings are stored in unicode in C# (?)
I can convert the string to a char array but how do I get the ascii values
of each character?
Thanks,
Drew
... more >>
Why won't Visual C# let me set the hot spot on my cursor?
Posted by antipode at 4/12/2004 4:06:03 PM
That's about it. If I make a cursor of any size and color depth, the button to set the hot spot stays disabled. I'm at my wit's end, and yet I know it's got to be something stupid I'm missing.... more >>
Nonplussed by scoping - any explanations?
Posted by solenoidpowered NO[at]SPAM yahoo.com at 4/12/2004 3:48:08 PM
Hi-
I am confused by C#'s scoping of variables within a child scope (for
loop, conditional, block of code), and was hoping someone could
explain. Here's the offending code:
for (int i=0; i<10; i++)
{
/////
}
int i = 100;
The compiler complains:
A local variable named 'i' cannot ... more >>
Attach causes the FILE references to the system dll's
Posted by Ramesh K at 4/12/2004 3:32:08 PM
Hi All,
During Attach to a process like DLLHOST ,DLLHOST has FILE references to
the system dlls like " odbc32.dll etc..(One can observer this in process
explorer tool of Sysinternals.com by selecting the "View Handles" from the
View menu)
But during the Detach process same handles are no... more >>
Canvas
Posted by user NO[at]SPAM domain.invalid at 4/12/2004 3:29:00 PM
Hello
I'm looking for component in which i could draw calling functions like:
DrawLine(), DrawPoint() , SeTBrush().
(.net + C#)
Thanx
Michal
... more >>
Adding Cut/Copy/paste functionality to my App?
Posted by Amos at 4/12/2004 3:16:44 PM
How can I add Cut/Copy/paste functionality to my MDI Windows app? I found an
article that explains the Clipboard.SetDataObject method but it takes a
specific object as parameter. Since I may have several child forms open in
my MDI, how can I tell SetDataObject to copy the text in the object that ... more >>
Convert.ToDouble ?
Posted by user NO[at]SPAM domain.invalid at 4/12/2004 2:51:16 PM
Hello
i have problems with this function, always thru exception
for all data, for example: Convert.ToDouble("545.0"). Why ?
I want to convert string data in different format into double,
i have formats like:
37.439351
2.00000e+02
How can i do it most easily ?
Thanx
Michal
... more >>
FileStream
Posted by user NO[at]SPAM domain.invalid at 4/12/2004 2:06:08 PM
Hello
i have FileStream object associated with file.
I want to read data from that file but only to new line character.
How can i do it ?
Thanx
Michal
... more >>
GC destructor calls
Posted by astro_muppet NO[at]SPAM hotmail.com at 4/12/2004 1:24:18 PM
I am wondering if someone could please explain the behaviour observed
in the following example:
class Contained
{
~Contained ()
{
}
}
class Container
{
Contained m_oContained;
public Container ()
{
m_oContained = new Contained ();
}
~Container ()
... more >>
Want to update @parameter in select
Posted by Mike at 4/12/2004 12:44:04 PM
I have a dataadapter that has "where field_name = @parameter". I need to
replace the @parameter and then call fillschema and then fill. I've looked
too long in the help files and haven't been able to find the code.
... more >>
Can a DataGrid use a collection?
Posted by Peter at 4/12/2004 11:21:05 AM
Hello
Thanks for reviewing my question. I believe I read that a DataGrid can point to a collection but would like to know if you can point to an example. How does the DataGrid know what are the column headings? I created my own collection and would like a DataGrid on a Form to use it. For exam... more >>
Additional information: Object reference not set to an instance of an object.
Posted by michael walser at 4/12/2004 11:15:54 AM
I get this message in "Spaltenbreite definieren" => Definition for Columns
Width
An unhandled exception of type 'System.NullReferenceException' occurred in
WindowsApplication1.exe
Additional information: Object reference not set to an instance of an
object.
Please help me.
Thanks
... more >>
date-time validation
Posted by Chris at 4/12/2004 10:47:24 AM
Hi,
I have a texbox in a webform that is supposed to hold Dates in a specific
format :
e.g. 20-12-2004
What is the best way to make sure that the entered data is in the correct
format ?
Is there a possibillity to use a special kind of control for that purpose,
as in Winforms where one ... more >>
c#.NET Connectivity to AS400 (OS/400)
Posted by george r smith at 4/12/2004 10:33:29 AM
We need to create a C#.Net data access layer to an AS400 running the OS/400
operating system.
Will someone please tell me where to go and where to start. I have found
some information on an OLEDB component on the Microsoft web site in the Host
Integregation Server documentation but is this ove... more >>
Where is the Time in DateTimePicker Control?
Posted by Peter at 4/12/2004 10:26:02 AM
Hello
Thanks for reviewing my question. I would like to know how do you select the time in the DateTime picker control? I have the control's format set to Time. When you click on the down arrow, I get the month display but no time. Where can you specify the time
Many Thanks to the Exper
Pet... more >>
display checkbox in datagrid.
Posted by michael walser at 4/12/2004 10:06:57 AM
display checkbox in datagrid.
I find that there are 3 status:
checked - check box with click icon
unchecked - blank in check box
unknown - click icon but color in gray.....
How can I set the check box only 2 status, checked and unchecked?
Here my code:
==========
private void CreateM... more >>
RegEx : Match and replace term within HTML tags
Posted by mike c at 4/12/2004 9:55:54 AM
I have a search app that searches local HTML files for a specified
term. I then display the pages that contain the term.
I would like to highlight the search term within the HTML when it is
viewed.
I have the following regular expression code:
string searchTerm = "(?<STARTTAG>(<[^>]*>.*))... more >>
NOT possible running .NET code locally in IE????
Posted by Tobias Nilsson at 4/12/2004 9:23:24 AM
I have almost exactly the same problem as the guy below.
Is it NOT possible running .NET code locally in Internet Explorer WITHOUT a
webserver????
I've done some C# code and compiled to a .dll ... using the OBJECT tag and
CLASSID all works fine when I upload it to a webserver... but trying to ... more >>
CDO 1.21 AddressEntry.Fields
Posted by Mike at 4/12/2004 9:01:02 AM
Hello
I am trying to read information from the GAL using C# .NET. I am able to return a list of all the addresses and names, however, when I walk through each address I cannot access the MAPI.AddressEntry.Fields(proptag) property. VS .NET will not allow the code to compile. I am looking to pull... more >>
declare array inline
Posted by Laszlo Szijarto at 4/12/2004 7:51:53 AM
Thank you in advance,
I am trying to populate a HashTable object with a value that's an array, but
I don't want to put in two lines of code for each entry.
rather than saying
int[] value = {1,2,3};
hashTable.Add("test",value);
is there any way to combine this into one line
I've trie... more >>
Quitting a console application
Posted by Paul Danko at 4/12/2004 7:51:09 AM
Does anyone know how to immediately end a C# console application. C/C++ provides an exit(n
function.... more >>
.Net or J2EE?
Posted by Jonathan Li at 4/12/2004 7:31:59 AM
Hi there,
I posted a thread in another group. I could not get satisfactory
feedback. I would like to try if anybody in this group can help me out.
My plan was, to develop components at server side (something like EJBs).
For data entry and operation application functions, I can use C#.Net.
F... more >>
What are various ways to pass parameters in C#?
Posted by anonieko NO[at]SPAM hotmail.com at 4/12/2004 7:17:56 AM
Parameters are passes by values by default
+----------+---------------+-----------------------+--------------------------+
| Type | Example | Passed by Value | Passed by Reference |
| | |(value parameter) | (reference parameter) |
+----------... more >>
Using C DLL allocated memory in C# then destroying it.
Posted by huseyinozkan NO[at]SPAM uekae.tubitak.gov.tr at 4/12/2004 7:00:07 AM
I'm calling a function from a C DLL in .NET(C#).
The func. seems so:
void Sample(char *s)
{
s= calloc(6,1);
strcpy(s, "hello");
}
When I declare this function in C# I use the following notation:
[DllImport("sample.dll", CharSet = CharSet.Ansi)]
public static extern void Sample(... more >>
Adding columns to a table
Posted by Fabrizio at 4/12/2004 6:26:04 AM
Hi
in my appplication, in runtime, i would like to add to a MSACCESS table 1 more column, then change the structure of the table
I tried with dataset and dataadapters, but won't work
there is a better method
thank yo
Fabrizio... more >>
My application screen gets truncated when run on XP operating sys
Posted by seash at 4/12/2004 6:11:03 AM
H
iam developing my windows form application(ide:visual studio.net 2003, visual c#) on windows 2000 professional operating system , but when i run the exe on Xp operating system, the screen (windows form) of my application gets truncated at the end of the screen
i have to make changes to the fo... more >>
PeekMessage in .Net
Posted by Jeff at 4/12/2004 5:16:51 AM
What is the .Net Framework equivalent of the Windows API function
PeekMessage? Or any other method that will do the same thing. I simply
need to check to see if there are messages waiting to be processed.
Thanks!
... more >>
How to put value in a System.Drawing.Point object?
Posted by Bilo at 4/12/2004 3:59:18 AM
Need Help with
System.Drawing.Point b = new System.Drawing.Point(int x , int y)
I want to move a window when mous is down and mous is moving
private void label1_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left && video.Fullscreen != true)
{
Sy... more >>
snapshot from tv
Posted by mister at 4/12/2004 1:41:22 AM
i need to get snapshots from tv..
so is there wand in csharp that will do that for me when i swing it ,
saying magical words meanwhile?
what is the magical words ? where should i start? why is the sun so
bright?
any sample code , sources, resources, and help will be appreciated..
... more >>
What Exceptions to catch
Posted by Steven Blair at 4/12/2004 1:38:22 AM
Hi,
I need to catch exceotions on File.Delete()
After checking the help, I have noticed that thgere are serevral
Exceptions that can be thrown.
My question is, should I catch all thes Exceptions, or if I simply do
the following:
try
{
}
catch(Exception e)
{
e.Message; //do somet... more >>
|