all groups > c# > may 2005 > threads for wednesday may 18
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
API Specifications For C#?
Posted by Boon at 5/18/2005 11:41:02 PM
Hi,
In java, they have a full set of API specifications available for
development. Is there such an API for C# for referencing.For example, I would
like to know what are the Propertys of a Panel Control, and by refering to
the API, I would be able find them?
... more >>
API Specifications For C#?
Posted by Boon at 5/18/2005 11:38:03 PM
Hi,
In java, they have a full set of API specifications available for
development. Is there such an API for C#?
... more >>
regarding the location of config files for the .net windows servic
Posted by Vinoth Kumar at 5/18/2005 11:27:43 PM
hi all
i wrote a windows service.
i am trying to get it to use an app.config file.
unfortunately, when the service starts,
it assumes that the ConfigurationSettings file
is in C:\Windows\System32.
this is unacceptable to me.
rather, i would like the service to assume that the app.config f... more >>
SELECT DISTINCT FROM SQL SERVER USING C# & ADO.NET
Posted by orekinbck NO[at]SPAM yahoo.com.au at 5/18/2005 11:04:25 PM
Hi There
Our test database has duplicate data:
COMPANYID COMPANYNAME
1 Grupple Group
2 Grupple Group
5 Grupple Group
3 Yada Inc
4 Yada Inc
6 Bodgy Brothers
I want to get a list of distinct company names and the most recent ... more >>
Designer Flaw?
Posted by MLongmire at 5/18/2005 10:52:45 PM
I'm trying to create a ComboBox class that will present the same printout
options to users no matter where I need to use the combo box.
I extend the ComboBox class and in the constructor I add predefined print
destinations, along with setting other properties.
The problem comes when I drop... more >>
Datagrid: show new record row
Posted by Karl at 5/18/2005 10:14:01 PM
Hi,
I am new to .net. I believe this is a silly question.
When I link a datasource, such as an array, to datagrid, I don't see the new
record row at bottom of the grid. But when I linke datagrid to dataset, I can
see it. Why is that? Can I programmingly control when to show it?
Thanks,
... more >>
Impersonating currently logged in user
Posted by sushi at 5/18/2005 9:49:32 PM
Hello,
I am running a ASP.Net application. It runs by defaul in the context
of ASPNET user. I want to dynamically impersonate it so as to run in the
context of currently logged in user. I know it is possible by specifying
username, domain and password and using WindowsIdentity,
Windo... more >>
Seeking Microsoft TV development tools' details...
Posted by ideas2050 NO[at]SPAM math.net at 5/18/2005 9:11:38 PM
I have been trying very hard at finding details into Microsoft TV
development tools. I was mainly interested in finding if the support is
for both C++ and C# and to try at the downloads of MS TV Content
designer, TV SDK, TV Toolkit for VS.
But I am totally unable to get some tangible informati... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
.NET and OpenSource....
Posted by HamorSth at 5/18/2005 8:47:16 PM
What does "open source" mean in the .NET platform while almost all
"non-obfuscated" codes are "Open-Source"? Just yesterday i got an add-in for
my ".NET Reflector" which saved the entire disassembled-to-C# "mscorlib"
library for me in .cs files, and i now have a project on my computer that
was o... more >>
Can I Add a form as a TabPage
Posted by Sleepy at 5/18/2005 7:52:05 PM
Visual Studio 2003 Windows Forms application:
Is there a way that I can add a form as a TabPage?
My goal is to develop a series of forms and load the dialogs dynamically in
a tab control based on the user selection of a particular function. I would
like to leverage the usefulness of the... more >>
Question about the MessageBox
Posted by Claudia Fong at 5/18/2005 6:52:20 PM
Hi,
I have a MessageBox showing a message that the data has been added. It's
a messageBox containing a MessageBoxButtons.OK. I would like to after
the messagebox show and I click on button OK, all the textBox.Text will
be clear
textBox1.Text = ""
textBox2.Text = ""
textBox3.Text = ""
... more >>
cpu cycles for file operations
Posted by Lalasa at 5/18/2005 6:24:12 PM
Hi,
Can anybody tell me how many cpu cycles File.copy would take and
how many cpu cycles File.Move would take?
CFile::Rename in C++ takes just one cpu cycle. As there is no
File.Rename in C#, I am worried about using File.copy or File.Move
which would do the same job of renaming a fi... more >>
How useful is System.Web.Mail objects.
Posted by Eric at 5/18/2005 5:34:20 PM
When I use system.web.mail namespace in most of my integration programs
and in windows application programs it doesn't work.
it normally gives an exception "Could not access 'CDO.Message' object."
or "Could not access MAPI drivers". (all these machines, outlook is not
installed and local SMTP is... more >>
C DLL not work in Windows Service but works fine from Console app
Posted by Samuel R. Neff at 5/18/2005 4:45:30 PM
We're using a 3rd party C DLL in a project that we don't have source
for. When we call the DLL from a console app everything works fine.
However, when we call it from a Windows Service, the DLL doesn't work
(sorry, can't be more descriptive.. no errors, but no results).
We've even taken t... more >>
Serialization of ArrayList of ArrayLists
Posted by Steven at 5/18/2005 4:36:34 PM
Hello,
In my asp.net application, I have the MainForm.aspx.cs (where all the
functions are defined) and ClasssificationInfo.cs class. This is the
Classification Info class --
using System;
using System.Xml.Serialization ;
namespace MyAppl
{
[XmlInclude(typeof(ClassificationInfo)... more >>
MSDE Deployment
Posted by Brian Scott at 5/18/2005 3:57:03 PM
Hi,
We are currently using MSDE as a local database for our customer focussed
applications. Does anyone else deploy MSDE with their applications and if so
what model do you use?
... more >>
Finding a Row
Posted by Christopher Weaver at 5/18/2005 2:51:30 PM
I can get this to work:
DataRow rowFoundRow = dataSource.Rows.Find(cbText)
but I can't figure out how to move the CurrencyManager.Position to that row.
Any help here?
... more >>
Loading a char value from an SQL parameter - Crashing!
Posted by Fred Nelson at 5/18/2005 2:50:31 PM
Hi:
Newby Question:
I have the following code in a class library that performs a query on an SQL
database and is returning a class that contains "locatestatus":
if (p_locatestatus.Value != System.DBNull.Value)
{ rtrec.locatestatus = (char)p_locatestatus.Value; };
rtrec.locatestatus is ... more >>
Answer?
Posted by Jack Record via .NET 247 at 5/18/2005 2:31:02 PM
Does anyone have an answer to this?
--------------------------------
From: Jack Record
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>dvrVbxYA3Eal+VEGoUuw0g==</Id>... more >>
* * * Important Please Read * * * May 18, 2005 4:06:25 pm (Best Viewed at 1024x768) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Posted by Ron4512324 NO[at]SPAM yahoo.com at 5/18/2005 1:06:02 PM
Best Viewed at << 1024x768 >>
http://groups-beta.google.com/group/alt.religion.christian/browse_thread/thread/73352e0ed6923d23/1ea6c7a1ea6923ab?hl=en#1ea6c7a1ea6923ab
*******************************************************************************************
************************************... more >>
printing to file ???
Posted by (cmrchs NO[at]SPAM yahoo.com) at 5/18/2005 1:04:02 PM
Hi,
when using the PrintDialog-control and printing GDI-instructions to a file, to what format is the file saved ?
(It is typically those GDI-instructions that are used in the PrintPage event-handler of the PrintDocument-object)
The thing is that I would like to view the content of the file a... more >>
Cursor.Current reverting to default
Posted by Juan Manuel Formoso at 5/18/2005 11:53:12 AM
Hi, I have a custom made toggle button, and I want to change the cursor
in my application when it's pressed.
I set the Cursor.Current property whenever that state changes, but on
mouseup it reverts back to the default cursor automatically.
I did a few tests, and putting a button in a blank f... more >>
How to set cursor location in a rich textbox for windows froms
Posted by Kidus Yared at 5/18/2005 10:58:03 AM
I am having trouble with the cursor in a richtextbox for windows forms. After
incerting a character between words in a sentence, as so:
this.richTextBox1.Text =
this.richTextBox1.Text.Insert(this.richTextBox1.SelectionStart, ""+'\u1200');
Than the curser moves to the beginning of the textb... more >>
can't call COM method containing string
Posted by Owen Corpening at 5/18/2005 10:30:40 AM
I have a C++ method and I want to call a C# method from it. passing in a
string. Works fine with int's, but if I have a string arg the method call is
skipped.
#import "../util/Release/AcornActuateUtil.tlb" raw_interfaces_only
using namespace AcornActuateUtil;
extern "C" UINT __stdcall InstallAc... more >>
Set Default Printer
Posted by Andy at 5/18/2005 10:01:12 AM
How do you set the default printer in C#? I have added a printer and now
want to set that printer to the default. Listed below is my code, but I am
getting an "Invalid method Parameter(s)" error on the 4th line:
ManagementClass printerClass = new ManagementClass("Win32_Printer");
object[] ... more >>
C# Newby String to Char Conversion question
Posted by Fred Nelson at 5/18/2005 8:33:16 AM
Hi:
I'm more than a little confused with this question:
I need to create a char type from the first letter in a string - for
example:
string mystring;
char mychar;
mychar = (first character of mystring)
I have looked all around and find many examples of character arrays however
I c... more >>
Stored Procedure Parameters
Posted by caseyoconnor2 at 5/18/2005 7:49:24 AM
What are they for?
Why do we have to match them inside our C# or VB code?
Are they so the end user can input a value to query on?
When do we have to use them in C# and the SQL Server Stored Procedure
... more >>
referencing a class member from another file
Posted by DjordjeD NO[at]SPAM ABELSoft.com at 5/18/2005 6:13:52 AM
I need to call(reference) class member
"PrintDestination.PrintDestinationPrinter" from another file. How do I
do it, I tried
"ReportRenderer.PrintDestination.PrintDestinationPrinter" but it
doesn't work. Please help!
here is my class:
*****************************************
using Syst... more >>
Assign ado.net dataset to combobox?
Posted by trint at 5/18/2005 4:33:25 AM
I have an app that I have been using this code to fill a datagrid:
DataSet ds = new DataSet("Recordset");
OleDbDataAdapter da = new OleDbDataAdapter();
// Call data adapter's Fill method to fill data from ADO
// Recordset to ADO.NET dataset
da.Fill(ds, rs, "tblTravelEventType");... more >>
Does (cond1 && cond2 && cond3) always evaluate left to right?
Posted by orekinbck NO[at]SPAM yahoo.com.au at 5/18/2005 4:25:00 AM
Hi There
Say I want to check if object1.Property1 is equal to a value, but
object1 could be null.
At the moment I have code like this:
if (object1 != null)
{
if (object1.Property == desiredValue)
{
//Do work here
}
}
Here is my question - Can I do this ...
if ... more >>
C# interface restrictions / remoting
Posted by matthew_glen_evans NO[at]SPAM hotmail.com at 5/18/2005 4:11:43 AM
Hi there,
Quick one about interfaces in c#. It seems that it is illegal to
declare types within an interface.
I was quite used to doing this in VB.net where the interface can define
a
clients remoting interface and object model.
eg..
Public Interface ISelectionEngine
Function G... more >>
Creaing a control array of Radio Button in web application
Posted by Raghavendra Mudugal at 5/18/2005 3:45:01 AM
Hello
I have 16 radio buttons and want to know how to create the array of these 16
controls. so the event handler remains one and execution happnes with respect
to the control index, like we do in vb6
is there any way to do this, or if any alternate suggestion will be very
helpful to me.
... more >>
Tri state listview
Posted by gabble at 5/18/2005 3:13:48 AM
I'm working with a subclassed listview control and I'd like to have the
ability to set the checkbox on a certain item to indeterminate. I've
tried adding three images to the stateimagelist (unchecked, checked,
and indeterminate), but setting the checkstate in the ItemCheck event
doesn't seem to... more >>
Insert into a db through ADO.NET
Posted by Claudia Fong at 5/18/2005 2:39:21 AM
Hi,
I'm trying to insert new datas to an existing table. What I learn from a
C# book, all I need to do is write a method
private void adepartment ()
{
// specify new department code to insert in database
objadep.Parameters["DEPT_CODE"].Value = textBox1.Text;
oleDbConnection1.O... more >>
Lacking for-loop optimization in C#
Posted by MariusI at 5/18/2005 2:26:03 AM
I stumbled over an optimization (or lack of one, to be specific) when viewing
IL opcodes generated by the compiler using ms .net 2003. I was testing fast
pixel manipulation using Bitmap.LockBits and unsafe pointers to iterate over
an image's pixels. The inner-loop looked like this:
for (in... more >>
Dropdownlist
Posted by CJ at 5/18/2005 2:22:04 AM
Hey!
I have 3 dropdownlist depending on eash other.
It's a hierarchy. The first dropdownlist generate the second and the second
generate the third.
The first i have a sql query for, so that dropdownlist is generated.
My question is how to generate the second and the third? ... more >>
Array
Posted by Daniel Groh at 5/18/2005 12:30:27 AM
Hi All,
I've had problems with Arryas...i have a table in my SQLServer MenuTop with
theses fields: id,link,description
My solution has 3 tiers and in the Data tier i would like to recovery the
link and description to send to the Business and later to the Interface, but
i don't have an idea... more >>
C# very optimisation
Posted by Ennixo at 5/18/2005 12:00:00 AM
hi,
do you know where i can find some ebooks or websites talking about C#
optimisation ?
for exemple, i just learned that ++i is faster than i++. i would like to
know more about the things that can make code faster than fast.
thank you.... more >>
struct or class - which is best to keep a collection of data records?
Posted by Oberon at 5/18/2005 12:00:00 AM
I want to create a collection of records which will be permanently
available at the application level in an ASP.NET application.
How should I go about that?
Lets say that the record structure has 4 fields with these types:
type field name
============
integer recordID
string title
bool... more >>
C# - Recycle Bin
Posted by Gene Vital at 5/18/2005 12:00:00 AM
Can someone point me in the right direction on how to send files to the
Recyle Bin using C#.... more >>
WebService, binary data
Posted by Mateusz [PEYN] Adamus at 5/18/2005 12:00:00 AM
Hi
I was wondering is there any sense in this idea:
Instead of just sending selects to the database server and getting
response in the normal way I could make a webservice on the server, send
the reqest to it and in the response get the zipped dataset.
Thanks to it number of send da... more >>
How to free an object?
Posted by Visual Systems AB (Martin Arvidsson) at 5/18/2005 12:00:00 AM
Hi!
Every time an object is created it needs an amount of memory, but it doesn't
release the memory, when the routine is run, it takes more memory...
Code below...
public class MyFirstClass
{
public MyFirstClass
{
// Initialization done here
}
public void DoSt... more >>
DateTime span
Posted by JezB at 5/18/2005 12:00:00 AM
How do I calculate the number of days (or hours, or minutes, etc) between
two DateTime's ?
... more >>
linkbutton and 2 webforms
Posted by Jason Huang at 5/18/2005 12:00:00 AM
Hi,
In WebForm1 I have Linkbutton1, what I want to do is I click the Linkbutton1
then the WebForm2 will be opened.
I am not sure using the linkbutton is the right way, but if I am on right
track, would someone tell me how to do it?
Any help will be appreciated.
Jason
... more >>
COM components registration/Unregistration
Posted by Manoj Nair at 5/18/2005 12:00:00 AM
Hi,
Am trying to create a COM server in C# as required in our application.used
REGASM to register the dll and tlb file and everything works fine but when I
try to unregister the dll and tlb using RegAsm /unregister nothing happen
even though it says the unregistration has been succesful.Even reb... more >>
How can we get the image from a webpage using c#
Posted by Saish at 5/18/2005 12:00:00 AM
hi
all
i'm working with a project in which we have to perform operations on a
webpage using c#,
i have a small problem,
i want to geat the image from a webpage and i have to perform operations on
it,
is there any way to solve this problem,
thanking you for hrlping me,
with regards
saish
... more >>
|