all groups > dotnet general > june 2004
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
reflection uses
Posted by Frazer at 6/30/2004 9:57:36 PM
hi
could any one tell me which real life senarios reflection can be used in ?
thnx
... more >>
aspx generate an email
Posted by SibAndela at 6/30/2004 9:54:02 PM
How do I generate an email in the serverside code (aspx.cs file) in which I can imbed data submitted from the client icluding attachment of client side files that the client has specified. up to now I get a problem with STMPMAIL(oMyMail) giving an error
Exception Details: System.Runtime.InteropServ... more >>
Generic Context Menu
Posted by jasenlaw NO[at]SPAM hotmail.com at 6/30/2004 6:22:32 PM
Hi,
May I know how to make a generic context menu (which may contains
save, new or other funtions) to be inherited by different winform?
Thanks in advance.
Jasen... more >>
Inserting date datatypes via ado.net
Posted by J. Muenchbourg at 6/30/2004 5:00:07 PM
while inserting new records into SQL, i'm using the folloinwg
sqlstatement>
Dim MySQL as string = "Insert into roster (pname, pnotes, thedate)
values (@pname, @pnotes, @thedate)"
the sql parameter I'm using is >
cmd.Parameters.Add(New SQLParameter("@thedate", thedate.text))
but i get a... more >>
(To .Net Develpers and not only) Don't know what to think with byte ordering and similar
Posted by Vladimir at 6/30/2004 4:56:30 PM
Can anyone halp me with some questions?
Is there multiplatform standart in binary representation of primitive
datatypes when you writing it through BinaryWriter?
In other words if I write by BinaryWriter for example Int64 or Single, can I
without problem read it by BinaryWriter on platform wit... more >>
executereader error
Posted by MSNEWS at 6/30/2004 4:23:22 PM
I get this error when trying to run a SQL command, maybe my program is
silly, I'm pretty new at this :
Additional information: SqlCommand.Prepare method requires all variable
length parameters to have an explicitly set non-zero Size.
selcmd.Connection = con
selcmd.CommandText = "SELECT id... more >>
Playing Syatem.DateTime.
Posted by bredal Jensen at 6/30/2004 2:46:28 PM
Hello gurus,
I'm building a small booking system and i have come accross quiet a tedious
pitfall.
"I need to make sure that people do not book for tomorrow when todays time
is greater or equal to 11."
Well some of you probably allready know the answer but this is not so
obvious ... more >>
Looking for good c# sample NetworkStream BeginRead/EndRead...
Posted by Kyle Jedrusiak at 6/30/2004 1:19:33 PM
Need the correct usage pattern for something like a chat program.
Don't want any threading issues or stack problems.
Kyle!
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Windows Regitry - Encryption Key storage
Posted by Harman Sahni at 6/30/2004 12:56:46 PM
We have a public and private key pair for Credit Card data encryption.
The database part is all done where we generated the key pair.
Public key resides in the database for encryption and we intend to store the
private key in the registry of Windows 2003 server from which our
application will ... more >>
writeline function without " "
Posted by Jurgen Oerlemans at 6/30/2004 12:46:02 PM
Hello ,
I use the following to write to a file:
FileOpen(1, FileName, OpenMode.Output) ' Open file for output.
WriteLine(1, TextBox11.Text)
WriteLine(1, "Test text")
FileClose(1)
In the text file each line begins with " (double quote) and ends with ".
Is there a way to write to a file wi... more >>
Global Assembly
Posted by Steve at 6/30/2004 12:06:06 PM
Hi all
What is the way in .NET to make an Assembly global for all other assemblies
that reference it? In VB6 there was a property on a DLL called Instancing,
and if you set it to 6 - GlobalMultiUse, then you don't have to declare an
object in order to call it's functions, the other DLL's could... more >>
Change Crystal Report Zoom Level using percentages in Crystal Report Viewer (Dotnet)
Posted by Alex Stevens at 6/30/2004 11:09:34 AM
Hi All,
I have implemented my own toolbar on a form which houses the crystal reprot
viewer.
I would like to have a combobox to allow the user to change the zoom level
to say 25 / 50 / 75 / 100 / 200%
However the crystal report viewer only seems to allow two levels of zoom,
using the .Zoom ... more >>
Should be simple: installation dialogs
Posted by John Spiegel at 6/30/2004 10:55:06 AM
Hi all,
I've added a custom dialog to my install package. The button labels are yes
and no with button values of 1 and 2 and the ButtonProperty = "BUTTON2".
I've also added a launch condition of BUTTON2 == 2. Seems simple enough.
However, the installation presents the dialog but installs whe... more >>
What files to upload to webserver?
Posted by james NO[at]SPAM jimw.co.uk at 6/30/2004 10:30:32 AM
Hi there,
I'm just starting to write my second ASP.NET webpage in C# and want
some way of easily splitting out those files that are needed to be
uploaded to the webserver - i.e. i create a project on my local
machine in VS.NET and it creates the "AssemblyInfo.cs" file,
"Global.asax" file, "Gl... more >>
Hardware requirement for .net framework Server/Client
Posted by Akok Lim at 6/30/2004 4:21:01 AM
Hi, My Name Akok Lim
I've some trouble when i do the installation to my client.
I've a big problem
the client can only provide for the computer using : Intel Celeron 2.0 GHz, and DDR 128 MB, because of my back end using Ms SQL Server 2000, i install Ms Windows 2000 Server. And I Also Develop... more >>
Function return values
Posted by guy at 6/30/2004 3:58:01 AM
It would be really nice if there was an option that warned the developer that calls to functions did not handle the returned value, or alternatively threw a compilation error.
I have been caught so many times by witing something like
Split(myString,",")
instead of
MyArray = Split(myString,",")... more >>
Protect IL Code
Posted by YK at 6/30/2004 2:39:02 AM
All,
What is the best way to protect IL code?
---------------------------------------------------
Typical scenario:
Visual Studio .NET 2003 includes Dotfuscator Community Edition, which intends to protect IL code. However, many .NET applications use data binding in UI forms. For example:
... more >>
Installing Visual Studio 6 AFTER Visual Studio 2003 trial and Office 2003 - Is it safe?
Posted by Dave Smithz at 6/29/2004 11:56:11 PM
Hi there,
Summary: Installing Visual Studio 6 AFTER Visual Studio 2003 trial and
Office 2003 - Is it safe?
I know this has been asked many times before, but I have seen postings about
problems so wanted to clear it up for sure.
I have Windows XP Pro.
Already have installed Office 2003 an... more >>
How to retrieve Custom Attributes from the Type
Posted by Paul at 6/29/2004 9:17:58 PM
Hi!
I have a problem:
I've declared some classes and decorated them with my Custom Attributes.
(say ClassA and ClassB)
Now I have some Type member (in fact this is FieldInfo.FieldType) which is
eq. typeof (ClassB).
And when I call GetCustomAttributes() for this Type I never gets the
attrib... more >>
Escaping problem using Regular Expression
Posted by Henry at 6/29/2004 9:05:05 PM
I have this simple code,
string escaped = Regex.Escape( @"`~!@#$%^&*()_=+[]{}\|;:',<.>/?" + "\"" );
string input = @"a&+[b`${c}a'?sd:r]" + "\"" + @"@(-d)\e";
Regex re = new Regex( string.Format(@"([{0}]+)", escaped),
RegexOptions.CultureInvariant );
string s = re.Replace( input, "" );
It d... more >>
Express Version Kills Current Version
Posted by Lloyd Sheen at 6/29/2004 8:01:57 PM
Never mind what they tell you. Just installed 2.0 beta and no more 1.1.
Tried to run simple ASP app and doesn't work anymore. Ran aspnet_regiss -i
but to no avail. So anyone who tells you they run side by side needs to be
put in the stocks with the spammers.
No I can only hope that a syste... more >>
C# Express
Posted by Cbarnhorst at 6/29/2004 7:51:02 PM
I don't know where to put this, but I hope MS reads this.
THANK YOU
I just retired and was trying to figure out how I could afford to get into Visual Studio .Net to see if I would like learning modern development and maybe try to become useful in the Windows community. This looks a lot better... more >>
How to link multiple .aspx WebForms together?
Posted by rachel at 6/29/2004 7:05:01 PM
Hi all,
I am new in ASP.Net. I have a question on link multiple web forms together.
Here is the scenario:
I create an Index.aspx WebForm which consists of a banner and three navigator buttons as well as a body to load the content. It is exactly like a normal HTML page where there are ban... more >>
DataTable Expression Column
Posted by PankajBanga at 6/29/2004 6:31:01 PM
My DataGrid is bound to a DataSet, with following columns: Description, CashExp, CreditExp,Frequency
On run time, I am adding two new DataColumn “AnnualCash†and “AnnualCredit†and defining Expression property to give product of two columns, as follows
Dim dc As DataColumn
dc = New... more >>
Automatic build process + automatic NuNit (2 in 1 solution)
Posted by gicio NO[at]SPAM gmx.de at 6/29/2004 4:03:31 PM
Hi!
Can someone tell me can I use MsBuild with NuNit today?
Or is MsBuild only available for MSDN subscriptions ?
Or what do you use for an automatic build process + automatic NuNit testing.
I looking for a 2 in 1 solution (build + NuNit)
gicio
... more >>
getting an asp:textbox value to an sql parameter
Posted by springb2k NO[at]SPAM yahoo.com at 6/29/2004 3:48:29 PM
I'm using this sql parameter:
MyCommand.Parameters("@Sport").value = Server.HtmlEncode(sport)
to get a value from a textbox control:
<asp:TextBox Name="sport" id="sport" runat="server"></asp:TextBox>
but i cannot see why I get "Value of type
'System.Web.UI.WebControls.TextBox' cannot be... more >>
How do I get configuration file to point to the correct DB file?
Posted by aarepasky NO[at]SPAM yahoo.com at 6/29/2004 3:31:46 PM
The program I have written with VB/NET 2003 has a Myapp.exe.config
file that I did not know I would be creating. My program using an
Access db and can not find the DB file after building the executable.
When this config file is there it runs ok and when it is not there it
can not find the DB fil... more >>
Dispose GDI+ objects
Posted by Franz at 6/29/2004 3:27:35 PM
What kind of GDI+ objects is needed to be disposed?
If they are the fields of the class , does that class need to implement the
IDispose interface?
If they are used only within a method (e.g. OnPaint), do I need to dispose
them at the end of each OnPaint method?
I want a guideline and reason fo... more >>
.Net Newbie Needs Expert Advice (Help?!)
Posted by im2dxtreme NO[at]SPAM aol.com at 6/29/2004 1:11:36 PM
I'm confused and I need help, please!
I'm trying to create an online photo album component in VB.Net for use
with ASP.Net within multiple websites. I'd like to build a component
which can be referenced from multiple ASPX pages. (It would know how
to build the album based on the server contro... more >>
Assembly Dependencies
Posted by Antony at 6/29/2004 11:15:38 AM
Hi,
Is there a way to check what the dependencies of an assembly are, apart from
loading with ILDASM and checking the manifest information?
I keep getting TypeLoadException problems in one of my assemblies, which
(apparently) is indicative of missing or unresolved dependencies...
Thanks i... more >>
Word.ApplicationClass disabling macros
Posted by MSNEWS at 6/29/2004 10:46:55 AM
Hi
I'm using the word.applicationclass within my vb.net application to convert
some word documents to text files.
Is there anyway I can disable macros whilst loading the document, in Word I
can do that by running winword /a, but not sure how to add the switch using
the word.applicationclass... more >>
Initializing an Object
Posted by Emmanuel Mathew at 6/29/2004 10:29:25 AM
Hi friends,
I have a method which is given below
public IDbConnection SetConnection(string connectionString)
{
try
{
IDbConnection connection;
switch (dbType)
{
case (int)DatabaseType.odbc:
connection = new OdbcConnection(connectionString);
break;
case (int)Databa... more >>
Clipboard - why is it so limited?
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 6/29/2004 2:48:52 AM
Hi
Needed a title like that to get you reading :-)
Having never programmed for the Clipboard before, I expected it to
work as follows: multiple data formats can be supported by just
storing the data, keyed by the format name. After the application that
has placed a custom format into the Cl... more >>
Locking a Listbox position
Posted by Irene at 6/29/2004 1:58:01 AM
I'm developing a Web application where a user selects from a listbox which can have many items. The initial display only shows about 10 items.
After a postback, the listbox is automatically scrolled back to the top, so the selected item is mostly no longer visible. How can I keep the position, s... more >>
Distributing MSDE with Database application
Posted by David at 6/28/2004 10:47:11 PM
I have a database application running on my development machine and now want
to distribute the application to a third party.
Would someone mind please explaining how I can modify the Setup Solution to
distribute MSDE with the application. And, doe sthe third party need to then
manually install... more >>
Help Required with hiding DataColumns
Posted by Chris H. at 6/28/2004 10:16:56 PM
Fellow .Netters,
I have come to an impass trying to "hide" a column on a data grid - I'm sure
it's a fairly simple thing (but so am I, that's why I'm stuck)
Imagine if you will that I have a table as structure thus (this is all an
example)
PartID (string)
Part Code (string)
Description ... more >>
STATUS BAR HAVING PROGRESS BAR
Posted by NaeemUllah Asad via .NET 247 at 6/28/2004 10:08:13 PM
(Type your message here)
i want to create the progress bar and buttons in the status bar using VB.NET
--------------------------------
From: NaeemUllah Asad
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>lB5DY8FsqUmFrVyQGXx5NQ==</Id>... more >>
System.Diagnostics.Process.Exited event
Posted by T at 6/28/2004 5:26:02 PM
How do you catch the "Exited" event when a process is terminated. In the following code sample the "myProcess_Exited" event is never called. Any help would be appreciated.
using System;
using System.Diagnostics;
using System.Threading;
class ConsoleProcessApp
{
public static void ... more >>
I want XP icons
Posted by Franz at 6/28/2004 5:05:39 PM
Sorry, I don't know where I should ask this question. I want some basic XP
icons (e.g. "Cut", "Copy", "Paste"). I can't find them in shell32.dll. Where
are they?
Thanks.
... more >>
Object reference not set to an instance of an object error
Posted by springb2k NO[at]SPAM yahoo.com at 6/28/2004 5:00:57 PM
In an asp.net insert data script, I'm getting an Object reference not
set to an instance of an object error on the line that creates the
parameter for @sport. Not sure why, since I am inserting the field
name correctly in the sql insert statement:
'''''
Dim InsertCmd As String = "insert into ... more >>
how do I deploy my c# asp.net app to 2000 server?
Posted by RichGK at 6/28/2004 3:47:22 PM
I can't find any tool to send the working website (working on localhost) to
the intranet server, I've tried a copy and paste into the wwwroot directory
on the server but attempting to connect to the page produces the following
error.
Parser Error
Description: An error occurred during the pars... more >>
vb: how to wait for a second?
Posted by Jurgen Oerlemans at 6/28/2004 3:22:55 PM
I have a code where I perform several actions on files.
Between these actions I want to wait for 1 second. Or 2 seconds.
How can I easily do this without using a timer? Jurgen
... more >>
Form Authentication Expiration
Posted by rob_douglass NO[at]SPAM hotmail.com at 6/28/2004 12:36:53 PM
Hi all,
I have a site that is compeletely restricted by form authentication.
In the case where a user's cookie expires and then they click on the
logout button on the site, the authetication process is forcing them
to login again so that they can log out.
I've been trying to use
"HttpConte... more >>
Determining Size of a File
Posted by Phil Galey at 6/28/2004 11:46:18 AM
In VB.NET I find the IO object very handy in replacing most of the
functionality of the FileSystemObject. One exception, however, is in
determining the size of a file. How can you determine the size of a file in
VB.NET without adding the FileSystemObject to your project?
... more >>
Difficulty with .Net installer User Interface
Posted by Malcolm P. at 6/28/2004 11:45:01 AM
I'm deploying a C# Windows app using VisualStudio.Net 7.1.3088, and for the life of me I can't get the Checboxes(A) to work properly. All I am trying to do is use checkboxes to prompt the user about whether to install desktop and program menu shortcuts, but the installer always installs them no matt... more >>
Task Scheduler
Posted by Tim Marsden at 6/28/2004 10:52:18 AM
Hi
I wish to write a task scheduler in my application.
What is the best way to do this?
Do I use the windows scheduler or try and write my own.?
Is a timer checking every second feasible.?
Regards
Tim
... more >>
Studio problem
Posted by r0dr1g0 at 6/28/2004 9:55:01 AM
Has anyone run into this problem before. I'm using VS 2002 and when I start a project in VB I get the following error "Automation Server can't create object", if anyone has had this problem how did you fix it. I've uninstalled and re-installed Studio but I keep getting the error.
Thanks... more >>
Problems after installing Sharepoint Services
Posted by Brent at 6/28/2004 8:59:05 AM
Hi,
Recently, we installed Sharepoint Services on our test server (Server 2003)
to try it out. I made a new web for my regular aspx pages. My problem is
that now whenever I try to access my old pages, it prompts for a username
and password for that server. I want it to allow anonymous web reques... more >>
ASP.NET working with MS Word??
Posted by Remco Groot Beumer at 6/28/2004 8:50:12 AM
Hello,
I'd like to use Microsoft Word in an ASP.NET application. I've referenced to
MS Word, but when the sourcecode-line 'Dim objWord As New Word.Application'
is reached, I an exception is thrown. The exception message is as follows:
Exception Details: System.UnauthorizedAccessException: Ac... more >>
How can I extract a row of data from a 2 dimensional array
Posted by smurf at 6/28/2004 3:41:01 AM
Seems a simple question, but I can't find a simple answer:
I have created a two dimensional array. I wish to send the data, a row at a time to a graph plotting routine which is expected a one dimension array.
I could create a temporary one dimensional array and populate from the original array... more >>
|