all groups > c# > november 2003 > threads for sunday november 9
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
What is the Best tutorial site for a newbie?
Posted by Glendon at 11/9/2003 11:39:56 PM
Hi Guys
What is the Best C# tutorial site for a newbie?
Does anyone know of any really good tutorials or courses for "ASP.net using
C#" ? the best I could find was http://www.asp.net.
Thanks,
Glendon.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http... more >>
Error with open word doc.
Posted by sudha at 11/9/2003 11:21:59 PM
Hi,
To open a word doc from c#, i use the following code :
Word.ApplicationClass WordApp = new Word.ApplicationClass
();
// give any file name of your
choice.
object fileName = "C:\\test.doc";
object readOnly = false;
object isVisible = true;
// the wa... more >>
Calculate first and last date of a week
Posted by Hardy Wang at 11/9/2003 10:55:42 PM
Hi:
Are there any algorithms I can use, that based on a given date and a
culture code (different cultures may have different beginning of week), I
can get first and last date of the current week?
Thanks!
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
... more >>
How to use Visio in .NET
Posted by Chamal at 11/9/2003 9:46:34 PM
Hi,
I want to know what are the ways that i can use Visio
in .NET if you are programing in c#. I'm trying to
implement a design interface in a windows application
which will allow users to design in Visio... more >>
Dear MICROSOFT, more details on Partial Types, PLEASE.....
Posted by nospam at 11/9/2003 9:06:04 PM
Ok, I asked this question before and I also looked at the book "First Look
at ASP.NET 2.0"
I also read Paul wilson's web page explanation. HOWEVER......
The book and that web page talks about partial types and that IF you have a
Extends keyword, I think, before the class name AND the same Nam... more >>
Newbie needs help in C#
Posted by p988 at 11/9/2003 9:00:04 PM
In a C# sample code it has the following beginning lines:
using System;
using System.Reflection
[assembly:AssemblyKeyFile ("Keyfile.snk")]
[assembly:AssemblyVersion ("1.0.0.0")]
What's the "keyfile.snk" file and how to generate it? What happens if the
code is compiled like this and the ... more >>
Fast Substring Match in Hash without Iterating?
Posted by bradwiseathome NO[at]SPAM hotmail.com at 11/9/2003 8:45:26 PM
I have a hash table with key/value like this:
aaaa 1
aa 2
bbbb 3
I am iterating over a datatable and trying to search and replace
values in it based on a match in the hashtable. I have values in the
datatable like this:
aa
aaaa
bbbb
bb
I want to ch... more >>
Urgent Help: System.Runtime.interopservices.COMException 0x80010105
Posted by Badrinath Mohan at 11/9/2003 8:24:02 PM
Hi Gurus,
I can instantiate a COM object in VC# without any problem.
But when i call one function exported by the COM object i
get this exception.
System.Runtime.interopservices.COMException 0x80010105
I call it from an ASP .net application
Could u please tell me how to avoid that ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can't get RegEx to work, pls help
Posted by H at 11/9/2003 8:05:16 PM
This is kind of an followup on oneof my previous questions, and it has with
RegEx to do.
I have a string containing of several words. What would a good regex
expression looklike to get one match on every word ?
For example :
String myString =" This is the string that stupid H can't split up";... more >>
C# newbie - "Cannot add a top level control to a control."
Posted by Mutombo at 11/9/2003 7:49:06 PM
I was wondering if anyone would be able to help me with this.. I have code
like this...
code ---------------
private void button1_Click(object sender, System.EventArgs e)
{
ClientForm cf = new ClientForm();
this.MainPanel.Controls.Add(cf);
}
}
code ends---------------
... more >>
hi,string combination again
Posted by AsuWoo at 11/9/2003 7:43:51 PM
hi,
I want to implement a function that prints all possible combinations of a
characters in a string,eg. input "123"into a textbox,
add "1","2","3","12","13","23","123",to a listbox,Or "ab" into a textbox,add
"a","b","ab"in a listbox,
but two combinations that differ only in ordering of their c... more >>
Late binding / COM + component.
Posted by jeanfor2 at 11/9/2003 7:32:57 PM
I am trying to do a late binding with a registered COM+
component and I am getting the following error when
creating the instance. Below is the error I asm
getting...Any idea?
An unhandled exception of
type 'System.Runtime.Remoting.RemotingException' occurred
in mscorlib.dll
Addi... more >>
Do i have a problem? possible multiread from xmlfile
Posted by Flare at 11/9/2003 7:15:02 PM
H
I have a dll lib wich contains a static method to read and return a result
from a xmlfile.
But is possible that this dll could be called at the same time from muliple
threads. Is this a problem when its readonly access to the file?
I mean do i need some kind of lock on the method so onl... more >>
C# : When exactly should a StringBuilder be used?
Posted by gicio NO[at]SPAM web.de at 11/9/2003 7:06:31 PM
Hi!
I'm very interesting in when to use exactly the StringBuilder?
For example for something like this?:
String strTest1 = "This";
String strTest2 = "Test";
StringBuilder stbTest = new StringBuilder();
stbTest.Append(strTest1). Append("is a "). Append(stbTest);
can someone provide s... more >>
Inheritance question
Posted by Taylor at 11/9/2003 6:47:59 PM
I'm trying to understand inheritance. I'd like to make my own type of
IPAddress lets call it myIp.
The following gives me CS0029 error: Cannot implicitly convert type
'System.Net.IPAddress' to 'Inheritance_Testing.myIp'
Could you steer me in the right direction?
class myIp : System.Net... more >>
how to save a component state?
Posted by Peter Verburgh at 11/9/2003 6:19:53 PM
Hello,
Is there an easy way in C# to save a component (control) state (example.
save all the property values from a button control) to a file (xml) ?
Kind regards;
Peter.
... more >>
SmtpMail Attachment Error
Posted by Jimmy at 11/9/2003 5:47:38 PM
I am trying to send an attachment using SmtpMail. I am
able to send an Excel or text file, but when I try to
send a pdf file, it throws an exception: could not access
CDO.Message object. The file size is about 1.92 MB. I was
wondering what could be the factors that result in such
an except... more >>
How to sync this asynch process ?
Posted by Cybertof at 11/9/2003 5:34:29 PM
Hello,
I'm inserting a new row in a Access database containing an
"AutoIncrement" column.
The autoincrement value is set by the database once the update occurs.
The only way to get this value is through an event delegate.
My question is inside the comments :
....
....
....
// Call... more >>
adressing a "random" picturebox
Posted by dawn at 11/9/2003 4:43:49 PM
Hi,
I'm writing an app that has two rows of 6 pictureboxes.
1 2 3 4 5 6
7 8 9 10 11 12
When i click on a picturebox in one row.....for example 7....i want the
picture in it to move to the first free picturebox in the other row. So if 1
and 2 are occupied I w... more >>
Directory Enumeration on a Network share
Posted by irfan saeed at 11/9/2003 4:22:08 PM
How can i traverse through the direcotries sitting on a Network share. i
used directoryInfo object, but somehow it does not work on UNC paths.
any kind of assistance is appretiated.
Irfan
... more >>
Quest: Accessing parent form's public data member...
Posted by lewi at 11/9/2003 4:17:48 PM
How do I access data members of a parent form class and from a function of a
child form class. Both classes are both in the same name space and are
public classes...
The child form is a Modal dialog and should setup some of these data members
and validate them before OK button handler lets the... more >>
Ado.net : How to insert a row without filling the dataset ?
Posted by Cybertof at 11/9/2003 3:10:53 PM
Hello,
Is it necessary to initially fill a dataset to be able to add a new row
to the dataset and then update the undercover database ?
(In the case of a very large database, this would mean that all the
database content should be loaded before beeing able to add a new row,
and i don't wan... more >>
ProcessDialogKey isn't called
Posted by Jim at 11/9/2003 3:06:25 PM
I'm missing something, because I'm just not understanding this process. I'm
using a Form (no derived controls or derived forms) and I want to catch the
arrow keys. I've got the overridden ProcessDialogKey written (see below),
but it isn't called when I press the appropiate keys. How do I call ... more >>
Re: Ado.net : How to insert a row without filling the dataset ?
Posted by Empire City at 11/9/2003 3:02:29 PM
"Empire City" <a@b.com> wrote in message news:...
> Is it necessary to initially fill a dataset to be able to add a new row
> SqlConnection myConn = new SqlConnection("...");
> SqlCommand myCommand = new SqlCommand( "Select * from Company", myConn);
> OleDbDataAdapter myDA = new OleDbDataAdap... more >>
How to get another application's install path?
Posted by Jeff Yang at 11/9/2003 2:55:33 PM
I have two applications(A and B),and I install the two applications
seperatly.Now I want to get B's install path in A,How can I do that?Thanks.
... more >>
SqlParameter Design Problem
Posted by Steven Blair at 11/9/2003 2:38:45 PM
Hi,
I am currently writing a method for calling stored procedures. I want the
method to be able to handle variable amount of parameters and need some
advice on the design of this.
The way I see it, there is two ways of doing this.
Number 1 being a method for each stored procedure.
Each o... more >>
how to control two printers together?
Posted by Johnny Hu at 11/9/2003 2:25:59 PM
my program needs to print monthly bills
i want to print bill and bill details on two printers synchronous
how to find the two printers installed on computer and control them to print
together?
regards,
Johnny Hu.
... more >>
Exception catch, then rethrow question
Posted by Taylor at 11/9/2003 2:24:19 PM
I've run in to code with this pattern:
try
{
// do some potentially bad stuff
}
catch(System.Exception ex)
{
throw ex;
}
I'm not clear as to what the coder had in mind when he caught the exception
only to turn around and rethrow it without doing anything else in the catch
bloc... more >>
about string combination
Posted by AsuWoo at 11/9/2003 1:13:27 PM
hi,
I want to implement a function that prints all possible combinations of a
characters in a string,eg. input "123"into a textbox,
add "1","2","3","12","13","23","123",to a listbox,Or "ab" into a textbox,add
"a","b","ab"in a listbox,could anyone help me out ?
... more >>
Inappropriate question?
Posted by John McMahon at 11/9/2003 12:55:59 PM
Several days ago, I asked why, in a console application, I could not access
the Windows class under System.
One piece of info I left out was that this was the standard edition of C#.
However, my post does not seem to have made it to the mailgroup list and,
since this is an MS run mailgroup, I th... more >>
Make a Plural Word Singular(and vice versa)?
Posted by Steve - DND at 11/9/2003 12:52:24 PM
Just wondering if anyone out there has any code to convert a plural word to
it's singular form and vice versa. Most of our database tables are named in
a plural fashion. When we go to create templates to select a single record,
we end up with a class name that sounds as if it's a collection inste... more >>
files in resources?
Posted by Dan at 11/9/2003 12:20:26 PM
I have a C# DLL file using some small XSD files to validate XML input, some
XML files to store internal parameters, and some XSLT files to transform XML
files. These files are not intended to be modified by users and are required
by the DLL, so I think I should embed them in the DLL assembly poss... more >>
printing barcode
Posted by Saso Zagoranski at 11/9/2003 12:13:18 PM
Hi all!
Does anyone know how can I print a barcode to a normal printer? I have to
use code93...
I have seen an example of this where code39 is used...
printFont = new Font("Code39",18);
graphics.draw...(....,printFont,text);
is this it? I think it should be a bit more complicated than ... more >>
Graphical Display
Posted by jerry chapman at 11/9/2003 11:39:12 AM
Is there a way to draw and manipulate images on the screen? For example, I
would like to place a small square on the screen and use the arrow keys to
move the square up, down, left or right.
... more >>
Getting Pixel Value
Posted by Raju at 11/9/2003 4:43:57 AM
Is there any way to get and set the pixel value in a
container control(form, picturebox...)?... more >>
clarifying
Posted by smith flyers at 11/9/2003 3:05:25 AM
static void Main(string[] what) { string test="testing 1 2 3";
test.Replace("testing", "test"); } // why this doesn't replace the word
"testing" ?
when using "try" can i use multiple "block catch" ? // i tried but can't
, this is allowed in java right, how about C#?
ex. catch(excepti... more >>
object Boxing
Posted by maheal.geo NO[at]SPAM yahoo.com at 11/9/2003 2:52:42 AM
Take the following code:
string s = "Hello";
object a = s;
object b = s;
would (a == b) return a true value? Basically, I want to know if
boxing the same value references only one object, or if each object
creates a new reference, but with the same value. Thanks!... more >>
Interface Name Collisions
Posted by Walid at 11/9/2003 1:47:55 AM
Hey,
I was trying some code with the .Net framework 1.1, and I found that the
Interface name collisions is still not resolved in that version of the .net
framework.
I am refering to that piece of code which i took from the book of Inside C#
(Archer).
using System;
interface ISerializabl... more >>
C# verses VB.Net Which Way to go
Posted by Robert Lario at 11/9/2003 12:44:26 AM
C# verses VB.Net Which Way to go. I am sure this issues has come up before.
Please direct me to any good articles that cover this issue. Ideally some
neutral assessment.
... more >>
Is there any way to read strings from a file
Posted by H at 11/9/2003 12:40:00 AM
Now, I'm here with another newbie question ....
I want to read a text file, string by string (to do some things with some
words etc etc), but I can't seem to find a way to do this String by String.
Is there anyway, like String s = something.ReadString() ?
Or what may be a fine way to do this... more >>
|