all groups > c# > may 2005 > threads for monday may 30
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
"COM Object with CLSID {...} is either not valid or not registered."
Posted by compassSoftware NO[at]SPAM gmail.com at 5/30/2005 10:36:02 PM
I am trying to work on an application that uses a dll as a COM object.
I am coming in late to this project to administer/update the
application.
I notice in the References that a particular DLL is referenced as
"Interop.DLLName" and I have the original DLL file as just DLLName with
no Inter... more >>
How to obtain the IP address of the interface...
Posted by Rodrigo C. Souza at 5/30/2005 7:00:01 PM
How to obtain the IP address of the interface that is connected to the
Internet?
I´m using the code below to get IP address of the local machine:
//*********************************************
private void button1_Click(object sender, System.EventArgs e)
{
string HostName = Dns.GetHostName... more >>
Regular Expression Regex/Match fails if regular expression returns a null
Posted by tdmailbox NO[at]SPAM yahoo.com at 5/30/2005 5:39:41 PM
I have the following regular expression. It works fine if the regex
code returns a match. However if not the .match code fails.
How can I code this so that it skips the match if the regular
expression does not find anything?
Regex reg_unit_num = new Regex("L_unit_num.*?>(.*?)</td>",
Reg... more >>
executing a batch file from code
Posted by Sinex at 5/30/2005 3:44:35 PM
Hi,
I am triggering a batch file from my C# code. There are no echo commands
in the batch file...yet the console window/command prompt window pops up
every time the batch file is triggerred. Is there a way to stop the window
from appearing and just running all the batch commands in the backgr... more >>
Stored procedure
Posted by nbohana at 5/30/2005 3:31:02 PM
I am trying to code an compile a stored procedure without success. So I
generated one using Microsoft Visule C# .Net. and it follows. One of the
problems is that it will not compile. Some of the message won't to put ';'
all over the place, I some need help!!! These are some of the compile
m... more >>
string inside IF statement is showing an error like it is not decared.
Posted by tdmailbox NO[at]SPAM yahoo.com at 5/30/2005 3:23:45 PM
I had some code that returns a random record for a recordset. It works
fine unless my record set has one value. So as a solution I tried to
wrap the whole thing inside an If statement so that it was only called
if the record count was bigger then 1.
However when I made that I change I get th... more >>
Advice on design - Picking items problem
Posted by discussions NO[at]SPAM avandis.co.uk at 5/30/2005 2:41:32 PM
Hello all,
I would like some advice how best to approach the following problem. I
have "sort of" solved it but in a very horrible and complex way, I'm
sure there's a better, simple and more elegant way, but I just can't
see it.
The problem is as follows...
I have a list of items that are... more >>
Does any one use the Logging application block?
Posted by D at 5/30/2005 11:00:46 AM
I was wondering if anyone knew any places where I could get some more
specifics about it. I have read the docs but they seem very vague to me and
don't describe all the available settings.
Specificaly I'm wondering
1. What is the instrumentation part do? It seems it only counts the number ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
GetString(4) is null
Posted by GTi at 5/30/2005 9:21:27 AM
I have a SQL database and some fields may be null.
This will trow an exeption:
string[] s=new string[10];
s[0]=String.Format("{0}",myReader.GetString(1));
s[1]=String.Format("{0}",myReader.GetString(2));
s[2]=String.Format("{0}",myReader.GetString(3)); // null field
s[3]=String.Format("{0}",... more >>
Stretching Images
Posted by Raed Sawalha at 5/30/2005 8:00:02 AM
I read in MSDN an examples for Image Stretching but something I can not
understand is this line
e.Graphics.DrawImage(newImage, destRect1, x, y, width, height, units);
what is e in all example they did not show what is e ????? any help... more >>
statics inheritance and singletons
Posted by Andrew Ducker at 5/30/2005 7:45:07 AM
I'm implementing a singleton using the example at:
http://www.yoda.arachsys.com/csharp/singleton.html
as a basis (second example).
However - I have about 20 classes I wish to make singletons - and I
don't want to duplicate the code in each one. The difficulty comes in
the method that returns... more >>
beta2 XHTML compliance? is this necessary. OR STUPID...read UP MICROSOFT
Posted by rhat at 5/30/2005 7:34:09 AM
I heard that beta 2 now makes ASP.NET xhtml compliant.
Can anyone shed some light on what this will change and it will break stuff
as converting HTML to XHTML pages DO break things. see,
http://www.alistapart.com/articles/betterliving/
I read on
http://msdn.microsoft.com/netframework/defaul... more >>
Application startup events?
Posted by David Mansilla at 5/30/2005 7:10:27 AM
hello all, I am wondering how to trap application load event on a windows
forms c# application.
My objective is to instanciate my own windows forms on the fly based on some
registry settings.
where in the visual studio project can I write this code? I need to know
where does the applicat... more >>
C# & SQL Server
Posted by Sumit at 5/30/2005 6:48:26 AM
Hi all,
I have a table having 20 fields & 10 rows with one field as primary key
say rollNo.
I want to copy a row of the table to the table itself with a new
rollNo.
Is there a simple way out or i have to take the row in a dataset & then
modify the rollno column of the dataset with the new ... more >>
AcceptC=ADhangesDuringFill_Specified_Cast
Posted by thomson at 5/30/2005 6:45:04 AM
Hi all,
Iam getting a Specified cast not valid on this line
((System.Data.OleDb.OleDbDataA=ADdapter)objDataAdapter).AcceptC=ADhangesDur=
ingFill=3Dfalse;
Please help me out=20
thanks in advance=20
thomson
... more >>
windows form inheritance
Posted by Iwan Petrow at 5/30/2005 3:32:46 AM
Hi,
I have one base form which has a panel control. I made the panel
control protected because I want to add controls in it. When I inhert
it using visual studio designer and add controls (anywhere in the form)
the designer add one row: this.myPanel.Size=.... and in this way I have
problems w... more >>
C# Web Control Library
Posted by Barry at 5/30/2005 3:17:54 AM
Hi
does anyone know of a C# Web Control Library example code / project
which creates a Graph not using controls like Table, Labels etc.
TIA
Barry
... more >>
Display DataTable content reversely
Posted by Eunice at 5/30/2005 12:33:09 AM
Hello.
I want to display the content of 'displayTable' object reversely.
When from r=0 to r= displayTable.Length-1, the code works well to display.
But when from r= displayTable.Length-1 to r=0, the code doesn't work to
display.
Thanks a lot for any help.
**********
DataRow[] displayTa... more >>
Windows service starts and stops automatically
Posted by Eugene at 5/30/2005 12:15:05 AM
I have two window services that I created in C# and VB.net, one each, and set
them to manual startup type. However, sometimes (not everytime) when I starts
the service, an error message pops-up to say the service started and stopped
automatically.
-------------------------------------------... more >>
empty character literal
Posted by Eranga at 5/30/2005 12:13:16 AM
What is empty character literal and how can we get rid of it.
I want to check whether the text box is empty so I use
if (TextBox1.Text == '' ) Why cant I do this?
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Accessing the instances of the web user control
Posted by Vivek Sharma at 5/30/2005 12:00:00 AM
Hi,
I have created a dropdownlist as a web user control. I am using its
multiple instances on the webpage. How do I access the selectedValue of
each instance? All the instances have different IDs.
Thanks
Vivek
... more >>
Image size?
Posted by perspolis at 5/30/2005 12:00:00 AM
hi all
I want to decrease size of an image without losing it's content.
for example decreasing size of an image by 20%.
thx in advance
... more >>
Renumbering keys in a SortedList
Posted by Pekka at 5/30/2005 12:00:00 AM
Could somebody say why the piece of code below does not work? My purpose
is to renumber keys in a SortedList (after removal of an item) so that
the keys would always contain an unbroken sequence of integers starting
with 1. For some reason this is not the result.
IDictionaryEnumerator d... more >>
Global variables
Posted by Paul Cheetham at 5/30/2005 12:00:00 AM
OK, I know you can't have globals in C#, and I know that they are abused
in other languages, but sometimes they are the best answer:
I have a Settings Class. I would like to create a single instance of
this settings class so that my other classes can use it to read / write
their settings.... more >>
Regular Expression
Posted by quest at 5/30/2005 12:00:00 AM
I have a regular expression :
Match match = Regex.Match(line, @"(?<name>.*)\((?<id>\S+)\)");
It is able to parse the text with the following syntax:
data(Hello)
type(integer)
My regular expression failed when the following is encountered:
data(Hello world)
How do I modify my regula... more >>
saveFileDialog question
Posted by Zach at 5/30/2005 12:00:00 AM
What is wrong with ****
What should it be?
Thank you.
private void button3_Click(object sender, System.EventArgs e)
{
{
if(saveFileDialog1.ShowDialog() == DialogResult.OK)
{
using (StreamWriter sw = new
StreamWriter(saveFileDialog1.FileName****))
{
sw.WriteL... more >>
Bound Datagrid and Dataset - update details???
Posted by Darryn at 5/30/2005 12:00:00 AM
Hi
I am having a few problems with one of my forms... I have a data grid bound
to a dataset using a currencymanager and it's all working fine. However when
i edit or change any of the data in the Datagrids columns/rows i need to
call update so the changes are saved back to my database, this is... more >>
|