all groups > c# > june 2005 > threads for wednesday june 29
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
How to read a file from a different drive on the same machine C# windows based application
Posted by TaeHo Yoo at 6/29/2005 11:56:36 PM
The file I would like to access in located in C drive and the
application which reads the file is located in E drive. When it trys to
read the file, it generates an error
Error: Request for the permission of type
System.Security.Permissions.FileIOPermission, mscorlib,
Version=1.0.5000.0, Cu
... more >>
const Vs static
Posted by Ant at 6/29/2005 9:42:02 PM
Hi,
I'm having trouble trying to define the difference between declaring a field
in a class const or static. i've noted that when referencing them from the
class that a const is symbolized with a field symbol & a static has a blue
box. What is the difference? What is the blue box? Has it go... more >>
Why would you not use "checked"?
Posted by Brett at 6/29/2005 9:12:59 PM
Why would you not want to use checked on any type of mathematical operation?
Or use unchecked for that matter?
Thanks,
Brett
... more >>
open a c# project in older version of VS .NET
Posted by Claudia Fong at 6/29/2005 8:14:43 PM
Hello,
I'm having problems to open a project that I made in VS 2005 in my
laptop. I have an older version installed in my laptop (VS 2000 or 2002,
I'm not sure right now).
Is there a way so I could open and run it in an older version of VS
..NET?
Cheers!
Claudi
*** Sent via D... more >>
Pleas help - collection property indexer worries...
Posted by almurph NO[at]SPAM altavista.com at 6/29/2005 8:02:09 PM
Hi,
Hope that you can help me please. I'm trying to implement a simple
collection property using ArrayList as an indexer. i want this to be
pretty generic
However I'm having difficulty with the conversions. I know that
System.Collection.ArrayList accepts and returns most of it's members a... more >>
continue to run application after logging off
Posted by medhanush NO[at]SPAM yahoo.com at 6/29/2005 6:15:22 PM
Hi,
Can somebody please tell me how to keep application running even though
user logs out ?
scenario is, user logs in, starts an exe and logs out, exe need to run
for couple of hours.
One solution is to use service instead of exe. Any other ideas ...?
and also user logs-in using Remote Deskt... more >>
rules engine ideas? Trying to prevent tons of conditional branches in a logic filter.
Posted by hazz at 6/29/2005 5:02:06 PM
before I start filling up the first page of perhaps many pages of code with
if/then or switch:case buckets, I wanted to step back and see if there is a
better way...
I will have a table with up to 300 rules in it. Maybe more... In each Score
table there is a column which will refer to a domai... more >>
Newbie report woes
Posted by LC at 6/29/2005 4:16:38 PM
I have Visual C# .net at home and am starting to develop a project in
order to learn this .net stuff. I just came to realize that Crystal
Reports does not come with the standard edition of Visual C# .net.
So... I can't seem to find out, even in my Murach manual how to setup
and print reports.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
FullRowSelect in DataGrid
Posted by Jassim Rahma at 6/29/2005 2:56:00 PM
Hi,
How can I FullRowSelect in DataGrid using C#?
Many Thanks,
Jassim Rahma
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Out of topic: images collection
Posted by Luis Arvayo at 6/29/2005 2:12:14 PM
Well, it is out of topic at least partially....
Can someone recommend a good icon/glyph/images collection 16 x 16 - 16
colors for controls for the Toolbox ?
It is the most difficult part to me, when creating controls :-)
Thanks
Luis A.
... more >>
Inheriting an event handler
Posted by Michael Rodriguez at 6/29/2005 1:52:45 PM
If I have an event handler defined in a base class form, why can I not
choose from it in the properties window of the descendant forms? I used to
use this all the time in Delphi.
Also, if I have to manually declare it in the child form and then pick it in
the properties window of the child... more >>
Datagrid not displaying in apsx webpage
Posted by .Net Sports at 6/29/2005 1:46:25 PM
I'm trying to display my datagrid (everything is named correctly in the
datagrid headers), but when running , it doesnt show the datagrid on
the aspx webpage:
//////////
//sql statements are on *this* line
SqlCommand objCommand = new SqlCommand(strSQL, objConn);
objConn.Open();
SqlDat... more >>
Deriving from a class with 3 constructors.
Posted by craigkenisston NO[at]SPAM hotmail.com at 6/29/2005 12:20:45 PM
Hi,
I have a class with 3 constructors, one takes no arguments, other take
an string and other an xml document.
I want to derive another class of it, I don't need a different
constructor so I didn't override nor rewrite any of its constructors.
When I try to compile I get the error :
No ... more >>
Where to file bugs for VS2005 beta2
Posted by Mark Broadbent at 6/29/2005 11:24:53 AM
Anyone know where to do so?
I'm finding quite a few annoying bits and it would be nice to have these
ironed out before full release!
Br,
Mark.
... more >>
Memory question
Posted by Michael Rodriguez at 6/29/2005 11:22:53 AM
Suppose I have a dataset, dsMain, that is already filled with data. What
then, is the affect of this:
DataSet ds1 = dsMain;
Does this cause ds1 to simply become a pointer to dsMain? If so, how is
this code different:
DataSet ds1 = new DataSet();
ds1 = dsMain;
Does ds1 now co... more >>
Debug view :: remote use requires admin rights :: BizTalk 2004
Posted by BA at 6/29/2005 11:20:03 AM
Hello,
We use the Debug View from sysinternals for BizTalk development and testing.
The remote feature is very useful since you can login to any server and see
the debugging statements. Unfortunately this requires administrative
rights.
Its the stated policy of my client not to allow adm... more >>
"W" version does not work but "A" version does
Posted by **Developer** at 6/29/2005 11:12:00 AM
I have a couple of instances where using "Auto" did not work so I tried the
"A" version of the DLL and it works.
Tried the "W" version and it doesn't.
Anyone have any idea why that might happen?
It is true that with XP Auto uses the "W" version is it not?
Thanks
... more >>
Problem using DllImport on DLL that calls a 16-bit app
Posted by scott.sara.news NO[at]SPAM gmail.com at 6/29/2005 10:59:22 AM
I am having major problems accessing some API's and I believe the
problem is a 16-bit app.
I originally had an application written in Borland Builder C++ 6
(32-bit)that loaded some API's for a specific database environment I
use. Everything worked great.
I am now trying to do the same thin... more >>
Q: Restart an application
Posted by Visual Systems AB (Martin Arvidsson) at 6/29/2005 10:06:56 AM
Hi!
I have a windowsapplication, when the user modifies the .CONFIG file i want
to restart the application for the settings to take effect.
As far as i know, the settings are read when the application is started,
right?
So, how to terminate the application and then restart it?
Regards
... more >>
DataView sort
Posted by Das at 6/29/2005 10:06:02 AM
hi,
I'm using data grid with allow sort to true. So with user clicks the header
of the column the data is sorted by the column. With the help of hittest I
know that which column was last sorted wether asc or desc.
Now When selecting which row is select & to get the id of the table I use
... more >>
Data not show in grid help
Posted by paolol at 6/29/2005 9:28:03 AM
Hi,
I try to load an XML file on a Grid but I don't see the data, only the
fields.
Any suggestion ??? code is :
DialogResult res=openFileDialog1.ShowDialog(this);
if (res==DialogResult.OK)
{
string fn=openFileDialog1.FileName;
dataset11.ReadXml(fn);
textBox1.Text=fn;
dataGrid1.DataSource=... more >>
database storing > as it's html equivalent
Posted by Prisy at 6/29/2005 9:01:03 AM
While i save a record the database stores the character > as it's html
equivalent which is >. But when i update that record it saves the character
as > itself. Why would this happen?
--
Thanks
Prisy... more >>
SqlDataAdapter Update Method won't work
Posted by certolnut at 6/29/2005 8:38:20 AM
HI all
New to C#
I'm merging datasets. The source dataset is an excel file and the target
dataset is in SqlServer.
salesTracingCommisionNDCdataset1.Merge(ndcExcel,false,MissingSchemaAction.Error)
The merge works fine. It will populate a datagrid after the merge is
complete. However,... more >>
Converting Unicode
Posted by sams at 6/29/2005 8:28:24 AM
Hi @all,
I'm searching for a solution for the following problem:
I want to replace all unicode characters in a string with a valid
substituition.
For example:
string s =3D "Catal=E1n";
string s2 =3D ModifyMyString(s); //s2 =3D "Catal\xC3\xA1n"
Since replacing unicode characters in a ... more >>
sp help
Posted by ann at 6/29/2005 8:10:11 AM
I didn't know where else to ask this, so I hoped maybe someone here can help
me:
please help.
here is my sp:
ALTER PROCEDURE spGetProjectNameForCurrentFilter
@MemberType varchar(50),
@Employee varchar(200)
AS
Select ProjectID, ProjectName
FROM Project
WHERE ProjectID IN
(Sel... more >>
datagrid cell
Posted by Das at 6/29/2005 7:46:09 AM
Hi,
with the datagrid c# windows app I have set the grid to readonly. I don't
want user to modify anything into the grid. with the readonly user can not
modify. But I aslo don't want the cell to appear into the grid.
I want to get rid of the cell....
Thanks in advance...
Regards,
... more >>
Date Different
Posted by Cyber Clone via DotNetMonster.com at 6/29/2005 7:27:50 AM
Hello All,
i want to know how to date different in csharp.
i can datediff in vb6.
is there any simple command for date different (CSharp)?
thanks
Cyber Clone
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-csharp/200506/1... more >>
DataGrid problem
Posted by Newbie at 6/29/2005 7:25:07 AM
I am using a Datagrid to show the contents of a DataTable. But it seems like
the Datagrid is not getting the contents of the Datatable when the button (
btnAddAnotherLaborCategory) is clicked.
private void Page_Load(object sender, System.EventArgs e)
{
DataTable dataTable;
DataCol... more >>
Datagrid sort
Posted by Das at 6/29/2005 7:07:04 AM
Hi,
I'm using c# windows application & set the allowsort property to true. I
wanted to know. when user clicks the header of any column the data is sorted
by that column.
How can I know which is the last sorted field.....
I want to retrieve the currently selected row after the sort....
... more >>
Is possible to edit the table returned by SqlDataReader?
Posted by Wing at 6/29/2005 4:53:15 AM
Hi all,
I execute a stored procedure in my C# code, assign the result to the
SqlDataReader object and display it with datagrid.
the question I like to ask, is possible to edit the datagrid output
(eg. delete a row in the datagrid) and update the change in the
corresponding table in the data... more >>
Menustrips
Posted by teplick at 6/29/2005 3:28:03 AM
How do I insert a MDI child menustrip without any matches within the parent
menustrip so that the entire top level child menustrip comes after a
specified top level parent menu item. For example inserting the child
menustrip after a menuitem "View" on the parent and before "Windows" and
"He... more >>
Dynamic LinkButton and Click event
Posted by CodeRazor at 6/29/2005 2:01:05 AM
I am creating an aspx page using C# and would like to be able to dynamically
create linkbuttons that all run the same fuction on the click event. However,
I would like the function to accept a single argument (in this case the file
name) to identify which button was clicked. I am using the Com... more >>
delegate vs event
Posted by Brian Keating at 6/29/2005 1:54:03 AM
hi there this may seem like a silly question but what exactly is the difference
... ok .. that question is probably a bit ambiguous.. i know what delegates
are i know what events are, i use them everyday but..
what are events needed? don't delegates do everything?
look at this code normally... more >>
Print HTML string
Posted by Alexander Wehrli at 6/29/2005 1:16:04 AM
Hi,
I have a string containing an HTML formatted report.
I want to print the interpreted "Website" defined by this string. How can I
acheive this?
Regards Alexander... more >>
[OT] GDI+
Posted by Cool Guy at 6/29/2005 12:00:00 AM
Are there are planned performance updates for GDI+ (i.e. the graphics
engine used in WinForms)? It's horribly laggy currently.... more >>
open network file
Posted by Lam at 6/29/2005 12:00:00 AM
HI
anyone knows how can I open a mapped network file in C#?
I try string file = @"T:\file.txt"; it shows me the error: "Could not find
a part of the path"
but if I copy the file to my C dirve, and use @"C:\file.txt"; it worked
Thanks a lot
... more >>
how to realize "#define" macro definition in C#
Posted by xudeutsch at 6/29/2005 12:00:00 AM
I have such a block in C++
#pragma pack(push,4)
#define STATE_NULL 0x0000
#pragma pack(pop)
and I need to convert it to C#.
I want to use the "MarshalAs" attribute, but i dont
know which UnmanagedType that hex value belongs to.
Is there another way to realize this convertion ?
thank... more >>
Uninitialized boolean
Posted by julien at 6/29/2005 12:00:00 AM
Hello,
Is it possible if a boolean was initialized or not? For other types of
variable, I usually check if it is null. But this not possible for a
boolean.
Thank you
Julien... more >>
NewB Q regarding String.Compare
Posted by Visual Systems AB (Martin Arvidsson) at 6/29/2005 12:00:00 AM
Hi!
I am using the IComparer interface to sort items in a ListView, what I am
trying to figure out
is how can the method Compare know how to get the 1st and 2nd value in the
listview, then the 3rd and 4th, and so on?
What is telling the Compare object to do this? Is there a foreach in the
... more >>
what is the best control instand of datagrid?
Posted by JamesPang at 6/29/2005 12:00:00 AM
Select row in dataGrid - WindowsForm
Posted by PawelR at 6/29/2005 12:00:00 AM
Hello group,
In my application, I have form with DataGrid. Rows in dataGrid are from
table.
myDG.DataSource = myTable;
In Table I have collumn boolean type.
On Click (Mouse_up event) on the dataGrid I change value in this column
myDG[myDG.CurrentRowIndex,0] = !(bool)myDG[myDG.CurrentR... more >>
|