all groups > c# > march 2005 > threads for friday march 11
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
emergency
Posted by Shawn Zheng at 3/11/2005 11:44:54 PM
Help!!!
I want to dynamicaly create controls in ASP.NET Web form in the following
code.
protected RadioButton radio;
private void Page_Load()
{
radio = new RadioButton();
radio.Text = "new lable";
this.controls.add(radio);
}
Why I can not do it in this way. the error sa... more >>
Oracle and C#...the other way...
Posted by Adam Norris at 3/11/2005 8:36:27 PM
Simply put, does anyone know a way that I can call a C# library's
exposed methods from Oracle PL/SQL?
I am currently working on a data transport between disconnected
networks. One network is using Oracle/Powerbuilder and I am using
C#/SQL...I was hoping to simplify my task by using the ... more >>
VB.NET to C# (CurrencyManager related) ???
Posted by Kris Bethea via DotNetMonster.com at 3/11/2005 7:45:00 PM
Greetings,
I have a VB.NET program that I am trying to convert to C# (my office
decided that we are going to use C# from now on).
I've only been working with C# for about a month now, so this has been
quite the learning experience for me.
The following code is from my VB.NET program and ... more >>
Window Positioning
Posted by web1110 at 3/11/2005 7:18:06 PM
I have an opening form that I want to size to 90% screen width and 90%
screen width, I want to set the location of the top left corner to 5%
values.
Ths size comes out correctly, but on each successive open, the window move
down and left. The positioning/sizing code is shown below.
Any id... more >>
Can't seem to draw a straight line
Posted by Michael Rodriguez at 3/11/2005 5:59:18 PM
In Delphi there was a control called a Bevel. It would let you draw
straight lines, top, left, right, or bottom, anywhere on your screen.
What is the equivalent in C#? How can I draw a straight line across the
screen?
TIA,
Mike Rodriguez
... more >>
Using C Classes with C# in Visual Studio
Posted by Tom Bolton via .NET 247 at 3/11/2005 5:08:19 PM
Once, a long time ago in a galaxy far far away, I used to write C (very small-time, but I did). Anyway, now I've been learning C# in Visual Studio, and I need to access a C API from C#. Can this be done? How?
I've searched the Archives, but it's almost impossible to do a search that comes up with... more >>
Need Help with a repeater and web custom control
Posted by anon NO[at]SPAM anon.com at 3/11/2005 3:52:05 PM
I am having a hard time with makeing what I am trying to do work. I
am making a questionaire web app. I have a custom control that has a
label and 5 radio buttons. My problem is that each different topic
for the questionaire is in a database and each questionaire will have
a different number ... more >>
Threading in Web Applications
Posted by Jensen Carpenter, Mortician at 3/11/2005 3:49:41 PM
If I put a ThreadStart on a ThreadPool, triggered by a button on a web
form, and I close the web form -- will the method on the Thread run to
completion?
Is it possible to build a web application, where, if I launch a thread,
and then close the web page, when I open the webform again, I c... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
User control Text property not appearing in Properties window
Posted by Rob Richardson at 3/11/2005 3:45:07 PM
Greetings!
I just developed a little control I've wanted for ages. It links a textbox
and a label into a single control. At first, I gave it a property named
LabelText and another named BoxText. Both of them happily appeared in the
Properties window when I dropped my control onto another co... more >>
VS.NET question: conditional run
Posted by in at 3/11/2005 3:25:52 PM
In Visual Studio, is there a way of marking a statement as a
"conditional run".
Sort of like a breakpoint, but there, in the debugger, the statement
will not execute.
I'm thinking of code that has calls to production databases, but which I
want to test and yet not write records.
I w... more >>
treeview nodes
Posted by Hrvoje Voda at 3/11/2005 3:02:55 PM
I made my own user treeview control.
Now, I can't access the method treeview.Nodes !
Why?
Hrcko
... more >>
File or assembly name Interop.DTS, or one of its dependencies, was not found.
Posted by Ollie Riches at 3/11/2005 2:31:55 PM
I am trying to execute a DTS via COM according to the KB article
http://support.microsoft.com/?kbid=321525
but I am getting the exception "File or assembly name Interop.DTS, or one of
its dependencies, was not found." which is obviously a file not found
exception. I have sql server 2000 inst... more >>
Reflection and static methods
Posted by Jon Turner at 3/11/2005 2:12:13 PM
I am trying to read the attributes thru reflection in a method that is
static to a class. my function
GetList in the base class need to retrieve the attrutes from the derived
class. Is there a way
to accomplish this ?
Many Thanks in Advance.
Example
[TestAttribute("TableName... more >>
A Couple of NAnt Questions
Posted by hoochiegooch NO[at]SPAM hotmail.com at 3/11/2005 1:51:34 PM
Hi, all.
I have a couple of questions about NAnt.
1. Is there a better way to invoke NAnt from
a C# "Master Test Rig" than shelling out?
IOW, how should an ASP.NET web app or Windows
Service kick off a NAnt build session?
2. We have some test tools that can
be accessed via C... more >>
LDAP - get group's user
Posted by zole NO[at]SPAM top.com-dot-br.no-spam.invalid at 3/11/2005 1:36:27 PM
Hi,
I have a user object (Directory Entry). How do I to get the groups
which this user is member.
I am using the LDAP.
thanks.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION **... more >>
A follow up
Posted by web1110 at 3/11/2005 1:29:20 PM
I need to pass the Controls ControlCollection as a parameter to a class.
I'm getting a:
The type or namespace name 'ControlCollection' could not be found (are you
missing a using directive or an assembly reference?)
error.
I tried putting in a reference to System.Windows.Forms and the a... more >>
Hellp
Posted by Shawn Zheng at 3/11/2005 1:15:59 PM
Does any one can tell me how auto-scrolling works. the auto-scrolling is
often seeing in web site that a list or may be some small portion of a page
automatically moves down or up and keep working that way. It never stops
unless visitors click on a link item that may eixist in the scrolling
port... more >>
[C#] PtrToStructure problem
Posted by Mateusz [PEYN] Adamus at 3/11/2005 1:03:13 PM
Hi
First of all please let me know if there is some other, more suitable
group for this news - TIA :-)
Now, my problem. I'm writing an C# application in which I'm using some
functions from DLL. This dll has been written in C.
One of these functions returns as a result a structure, in ... more >>
Class name passning
Posted by web1110 at 3/11/2005 12:58:22 PM
I have a situation where I have a central control process for maintaining
objects.
Rather than instantiate an object and pass it to the controler object, I
would like to pass the class (unistantiated) to the controller and let the
controller do the instantiation. Is this possible?
To clari... more >>
WebControl, Server side events
Posted by Nadav at 3/11/2005 12:45:04 PM
Hi,
I am new to WebControls, I am trying to implement a control that wil raise a
server side event resulting from a client side action, The broblem is that
the event shoudl be triggered as a result of a mouseup indication of a
certain <DIV> and not by an <INPUT type=submit> element in combi... more >>
Dynamic Checkboxes problem!
Posted by Steven at 3/11/2005 12:31:42 PM
I create the checkboxes dynamically on my webform (aspx). after I create
them, when I check any of the checkboxes, nothing happens. Here is my code
...
ArrayList LayerNameList1 = LayerNameList;
CheckBox[] checkBoxArray;
int BoxCount = 0;
HtmlTableRow newRow;
HtmlTableCell FieldCell;
... more >>
Is this possible? (modifying generated code)
Posted by D at 3/11/2005 12:24:54 PM
Ok I have several tables all with the exact same design.
In my data access layer class library I added a new component and dragged
one of the tables on it and generated all the code that goes along with
that.
What I'd like to do or rather I am trying to do is modify that code so that
it ... more >>
Coverting string to int and...
Posted by Jarod at 3/11/2005 12:23:03 PM
Hey
I have very simple problem... I have label let's say it's lbl. So I need it
to display a counter:
int counter = Convert.ToInt32(lbl.Text) +1
bl.Text = counter;
In VB.Net I made it like this :
lbl.Text +=1
is there any way, to make it one line in C# ?
Jarod... more >>
retrieving a value from app.config
Posted by Vincent Haakmat at 3/11/2005 12:21:08 PM
My appconfig has this line in it:
<appSettings>
<!--
The Location of the reports.
-->
<add key="ReportsLocation" value="C:\Reports\" />
However I am not able to retrieve this line value
my code to retrieve it is:
string
repname=System.Configuration.ConfigurationSettings.AppSettings.GetVa... more >>
Compare two strings: Get all positions of differences
Posted by Sasidhar Parvatham at 3/11/2005 12:06:14 PM
Hi All,
How do I compare two strings and get all the positions where there is a
difference between them?
Thanks,
Sasidhar
... more >>
username retrieval
Posted by Vincent Haakmat at 3/11/2005 12:02:46 PM
Hi, I am new to .net and c#
How do I retrieve the windows username?
if possible please provide me some sample code
Regards,
Vincent
... more >>
controls dragdrop to be restricted
Posted by Hajash at 3/11/2005 11:56:33 AM
Hi,
I wanted a label control drag to be restricted inside the boundary of
panel.When dragged out the label should not be hidden.ie when dragged out
only half the label will be seen that should not happen.Thanx in advance.
Regards,
Hajash
... more >>
Reading Image Data from SQL Server To a Text File
Posted by Andy at 3/11/2005 11:41:04 AM
Hello All:
I have a field in the database that is an Image. I have no idea how the
data is stored in here (Image, compressed, encrypted, plain text, etc). I am
trying to write the contents to a text file, image file, etc so I can see if
the data is stored in a way we can understand (we ha... more >>
Recording Wave in c#
Posted by clojinted at 3/11/2005 11:25:05 AM
Hey,
I'm trying to record a wave file in c#. There is a class mentioned on the
sight called WaveIn that seems to do this. I'm new to .Net though and don't
actually know how to go about calling the methods of this class.
Any help?
Cheers!... more >>
send strobe signal from parallel port
Posted by sai bo shan via DotNetMonster.com at 3/11/2005 10:54:18 AM
hi, all
how can i send strobe signal from parallel port?
please help me!
thanks,
Cyber Clone
--
Message posted via http://www.dotnetmonster.com... more >>
Can't load file with command line csc build
Posted by andrew.bell.ia NO[at]SPAM gmail.com at 3/11/2005 10:37:45 AM
Hi,
I am building my application with the csc compiler from the command
line. I am linking in a dll (GuiUtils.dll) which is not in the current
directory. The command line looks like:
csc /referece:c:/foo/bar/GuiUtils.dll *.cs
When I go to run the program, I get an error like:
Unhandl... more >>
stop command prompt from showing up for new process
Posted by zmurji NO[at]SPAM hotmail.com at 3/11/2005 10:19:44 AM
Hello all,
I am trying to read in all the output from netstat.exe into my
program. While I have been successfull in doing so, I have some issues
that I cannot solve. I don't want the black window to show up, I want
it run in the background. The black window doesn't show anything in it
as I've... more >>
using statement with comma
Posted by David Parker at 3/11/2005 10:18:53 AM
The below seems to work...
using(dbconn=DatabaseHelper.CreateConnection("David_Projects"))
{
using(dbcmd=GetSQLSearchCommand(dbconn))
{
// code here
}
}
However, this version doesn't. Any ideas?
using((dbconn=DatabaseHelper.CreateConnection("David_Projects")),(dbcmd=GetS
QLSearchCo... more >>
using statement with comma
Posted by David Parker at 3/11/2005 10:16:39 AM
using(dbconn=DatabaseHelper.CreateConnection("David_Projects")){
using(dbcmd=GetSQLSearchCommand(dbconn))
{
}
}
... more >>
Windows XP look n Feel
Posted by Abhishek Bagga at 3/11/2005 10:15:21 AM
Hi!
I want my .net application to have a windows look n feel.
How can i enable this. I have tried 1 or 2 third party tools but not very
satisfied with them
As far as possible I would like to avoid third party tools.
Is there any way out
Pls suggest
Abhishek
... more >>
Placement of the using keyword
Posted by Brian Gideon at 3/11/2005 10:07:36 AM
I stumbled across something odd today about the placement of the using
keyword. Section 9.3.2 of the C# v1.1 specification did not answer my
question. My confusion is isolated to what happens in File1.cs of the
following code. Notice that when the using keyword is placed outside
of the namesp... more >>
Include OWC
Posted by Ovidiu Ghisa at 3/11/2005 9:54:43 AM
Hello
Can anybody tell me how can I include OWC in a program in C#?
Thanks
Ovidiu... more >>
Design question for forms and data models
Posted by melinda at 3/11/2005 9:45:05 AM
Here's the classes I have: One form to display the data, one large data model
class to handle "data change" events, and one or more smaller data model
classes (representing each piece of data).
So that's what I have so far, and I want to use events and delegates to
notify that the data has... more >>
StreamReader vs BinaryReader
Posted by DBC User at 3/11/2005 9:34:32 AM
Hi sharpies,
Quick question. I have a file with 4 column data with line terminating
with CRLF.
name~age~data~month
Where the data is binary data. Most of the time it will be .... (binary
value of FFFFFFF). When I used the stream reader, it read all the
records correctly (used readline). ... more >>
HELP!! event handling with web user controls
Posted by Buffy at 3/11/2005 9:27:09 AM
I am getting an error when I try to get the selected text of the dropdownlist
which is a user control.
Here is the error.
The error message is:
Object reference not set to an instance of an object.
get
Line 20: {
Line 21: return ucFoodCategory.Items[ucFoodCategory.SelectedIndex].Text... more >>
string to DateTime
Posted by Alejandro Penate-Diaz at 3/11/2005 9:26:27 AM
how can I convert a string like this "10/00" meaning octuber/2000 to a valid
DateTime?
Tnx, Alejandro.
... more >>
Correct casing User last name retireved from database
Posted by Shabs at 3/11/2005 9:05:06 AM
Hi,
We are having this problem here on our project where we store all
firstnames, lastnames in the oracle database in uppercase, when we retrieve
the data to be used in web application and email letters, we do a propercase
on the names. But, for names like O'Rieley, McDonald, propercasi... more >>
where is the Report Project Menu?
Posted by watcher at 3/11/2005 8:57:08 AM
hi,
today,i watched a tv program,and i found that we can create a Report Project
and use SQL Server Seb Report Server.But in my New Project menu,i could not
found out that menu,why?and how to add it to my Visule Studio?
many thanks
... more >>
ListBox - Can't get SelectedIndex
Posted by doug.dossett NO[at]SPAM gmail.com at 3/11/2005 8:54:08 AM
Hello,
I have a listbox, where upon clicking a button I want to edit the page
associated with the item selected from the list box. I have it check
for listboxname.SelectedIndex > -1 for which it keeps coming back false
even though I have selected something in the list. This used to work
on ... more >>
Faster Executible??
Posted by trint at 3/11/2005 8:42:48 AM
In Visual Studio .Net 2003, what can I do with my c# application to
make the exe run as fast as possible? It seems very slow (although it
is checking the error status of the printer, and waiting for a response
accross a network). Any faster at all would be great.
Thanks,
Trint
... more >>
Way to build classes
Posted by Josema at 3/11/2005 8:31:07 AM
Hi,
Im make an application to register users...
This application first check if the user exists, and if not, add the user to
database.
I have:
------------- class database---------------:
- A method to verify if the user exists.
* if the user exists call a method that fire an... more >>
More NUnit problems.
Posted by Frank Rizzo at 3/11/2005 8:27:54 AM
Here is the situation. I have a DLL that implements needed
functionality. I'll refer to it as Business.dll. It depends on an XML
(it contains config info) file being in the same directory as the DLL.
I then wrote some unit tests for the Business DLL in another DLL (in
another project). I... more >>
Deploying applications in Visual Studio 2005 Express Beta
Posted by am at 3/11/2005 8:19:03 AM
Hi,
I have been developing a Windows Forms application in Visual C#.Net 2005
Express Beta and wanted to deploy it. The beta edition doesn't seem to have a
setup wizard or the stated deployment options. I was wondering if its
possible before the official release.
Thanks... more >>
Remote control another Application
Posted by Matthias Kwiedor at 3/11/2005 7:54:35 AM
Hello!
Is there a way in "c#" to remote control another application on the same pc
running at the same time. For example Clicking on a button.
The Application which should be controled is not "c#" application!
Any comment would be great
Regards
Matthias... more >>
Tool to show code references?
Posted by John Parrish at 3/11/2005 7:33:45 AM
Does anyone know of a tool out there that will parse a project and show
the references between classes? Its easy enough to show association
through inheritance, but how can I show dependancy, like if a class
instantiates a member of a certain type, I would like to see that type
listed as a d... more >>
3-tier now and then
Posted by John Lee at 3/11/2005 7:27:34 AM
Hi, All
We had a lots of debate on how to use web services (in some extent I
think web service is miss used) - here is the scenario I really want all of
your opinion on the following issue:
before .net web service, we either build 2-tier app or 3-tier app and host
the com+ app remotely and... more >>
WebRequest fails with HTTPS Exception: SecureChannelFailure
Posted by Frank Schwarz at 3/11/2005 5:37:50 AM
Hello,
we are implemting an application that uses a https
connection
for accessing a website. It is also possible to connect
via http.
With http every thing works fine. With https it is not
possible
to connect to the web site. The tunnel is established
without
an error, but it seem... more >>
wat's wrong???
Posted by alyssa at 3/11/2005 4:47:02 AM
hi guys..
may i know how to get the bool compatible with float?? this is what I do
when the user checked the selected check box..
using System;
namespace CallBillingSystem
{
public class phoneRate
{
public int call_start; //in 24 hour notation
public int call_end; //in 24 hou... more >>
Registry access
Posted by Steven Blair at 3/11/2005 2:27:34 AM
Hi,
My C# app uses the registry for storing DB params, but under Windows XP
SP2, a normal user cannot write to this key (a .NET exception is thrown
when the app is run, but only under this OS).
My question is, can a certain area of the registry get accessed by
normal users. The key I am curr... more >>
Shortcut key
Posted by jez123456 at 3/11/2005 2:17:07 AM
I've setup the text on a forms button as &Save.
The S is underlined correctly in design view, however when I run the
project, the S is not underlined until I press the Alt key. ... more >>
How to copy binary data
Posted by AlexCDM at 3/11/2005 1:47:02 AM
Greetings;
I'm a (young) .NET developer and I have this problem: I'm building an
application (with C#) that creates PDF files. To display a JPEG image within
the PDF I need to copy the data from the JPEG file to the PDF (intended as a
text file); I've tryied with the FileStream class, but i... more >>
what is equivalent in c# of a char in sql?
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 3/11/2005 1:28:06 AM
I have a stored procedure using a char(10),
I need to specify that param in c#. What c# data type is
can I use?
I've looked around online for equivalents between sql
types and c# types and couldn't find anything.
I know this is basic, but i can't find the answer.
thanks in advance. ... more >>
problem with Invoking an event
Posted by Joanna Carter (TeamB) at 3/11/2005 1:18:09 AM
I am trying to invoke an event using reflection.
//////////////////////
public class Test
{
public event EventHandler NameChanged;
public void CallEvent()
{
EventInfo ei = GetType().GetEvent("NameChanged");
if(ei != null)
{
Type handlerType = ei.EventHandler... more >>
Text orientation
Posted by jez123456 at 3/11/2005 12:43:03 AM
Hi, I have a list of names from a database such as
Smith
Jones
Baker
Stocks
Chapman
Peters
I would like to display these names as the header of related data as follows
S J B S C P
m o a t h e
i n k o a t
t e e c p e
h s r k m r
s a s
n
or, as below, but each name rot... more >>
2 textbox's converting to a timevalue
Posted by Hans [DiaGraphIT] at 3/11/2005 12:23:07 AM
Hi!
I have a logical problem. How can I convert 2 textboxvalues,(one for hours
and one for minutes) to a common value type of float or double. I wish to
save this new value in a database
Any help appreciates
--- < Hans > ---... more >>
Windows management Instrumentation
Posted by (cmrchs NO[at]SPAM yahoo.com) at 3/11/2005 12:09:26 AM
Hi,
using the Windows management Instrumentation interface (WMI) do I get illogical results :
the following works :
ManagementObject account = new ManagementObject
("Win32_logicaldisk.deviceid=\"c:\"");
account.Get();
lblName.Text = account["size"].ToString();
but... more >>
|