all groups > c# > november 2004 > threads for monday november 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
Time Problem
Posted by bernardpace NO[at]SPAM yahoo.com at 11/8/2004 11:56:14 PM
Hi,
I am creating a program, and when it is executed it stores the
time. Now at each second I will display the duration of the program
execution.
DateTime progExecuted = DateTime.Now;
I started a thread that is to be used only for the timer. In the
thread I have another object of type... more >>
Access Violation at addres....???
Posted by GeRmIc at 11/8/2004 11:24:03 PM
Hi,
I'm writing a C# Library that interacts with an C DLL, the resulting DLL is
used by an application and it works fine on my PC but when i copy the
resulting DLL to another PC running the same application it gives an error
Access violation at address ..... in module ..... Read of address... more >>
remoting design
Posted by Sharon at 11/8/2004 9:59:17 PM
Hi to all.
I have a server app. to which i need administration client.
The client will connect to the server via remoting.
I'm thinking of making one class on the server to serve the admin client.
Since the client must be authenticated, each method call will have to
include a session id, given ... more >>
Scroll bars in treeview - how can you get onscroll as well as their position?
Posted by Benny Raymond at 11/8/2004 8:41:11 PM
I've looked around msdn for about an hour now and can't figure out how
to place an event when the user scrolls, or even how to get the value of
where the scroll bar is actually placed...
Anyone know how to use this event, or how to get the scroll bar info?
~Benny... more >>
Anyone have a boilerplate for command line/multiple argument processing??
Posted by Drebin at 11/8/2004 8:25:22 PM
I have a console C# app that needs to take in a bunch of arguments. I'd like
to process them in any order, for the life of me, I can't remember
specifically how to do that in C++ (been a loooonnng time) and know there
must be a similar shortcut for C#?
In short, I want to be able to easily ... more >>
Overhead in transition between managed/unmanaged code
Posted by _BNC at 11/8/2004 8:24:06 PM
I've been adapting an older unmanaged C++ legacy app to C#---with limited
success. The original app made use of an older, but straightforward, C
DLL that worked efficiently under the VC++ 6 model.
To adapt to C#, I've wrapped the older DLL calls in an unmanaged C++
class which pretty much jus... more >>
exception
Posted by Itzik at 11/8/2004 8:20:38 PM
need help
i Have this error in my project:
"An unhandled exception of type 'System.Threading.ThreadStateException'
occurred in system.windows.forms.dll
Additional information: Could not instantiate ActiveX control
'648a5600-2c6e-101b-82b6-000000000014' because the current thread is not in
a ... more >>
what is going on in Close()
Posted by Ashish at 11/8/2004 7:56:53 PM
It might be basics for many but I never gave attention on this before.
Steps:
Add 2 forms (Form1/Form2) in application.
Create a object in Form1 for Form2.
Form2 f2 = new Form2(); //line 1
//f2.Show(); // line 2
f2.Close(); // line 3
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
HOW TO Make a Draw Line Controls (Can Resize and Dele etc)
Posted by smilnet at 11/8/2004 7:49:05 PM
I want to Make a Draw Line Contrls,Please Help me
Thanks!
... more >>
highlight row??
Posted by perspolis at 11/8/2004 7:37:25 PM
how can i highlight a row in the datagrid??
... more >>
Slowness in Serialize
Posted by _BNC at 11/8/2004 7:17:19 PM
I've got an ArrayList of objects that I'd like to save/retrieve as quickly
as possible. Each item in the arraylist is an object with about 50
variable-length strings; many zero-length, some about 80 chars or so,
if that matters.
I figured I'd set the [Serializable] attribute on the object and... more >>
Close an excel app in C#
Posted by Richie at 11/8/2004 5:45:05 PM
I want to close excel application from C#, this is the piece of code I
am trying
"System.Runtime.InteropServices.Marshal.ReleaseComObject(excelApp);"
GC.Collect();
It ain't working ! Any ideas please !!
Also tried excelApp.Quit();
This is fine, but on viewing "Task List" the application ta... more >>
why many events vanished in vs .net
Posted by Fei Li at 11/8/2004 5:17:02 PM
take TreeView as an example. I could not find GotFocus and LostFocus events
in Properties Windows of VS .net 2003. But they are there. Why?
Thanks
... more >>
WebApp Parent/Child windows
Posted by Tomas Vera at 11/8/2004 5:00:36 PM
Hello All,
I'm working on a web app that will simulate a Windows app.
One of the items that I've trouble reproducing is the parent/child
interaction that might occur between a windo and popup custom dialog
box (example: right click an item and bring up a Config/Properties
dialog of the select... more >>
datagrid on a windows form
Posted by ALI-R at 11/8/2004 4:54:51 PM
have a datagrid on a windows form which bound to a dataset ,one column
contains boolean data which datagrid shows checkbox for it .I don't want
checkbox ,instead I want "yes" or "no" and I want "no" columns to be bold
,it is easy to do that on web forms by using prepair event or so on ,but
her... more >>
Building a Single Assembly EXE or DLL with C# and C++ Code
Posted by asimjalis NO[at]SPAM gmail.com at 11/8/2004 4:23:46 PM
Building a Single Assembly DLL with C# and C++ Code
I am trying to create a single assembly composed of managed C++
and C# code, and I want to do this on the command line.
I have confirmed that I can do this in Visual Studio 2005 using
the steps described here:
http://blogs.msdn.com/frankp... more >>
IntelliSense!?
Posted by Nedeljko Tadic at 11/8/2004 4:18:30 PM
IntelliSense stop working in my C#...
And that's happening just in one solution, in others everything seems to be
ok...
How do I fix it????
... more >>
Create a user control with other shape than rectangluar?
Posted by Mats-Lennart Hansson at 11/8/2004 3:13:15 PM
Hi,
Is it possible to create a user control (for a windows application) that is
not rectangular but, for example, is like a circle?
When I put two controls close each other in a form, you can always see the
edge of the overlying control...
Thanks,
Mats-Lennart
... more >>
TabControl & creategraphics()
Posted by JH at 11/8/2004 3:06:23 PM
I have a tab control in my form. I am trying to create a dynamic pie chart.
If I use the following code,it works fine on the main form.
this.CreateGraphics().FillPie(brushtargeted,240,200,200, 200, 0,
inttargeted);
However, I want the pie chart to be on tab control area and if I try both o... more >>
From java packages to C# assemblies, how to redesign?
Posted by flam NO[at]SPAM rfranco-dot-ca.no-spam.invalid at 11/8/2004 2:56:17 PM
Hi
I am a new c# programmer since my project let java on the tablet to do
programming on windows. I was building an application all customized.
I had :
1. my own custom widgets (text areas, buttons, backgrounds).
2. what I called my components (group of widget ) ex: group of my
buttons... more >>
Assigning Data to byte[]
Posted by TRW1313 at 11/8/2004 1:38:07 PM
I'm looking to populate a byte array of some fixed size to send out over
a UDP connection. The data in the byte array is mixed between characters
and binary.
I'm a beginner to this language.
I can assign the character data by the byte. However, I'm not sure how I
would
assign a binar... more >>
Timer disposed before getting to my destructor?
Posted by Jim H at 11/8/2004 1:20:16 PM
I have a class object that creates and uses a System.Threading.Timer. In
the destructor for my class I cancel the timer using timer.Change(infinite,
infinite) then I call timer.Dispose() to clean it up. I get an exception
about unable to access a disposed object when I call timer.Change. Th... more >>
Question about FileSystemWatcher
Posted by Becci at 11/8/2004 1:17:09 PM
Is there a way to know, when we get an "ONChanged" event
from the filesystemwatcher, what actually changed, file, last
access, last write, etc? Seems they are all bundled into the
one event?... more >>
ExitWindows
Posted by Nedeljko Tadic at 11/8/2004 12:58:33 PM
How do I exit windows from c#, without using ExsitWindows API function???
... more >>
what is dataset name
Posted by ALI-R at 11/8/2004 12:56:21 PM
in the following statement why we have to give Dataset a name? what is it
used for?
Dataset myDataset =new Dataset("name_of_Dataset");
what is "name_of_Dataset" and what is its usage?
thanks
... more >>
DirectoryEntry Search Errors
Posted by Jay at 11/8/2004 12:50:08 PM
Please excuse the double post if your reader shows this
as a new and as a reply. I can only use the web interface
and it puts my reply 34 pages in.
I am getting an error while trying to do a LDAP lookup
using the DirectoryEntry Object. What is caught is:
System.Runtime.InteropServices.CO... more >>
...contd SQLDMO events and C#
Posted by C# beginner at 11/8/2004 12:04:35 PM
sorry, this is the continuation from my previous posting.
Private Sub oBackupEvent_PercentComplete(ByVal Message As
String, ByVal Percent As Long)
ProgressBar1.Value = Percent
End Sub
I need some help translating this into C# or implementing
it. There is a Percent_Complete event expo... more >>
SQLDMO events and C#
Posted by C# beginner at 11/8/2004 12:01:45 PM
Hi all,
I am using SQLDMO.Backup for backing up SQL server
databases. I need to implement a progress bar to show the
progress. I have some sample VB code that is like this:
Dim WithEvents oBackupEvent As SQLDMO.Backup
Set oBackupEvent = oBackup ' enable events
... more >>
Add GAC assembly to VS References?
Posted by Janaka at 11/8/2004 12:01:33 PM
I've created a strong named assembly and added it into the global assembly
cache. How can I add this to the list of assemblies VisualStudio.NET lists
when adding a reference? I always have to browse to the dll and select it.
I've installed 3rd party products and had these show up straight aw... more >>
an error of setting comboBox.SelectedValue
Posted by chen qi at 11/8/2004 11:31:17 AM
## i have a table like this:
myID myName
------------------------ -----------------------------
1 aaa
2 bbb
3 ccc
## in VS2003, i write code:
//
// step 1: create a dataset, and load data in tab... more >>
get network login name
Posted by owyn at 11/8/2004 11:28:02 AM
One of my coding partners swears you can capture the network login name so
that we can use it to set security levels. If that can be done how do you do
it. References to articles etc would be helpful... more >>
How to use WebDAV to create an appointment in Exchange/outlook
Posted by Groucho at 11/8/2004 11:01:24 AM
Hi,
Is there any C#-code available which demonstrates how one can create
an appointment (with for example the OutOfOffice property set to true)
for an Exchange Client (Outlook) using WebDAV?
Cheers,
Chris... more >>
"new byte[132]" alignment on 16 bytes
Posted by Olaf Baeyens at 11/8/2004 10:51:19 AM
I am porting some of my buffer class code for C++ to C#.
This C++ class allocates a block of memory using
m_pBuffer=new BYTE[...];
But since the class is also used for pointers for funtions that uses raw MMX
and SSE power, the starting pointer MUST be starting at a 16 byte memory
boundary... more >>
Shortcuts (.lnk)
Posted by Jeti [work] at 11/8/2004 10:14:34 AM
How to read information from .lnk file?
I'm interested in "Target" and "Start In" properties...
thanks
... more >>
Localization of ApplicationContext
Posted by Tamir Khason at 11/8/2004 9:53:20 AM
While working multilingual with Form application which uses default
application context by setting
CurrentThread.CurrentUICulture we can solve almost all problems, BUT while
using custom application context I have to add reloads to each one of forms
envolved, due for some reason it looks like... more >>
Solution question?
Posted by jiangyh at 11/8/2004 9:47:06 AM
hi guys:
I have a task that need a windows application and a web applicition.That
windows application run in the client side and web application run in the
server side.
My question is can I add that two project in one solution.
regards jiangyh
thanks in advance.greetings.
... more >>
pls help: how can i select a just inserted row in a datagrid (using a dataset as datasource)?
Posted by Juan at 11/8/2004 7:58:30 AM
Do i have to loop trough a datagrid in order to find and select a row just
being inserted in the dataset connected to the data grid? is there any event
i can capture in the datagrid to obtain the inserted row? I need to obtain
its position in the datagrid...
Any help is really welcome.
... more >>
Lost the licenses.licx file
Posted by Frank Rizzo at 11/8/2004 7:44:10 AM
I managed to lose the licenses.licx file and now the project is
complaining "error reading resource file licenses.licx..."
I am using a mixture of Infragistics and DevExpress controls. How do i
get the file back (i didn't create it in the first place), regenerate it
of whatever?
Thanks.... more >>
ListView Keeps Flickering
Posted by wackyphill NO[at]SPAM yahoo.com at 11/8/2004 7:42:57 AM
I've got a Listview control (Detail mode) that I'm adding rows to on
another thread from a DB query.
The result is about 32,000 rows ans takes a while to finish.
I'm adding the rows like this : lv.Items.Add( lvi );
It seems the entire control is redrawing even though usually the new
rows ... more >>
Post-Build Steps in Visual Studio .NET
Posted by bnc mag at 11/8/2004 7:30:22 AM
Hello,
Does anyone know how I can add post-build steps to my C#.NET project
using user/system environment variables?
For example, I have a user environment variable named "CommonPath" which
points to "C:\CommonPath"
I would like to copy my resulting DLLs to this directory.
Clicking on ... more >>
Reading BLOB field into Image Web Control - Not working properly
Posted by jrcastro20 NO[at]SPAM yahoo.com at 11/8/2004 7:23:33 AM
I have some problems with the way I am showing the BLOB fields in the
Image web controls. It does work on my localhost though sometimes I
need to hit Refresh for the images to load properly. However, when I
try to access the same page from another machine or when I test the
code on a remote serv... more >>
webclient.downloadfile
Posted by mk at 11/8/2004 6:40:05 AM
Hi,
I am trying to download a file from a remote webserver. I create the
following:
string username="remoteusername";
string password="remotepassword";
string URI="http://remote.target.server/getdocument.asp?ID=sometest.pdf";
NetworkCredential nc = new NetworkCredential(username, passw... more >>
is't possible 2 run .net apps without .net framework support?
Posted by Fady Anwar at 11/8/2004 5:28:02 AM
hi
i want 2 run apps which i have coded with C# on machines that don't have
..NET installed and without installing .NET with the setup project u can say i
want a way 2 compile msil 2 binary files
thanx... more >>
Inputting special characters inside xml
Posted by Reshma at 11/8/2004 4:05:02 AM
Hello,
How to input special characters inside xml like < (Less than) , >
(Greater than) as a text
Thanks,... more >>
Code Behind error for checkbox in datagrid
Posted by Stephen at 11/8/2004 1:57:02 AM
I have the following asp:checkbox as a row in my datagrid. and im trying to
write code on the onCheckedChanged event of it. The code im trying to write
is incorrect as im getting build errors. What im trying to do is populate a
label on my aspx page with the contents of the row in the databa... more >>
[C#] Block (Un)Indenting in RichTextBox.
Posted by Leon Friesema at 11/8/2004 12:50:53 AM
Hiyall!
I have a RichTextBox inside a UserControl which should be able to
indent a block off text (or UnIndent for that matter) like the
SourceEditor of VS2003 or WinWord does.
All controls on the form (except for the RichTextBox) have
TabStop=False and I have a KeyDown event handler which ca... more >>
MDI and child form
Posted by Dean L. Howen at 11/8/2004 12:12:42 AM
Dear friends,
I set a form into MDI form with a background image(or some controls), it
away
in front of the child form which I call at runtime. I get know this doesn't
happen at Visual C++ 6.0, or Visual Basic 6.0.
I need your help to solve this problem.
Thanks so much
... more >>
Unassigned variables Confusion
Posted by Rene at 11/8/2004 12:09:35 AM
I understand that if I don't assign a *local* variable before I use it, the
compiler will generate a "Use of unassigned local variable" error. What I
don't get is why doesn't the compiler just implicitly assign a default value
to my unassigned variable?
At this point you are getting ready t... more >>
|