all groups > c# > november 2004 > threads for friday november 5
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
c# in .Net code examples?
Posted by Davids at 11/5/2004 11:36:32 PM
hello
I'm finding lots of .Net code examples/applications but their all in VB and
I want to learn doing them c# way... any sites you can recommend?
... more >>
Exporting to Excel - how to copy/paste/insert rows?
Posted by Mansi at 11/5/2004 10:28:01 PM
I'm trying to automate excel from c#. One of the things I need to do is to
copy/paste/insert rows in excel via c# code.
I tried to do the following:
1) Select a row in excel (a12 to k12)
2) Insert a row.
3) copy contents of a12 to k12.
4) Paste these contents to new row.
The "Record Mac... more >>
Regular expression for GMT expression
Posted by Christian Staffe at 11/5/2004 9:56:12 PM
What would be the exact regular expression to match GMT strings like "GMT",
"GMT+01:30", "GMT-02:00", GMT+05:45...
Christian
... more >>
Rookie Form Question
Posted by david NO[at]SPAM guenthners.com at 11/5/2004 9:19:03 PM
I have a csharp form1.cs created with VS. I have added a menu bar
with one option called help. I then created another form in VS called
help.cs. How can I launch the help form from the main form called
form1.
Seems simple.
private void menuItem5_Click(object sender, System.EventArgs e)
... more >>
Using Paradox Tables in C#
Posted by Bob at 11/5/2004 8:59:25 PM
I'll try this again, see if anyone has a response....
Anyone done a DELETE or UPDATE on Paradox tables in C#?
I can read the stuff, but I can't delete records.
I tried using ExecuteNonQuery and it choked. Then I tried
using an Odbc data adapter. It didn't give an error, but it
also didn't c... more >>
app config file
Posted by 2G at 11/5/2004 7:40:33 PM
Hi,
I have some trouble reading from the config file, don't know what I'm doing
wrong.
I created a config file named App.config and contains following :
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Port" value="20789" />;
</appSettings>
</con... more >>
Create private queue remotely?
Posted by baby ell NO[at]SPAM at 11/5/2004 5:07:21 PM
I'm accessing a private queue in another machine and if the queue does not
exists in that machine, i would like to create the private queue.
Example:
MessageQueue newmsg =
MessageQueue.create("FormatName:DIRECT=OS:ella\private$\newq");
i encountered an error: unable to create queue.
please... more >>
I've got a strange bug with Listbox.DataSource...
Posted by Zoury at 11/5/2004 5:00:23 PM
Hi there! :O)
I have a WebService that contains the following struct definition. this
struct is defined right after the WebService class, ie :
//***
namespace mynamespace
{
public class MyWebService : WebService {// code here..}
public struct Record
{
// fields
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
PLEASE HELP!! Transparent blitting not working!
Posted by nicksjacobson NO[at]SPAM yahoo.com at 11/5/2004 4:10:33 PM
The following code is used to draw a bitmap on a form with a color key
(i.e. a color that's not drawn). For speed purposes, I'm trying to
call the Win32 API function: TransparentBlt.
But the call is failing (and the image is not drawn), with an error
code of 126: "The specified module could n... more >>
Controls and Parent
Posted by Zürcher See at 11/5/2004 4:04:23 PM
The Control class has the Parent property that is readonly.
When the control is added to a controls collection of another control the
Parent property refers to that control.
"Who" set the Parent property? How to implement this "mechanism"?
public abstract class MyControl
{
private MyCon... more >>
inheritance
Posted by RS at 11/5/2004 4:02:19 PM
I have a class that inherits from Dataset. I have couple of methods that
extend functionality of the dataset to fit my specific need.
I also have a SQL helper class that has method Execute dataset. Its brings
back filled dataset.
When i do :
MyDataset ds = new MyDataset();
ds = (MyDatase... more >>
FarPROC
Posted by dmorenos NO[at]SPAM gmail.com at 11/5/2004 3:56:59 PM
I'm integrating a third party API to my c# app.
I have a funciont like this:
int FAR PASCAL funcSetUpCallBack(unsigned long dwEvent,FARPROC
funcImageCallBack)
How do I have to import it so i can subscribe to an especific event
and trigger a C# mthod in that moment?
David Moreno... more >>
delegate or event handler?
Posted by ALI-R at 11/5/2004 3:37:24 PM
What is the difference between implementing an Event using a Deligate or an
Event Handler?,look at below
1)this.button1.Click += new System.EventHandler(this.button1_Click);
...............
private void button1_Click(object sender, System.EventArgs e)
{
MessageBox.Show("You have clicked... more >>
No Check Mnemonics in C#???!!!
Posted by Julie at 11/5/2004 3:08:34 PM
Empirically, I find that there is no way to check mnemonics in a C# project
form, however you *CAN* for a C++ project form.
http://www.codeguru.com/forum/printthread.php?threadid=259064
Can someone from MS confirm this?
If so, what kind of insanity is this? Explain how to check keyboard m... more >>
Can a Windows Form return a value?
Posted by VMI at 11/5/2004 2:58:03 PM
In my Windows application, the main Form (Form_Main) calls a small Form
(Form_X) that checks a file. Basically, I pass the name of the file through
frmX's constructor and then I display it with ShowDialog(). In the
constructor, I call the method that runs the validation process. Is it
poss... more >>
QueryInterface for interface xxx.xxx failed.
Posted by Robert Winkler at 11/5/2004 2:06:57 PM
We receive the error as written in the subject of this post, where xxx.xxx
is like PrintBillClass.IPrintBillInterface. What we are doing is calling a
COM object from our .NET Web application.
Note: It works on the developer's machine, but does not work on our
production machine.
The devel... more >>
Getting bottom N records from DB table to Datatable
Posted by VMI at 11/5/2004 1:55:05 PM
How can I get the bottom N records from an Access table and store them in my
DataTable?
For example, in my Access table with 2000 records, if I want to display
records 151-200 (with ID as PK), my query
would be:
"select top 50 * from audit where ID > 150 order by ID asc"
Since ID is type... more >>
Creating a constrained class that implements an interface (C#2.0)
Posted by Leicester B. Ford Jr. at 11/5/2004 1:50:01 PM
I have this class:
public class ItemType
....
public class ProductType<T> where T: ItemType
....
Now I want to add an IDisposable interface to ProductType...
--
Thanks,... more >>
Newbie: Undo DataSet change?
Posted by Sal Bompensaro at 11/5/2004 1:40:35 PM
Hi,
I have a super-basic question for you:
I have a typed DataSet which contains several tables. Throughout my
WinForms app, the user has a chance to modify this dataset and submit these
changes to the server. Prior to submission, the user will be given the
option to "Save Changes" ... more >>
Dynamic array with strong types?
Posted by Vincent Finn at 11/5/2004 12:18:06 PM
Hi,
Is there any way of having a strongly typed dynamic array in C#?
ArrayList requires you to cast every time you want to access an
element
object[] isn't dynamic
I have resorted writing a hacky Add() function for object[] (below)
the other alternative was deriving a ArrayListBool etc... more >>
How put TabPage into ToolBox?
Posted by Fei Li at 11/5/2004 11:49:02 AM
Graphs
Posted by bernardpace NO[at]SPAM yahoo.com at 11/5/2004 10:54:20 AM
Hi,
Is there a way of drawing graphs by using C# (Graphs having y and x
axis). If yes can you suggest me some links that I can read to learn
how to do so.
Thanks in Advance... more >>
hashtable
Posted by Ilann at 11/5/2004 10:53:50 AM
Hi,
I'm trying to create a new Hashtable and use it:
System.Collections.Hashtable hash_directory;
hash_directory.Item("blabla");
and here is the error message I get:
'System.Collections.Hashtable' does not contain a definition for 'Item'
any idea??
Thanks
Ilann
... more >>
UNIX style HUP for .Net apps?
Posted by Steve at 11/5/2004 10:41:11 AM
Is there a UNIX style HUP call for .Net apps to make them keep running,
but reread their .config files?
Thanks,
Steve... more >>
Why dll assembly read AppSetting from its executable Config file
Posted by keith at 11/5/2004 10:38:02 AM
In my app, an executable (app.exe) calls functions from an assembly dll
(subapp.dll).
app.exe has config file: app.exe.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="configVal" value="exe config" />
</appSettings>
</configuration>
an... more >>
calendar configuration
Posted by Diego_Atos at 11/5/2004 10:28:52 AM
I need a weekly calendar. I want the calendar to show only a week (not a
month) and navigate from a week to another.
How can i set it?
Thanks
--
-Diego (Atos)-
-L'uomo è superiore agli animali-
-Fanno eccezione il nano e la giraffa-
-A.Bergonzoni-
-Per rispondere in privato pota... more >>
Re: Scanner Probs and c# (Jon Skeet the MaStEr, please help)
Posted by Dan =o\) at 11/5/2004 10:23:30 AM
> It would really depend on the rest of your code, to be honest. If
> you're getting all the right data though, it doesn't sound like it's a
> problem with the scanner. You really need to get to the bottom of why
> calling your search (or whatever) method with the identical data
> supposedly som... more >>
IIS reject Credentail
Posted by choihead at 11/5/2004 10:02:37 AM
hi all,
I have a problem facing the I pass the username and password by
HttpWebRequest, but it gives me 401.
so is there any setting or mehtod I can check or solve that?
Choihead
... more >>
Class constructors
Posted by Mujtaba Syed at 11/5/2004 9:47:38 AM
Does that runtime guarantee that my static constructor will complete
execution before I call any other static method of that class?
If not, what is the most efficient way of implementing this.
Thanks,
Mujtaba.
... more >>
Console Application
Posted by Jim Heavey at 11/5/2004 9:38:04 AM
I am starting to try to write a console application and I have question about
how to launch these type of applications.
I create a "driver" class which will execute the appopriate functionality
based upon and input parameter, but I am not sure I have seen any example of
how to read this val... more >>
evaluate expression string programmatically
Posted by Zeng at 11/5/2004 9:26:21 AM
Hello,
I just wonder if there is a way to programmatically evaluate expression
strings such as
( ( 3 + 5 ) / 2 ) > 4 --> this should return 0 or false
( ( 3 + 6 ) / 3 ) > ( ( 5 + 3 ) / 4 ) --> this should return 1 or true
Thanks for any comment or advice.
... more >>
Rss Feed
Posted by smandelecha NO[at]SPAM gmail.com at 11/5/2004 9:17:31 AM
Hi
I am trying to provide infrastructure for RSS feeds on my Website. I
dont intend to build any news aggregators. I just want my website to
be enabled for providing RSS Feeds. I am using ASP.NET and C#. And I
dont know where and how to begin. Do you know of any tutorials that
may help me do th... more >>
Accessing IL code using System.Reflection
Posted by Testing1000 at 11/5/2004 8:39:37 AM
Hello,
Is there away in .Net to view an assemblies IL code after
I get the Assembly object via call to Assembly.LoadFrom
(assemblyName). I don't want to use utilities like
Reflector for this type of development. I am using
Framework 1.1.
Please help.... more >>
How to access IL code using System.Reflection
Posted by Test1000 at 11/5/2004 8:28:12 AM
Hello,
I want to know how I can access the IL code using
System.Reflection. I don't want to use any tools like
reflector etc because I want to programmatically access
the IL code.
Thanks,... more >>
More Bindings
Posted by Chuck Bowling at 11/5/2004 8:18:10 AM
I have a typed collection bound to some form components. When information in
the dataset changes I want to mark it as dirty so that I can save it when
the form closes. The BindingManager.CurrentChanged event looks like the
perfect place to do this but it turns out that CurrentChanged also fire... more >>
Can we make a TreeNode to allow multiple selections?
Posted by Andrew at 11/5/2004 8:10:02 AM
Hi, friends,
Is there a way to make a TreeView allow multiple selections, like in a List
control?
Thanks.... more >>
japanese gaming encoding problem
Posted by jfigurski NO[at]SPAM comcast.net at 11/5/2004 8:07:38 AM
Hi,
I have an American computer using windows XP. I recently bought a
japanese game to help me learn japanese as I play. I installed the
game sucessfully, but the letters are not displayed in "true"
japanese. What I mean by that is, there are a few letters that
actually are japanese combined... more >>
With Feature
Posted by Fernando Hunth at 11/5/2004 7:34:06 AM
Why was not included , like in VB.Net the With feature.
In VB you can use an Object like this.
With MyObject
.Text = "Hi"
End With
Or like jScript
with (MyObject)
{
Text = "Hi";
}
Why it is not present in C#?
... more >>
what is wrong? Please help....
Posted by Andrew at 11/5/2004 7:29:02 AM
Hi, friends,
In a VC# user control, I have a TreeView control, which has its property
ImageList = TreeViewImageList control. All images are added into this
TreeViewImageList control, and everything looks fine.
However, when I compiled it, it stopped at:
this.TreeViewImages.ImageSt... more >>
Arithmetic Operations
Posted by bernardpace NO[at]SPAM yahoo.com at 11/5/2004 7:06:30 AM
Hi,
I am trying to work out the following equation
double x;
x = 2/40;
The value of x being reported is 0;
The real answer should be 0.05.
Can someone explain me why this occurs and how I can solve it.
Thanks in Advance... more >>
Large string constant causes C# compiler crash
Posted by Gnik at 11/5/2004 6:53:04 AM
I created a C# application with some large string constants and whenever I
try to build the solution the compiler crashes with no error message. On
further analysis the problem seems to occur when the string constant has
around 2100 character. I tried changing the constant declaration to a str... more >>
handling services from C#
Posted by SR at 11/5/2004 6:25:01 AM
Hi all I am able to get the list of services from C#
using System.ServiceProcess.ServiceController ->
GetServices() method. However, I don't find any C# method
that will change the StartMode of any service. I
currently know of changing the StartMode programmatically
by going to
HKEY_LOCA... more >>
IP address
Posted by Michael at 11/5/2004 5:23:03 AM
I built two programs, one is a server and the other one is the client, I want
those two programs to work on the same machine and to exchange information
through the internet.
IPAddress ipAddress = IPAddress.Parse(my IP);
IPEndPoint localEndPoint = new IPEndPoint(ipAddress, port);
I use this... more >>
Books for Direct X programming in C#
Posted by IceColdFire at 11/5/2004 4:32:02 AM
Hi ,
I am a software developer in C/C++/C#. I need some good books names and
references for Direct X programming in C#.I am from India and would love if
the books are available in India.
Bye... more >>
partial classes and designer properties
Posted by Sebastian Sylvan at 11/5/2004 3:12:49 AM
Hey. I have two questions.
First of all I'm using the Visual C# Express Beta.
When you create a windows application it will automatically split the
main form into two files using partial classes.
In the solution explorer this is seen hierarchially as somthing like
- MainForm.cs
-> Main... more >>
xml character references
Posted by Jesper Nilsson at 11/5/2004 3:02:02 AM
I'm trying to read a xml-file with swedish characters (å, ä, ö). I know that
xml can't read this characters so I have replaced them with standard entities
(å ä ö) according to "ISO-8859-1".
http://www.w3schools.com/html/html_entitiesref.asp
But when I trying to read the xml-file I get... more >>
reflection / casting
Posted by cv at 11/5/2004 2:51:47 AM
Hi, I want to create an object from a class I load from an assembly.
Then I want to cast that object to a class (an interface) 'known' to the
program in order to pass it to other methods that work with that interface.
The casting is invalid but I can't see why, as the class I load from the
... more >>
Excel's spooky behaviour (OWC Question)
Posted by csst9965 NO[at]SPAM scylla.cs.uoi-dot-gr.no-spam.invalid at 11/5/2004 1:58:27 AM
The Main Question
Where Can I find the Class Documentation for OWC(Office Web
Components)?
I want to find how to tell to an Excel column to accept specific data
types of input values.
[b:ffd9a7a328]The Story Behind[/b:ffd9a7a328]
I'm using OWC to extract a DataTable or a C1.FlexGrid to Exce... more >>
thread
Posted by Paul at 11/5/2004 12:53:01 AM
Hi,
How do I wait until a thread is finished his job then continue to the
original thread?
public void main(string[] args)
{
Thread t = new Thread(new ThreadStart(DoWork));
t.Start();
while(t.IsAlive)
{
// I don't know how to wait until thread t is done
// then execute MessageBox be... more >>
Folder size
Posted by mc at 11/5/2004 12:26:23 AM
This is a multi-part message in MIME format.
------=_NextPart_000_0030_01C4C2CE.1490EC30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I need to do a simple program to monitor the size of a folder =
directory.
The size can flutuate from 1 Kb ... more >>
Time Comparison
Posted by mc at 11/5/2004 12:17:50 AM
How to do a time comparison?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.782 / Virus Database: 528 - Release Date: 22/10/2004
... more >>
|