all groups > c# > november 2006 > threads for tuesday november 28
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
Help:a tool which will extract contents and images from html page
Posted by Dhananjay at 11/28/2006 11:00:55 PM
Hello everyone
Do you have any idea about how to generate a tool which will extract
the contents and images from html page.or do you have any resources
then let me know. i am using VS 2005 C#.net,Asp.net for development of
this system.
reply me asap
Thanks
Dhananjay
... more >>
Your opinion please
Posted by C# Beginner at 11/28/2006 9:44:41 PM
I'm currently creating a database class, which contains a member called
Open(). With this method users can open different databases. When a user
tries to open a database which happens to be secured with useraccounts
(username, password etc), the user should be notifed to login.
Now, in my o... more >>
String format...
Posted by karthee at 11/28/2006 9:23:05 PM
i have this structure...
struct tFullTime
{
public int Year;
public int Month;
public int Day;
public int Hour;
public int Min;
public int Sec;
public int Hun;
} tSrcTime;
this is C++ code....
CString sReturn;
sReturn.Format( "%02d:%02d:%02d - %02d/%02... more >>
enumerate iso currency codes
Posted by Eric at 11/28/2006 9:18:20 PM
I know this is a property of the RegionInfo class. I figure somewhere in the
framework is the actual enumeration, which I would like to use.
I want to use it to support a Money class I need, along the lines of Fowler,
which would have an attribute of Currency.
Any help much appreciated.
... more >>
Need help with algorithm
Posted by MJ at 11/28/2006 9:15:08 PM
Hello, I need some suggestions on how to do this.
I am reading through a large iis loge. For each line, I get three datapoints
(sessionID, Time, Stage). I need to store these values into some collection,
but not sure which one. Here is how they are related.
For each sessionID, there is one... more >>
C# Delphi HashTable
Posted by Hafiz at 11/28/2006 8:29:37 PM
Hello,
do you have any idea which Hashtable takes more memory ...I mean if we
declare Hashtable in C# and in Delphi which one take more memorey? any
idea ?
regards,
... more >>
XML Document Serialization
Posted by et_ck at 11/28/2006 8:16:01 PM
Hi,
Is it possible to serialize a property of XmlDocument type within a class?
For example, I'm able to serialize the following class for the "Items"
property. But when I include a property that is of XMLDocument type I will
get an error.
How would you go about this?
using System;
us... more >>
How to get local machine name and IP address?
Posted by Hooyoo at 11/28/2006 6:38:21 PM
Hi, here,
How to get local machine name and IP address?
Thanks.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataGridView layout control in windows forms
Posted by jon.paine NO[at]SPAM gmail.com at 11/28/2006 6:25:13 PM
Hi All -
I'm working on my first real c# windows forms - but I've done c# web
development for awhile. The problem that I'm running into is with
defining a layout structure for a dataGridView cell.
In a gridview or a datarepeater you can use a template, but that
flexability doesn't seem rea... more >>
Find Specific Exception to Catch.
Posted by joseph NO[at]SPAM copticmail.com at 11/28/2006 6:04:11 PM
Hi,
I have managed to use the try{} catch{(Exception e)} to catch all
exceptions that is happens in the application.
My application is an Active Directory Interface and need to report all
exceptions and handle them differently so I need to find out what code
to Class to use so I can act diffe... more >>
Issues with inheriting from MarshalByRefObject
Posted by Dan Holmes at 11/28/2006 4:37:06 PM
I am in a jam. Since C# (or the CLR) doesn't support MI i need to
create either two inheritance hierarchies or have all my object inherit
ultimately from MarshalByRefObject.
I noticed that Windows.Forms.Form also ultimately inherits from
MarshalByRefObject with not a lot of complaints from... more >>
Converting string to double
Posted by SMichal at 11/28/2006 3:57:25 PM
Hi, how can I parse string "? 20.000" to double ?
... more >>
username
Posted by Eric Stott at 11/28/2006 3:29:58 PM
I am calling some code that is running as a service and am getting a
NullReferenceException. I am wondering if this is the reason:
m_sUserID = System.Security.Principal.WindowsIdentity.GetCurrent.Name
Does this line of code work for service apps?
Thanks
... more >>
ReportViewer Does not display
Posted by SimeonArgus at 11/28/2006 1:55:07 PM
I have a reportViewer object looking at a remote report. The good news
is that I can press the PDF or Print button, and the report coems out
just fine. I can also go to the report URL directly, and it works just
fine. However, with the report viewer on my page, I cannot see
anything.
The repo... more >>
List of a generic type
Posted by Jorge Varas at 11/28/2006 1:40:26 PM
Hi all,
Is it possible to have a collection of a generic type?
for example:
class a<t> where t : class, new
{
}
class b
{
List<a<t>> p;
}
I know that the previous example does not work, but any ideas on how to make
that concept work?
I need a collection that stores objects t... more >>
Custom Menus
Posted by tonFrere at 11/28/2006 1:29:23 PM
Hello,
I'm new to C# programming and would like to create a menu strip at
form-load, based on the results of a SQL query. The function would
create a menu depending on user rights. Do you have any article where I
can learn about Menustip hierarchy, MenuStrip, ToolStrip,
ToolStripItem, How do ... more >>
oops questions c#
Posted by parez at 11/28/2006 1:27:01 PM
hi all,
I want a method in my base class to be overriden by all derived
classes.My base class cannot be a abstract class. Also I dont want to
explicitly implement an interface for all derived classes.
How do i do it?
Can i just have one abstract method in a regular class?
Thanks in advance... more >>
Can this method overload be resolved?
Posted by Christof Nordiek at 11/28/2006 12:54:58 PM
Given the following code
Is there any way to call one of the Bar methods.
using System;
class Program
{
static void Main()
{
Foo<string, string> foo = new Foo<string,string>();
string s = "";
foo.Bar(s); // Compiler error CS0121
}
}
class Foo<T, ... more >>
page.aspx?option - how to detect "option"
Posted by Kevin Blount at 11/28/2006 12:33:43 PM
I've seen some sites that have URLs like this:
blahblah.com/page.aspx?option
i.e. there's no 'value' for the 'name' option. I'd like to find out how
to detect if the name' is part of the URL if there's no 'value'.
Can anyone tell me?
I can work with "?option=value&option2=value" no pro... more >>
Help with protected text in RichTextBox
Posted by MLM450 NO[at]SPAM hotmail.com at 11/28/2006 10:59:52 AM
I need to programmatically delete protected text in a RichTextBox. The
problem is that I can't find a way to do it without getting
undesirable results in the undo buffer.
If I unprotect the text and delete, 2 entries go into the undo buffer.
If the user performs a single undo, they get back th... more >>
Display Caspol.exe -lg output in a Form TextBox
Posted by Joe at 11/28/2006 10:42:09 AM
Hi
I am just writting a small utility to fire off some Caspol commands
I can run Caspol.exe -lg to see the security settings for DotNet thru
command line
Is there a way to get what Caspol.exe -lg displays into a textbox on a
form - so I can see what is set on the current machine???
... more >>
Question on Tree View Node Click Handler
Posted by Rich at 11/28/2006 10:14:17 AM
Another question from a noob.
I need to use a Tree View and perform actions when the user clicks on
nodes in the tree.
I can manually add a handler function for NodeMouseClick, but this
requires me to edit the InitializeComponent method in the region
"Windows Form Designer Generated Code". ... more >>
C# Excel multiple cell/column/row SQL Query Question
Posted by rise4peace at 11/28/2006 9:36:41 AM
Howdy,
I am trying to select a range of data within an excel spreadsheet using
a SQL query. The two queries below do the trick but I was wondering if
there's any way to combine both of these SQL queries into one query?
SELECT * FROM [Retail @home$A11:H46]
SELECT * FROM [Retail @home$J12:Q46... more >>
String Array to Int Array
Posted by AMP at 11/28/2006 9:36:38 AM
Hello
I get 2 errors in the following code that I cant Debug without some
help.
They are both in the TryParse function. Seems simple enough.The Errors
are Below.
private void ConvertLabelStringToArray(string p)
{
string[] CardsToBeSortedArray = p.Split(' ');
u... more >>
How to get static IP or name from dynamic IP
Posted by Mike9900 at 11/28/2006 9:26:02 AM
Hello,
Is there a way that I can connect to the internet using WCF dynamic IP. How
can I get the IP address of the computer I want to connect to?
--
Mike... more >>
How to have DataTable/DataSet in Business Object Class
Posted by Aryan at 11/28/2006 9:17:30 AM
Hi,
I am implementing Business object, but while implementing this I
want to have DataTable or DataSet as part of Business Object. For
example, I want to bind controls directly to these Business Objects. So
please suggest me how can I achieve this??
Is is good to create a Property in Busin... more >>
Caricare ComboBox
Posted by NowSeeSharp at 11/28/2006 9:14:23 AM
Ciao a tutti,
ho un problema probabilmente banale ma che non riesco a risolvere
per caricare in modo statico una combobox di un valore chiave e un
valore che venga visualizzato
utilizzo il metodo:
combo.Items.Add
non mi consente per=F2 di aggiungere una chiave che potrei richiamare
... more >>
Thread hanging/FolderBrowseDialog problem
Posted by Andrue Cope at 11/28/2006 9:09:12 AM
Hi,
We have a strange problem. We are invoking the FolderBrowseDialog and
have found that if we cancel that dialog within a few seconds of it
appearing it causes one of our (completely unrelated) background
threads to hang on program shut down.
Details:
Background thread is sitting idle wa... more >>
TreeView Node Click Handler Question
Posted by Rich at 11/28/2006 9:00:10 AM
Another simple question from a noob.
I would like to use a tree view and perform actions when the user
clicks on nodes in the tree.
The C# IDE sets up many things automatically - for example when you
double-click on a button control in the designer it creates a function
for the button click... more >>
Need shared access to file in C and C#
Posted by clintp NO[at]SPAM gmail.com at 11/28/2006 8:36:27 AM
In C, I'm creating a log file like this:
upd = _fsopen(outputFile, "wt", _SH_DENYNO));
// writing... Here's a sample.
fprintf(upd, "Sample contents");
fclose(upd);
In another thread -- in the same process -- I'm attempting to open this
file with:
FileStream... more >>
How to create an array of a certain type
Posted by garyusenet NO[at]SPAM myway.com at 11/28/2006 8:17:57 AM
I am writing a programme that when run will list the current internet
explorer windows open, and allow the user to choose which one they
would like to work with. At the moment I have managed to get as far as
finding open windows, and detecting which ones are internet explorer
windows, but I do n... more >>
e.KeyCode in KeyDown
Posted by Joachim at 11/28/2006 8:14:05 AM
Why does the following code
char l_ch = Convert.ToChar(
e.KeyCode);
give me the value 226 ('â') and not 60 ('<') when I press '<' ?
What am I doing wrong? I have also tried
char l_ch = Convert.ToChar(
e.KeyCode,
... more >>
int32 Vs Int
Posted by garyusenet NO[at]SPAM myway.com at 11/28/2006 8:07:11 AM
I saw some code using int32 recently I checked the ECMA doc's and
couldn't find a reference to this type. Am i right in thinking this is
the same as string Vs String and that int is simply a shortened form of
int32 - both of them representing 32 bit signed integers?
TIA.
Gary.
... more >>
DrawString - few font styls in the same row
Posted by Gidi at 11/28/2006 7:42:02 AM
Hi,
Is it possible to draw string with few font styls, like in WORD (i.e. Bold
and Underline) at the same line, on the same text ?
and is it possible that part of the line will be bold and the other one not ?
Thanks,
Gidi.... more >>
How to place the contextmenustrip at left mouse button.
Posted by ck.kislay NO[at]SPAM gmail.com at 11/28/2006 7:37:53 AM
On mouse left click when I show the contextmenu it displayed upper
corner of the form,Even if I add the property top, bottom of the
context menu it remains on the upper corner.
Is there any way to open the context menu at the mouse
left click and on that click position.
Thanks,
... more >>
GridView Cells
Posted by aljamala NO[at]SPAM gmail.com at 11/28/2006 7:33:17 AM
Hi,
I was wondering if there is a way to make a single cell readonly within
a GridView? I know you can do it for a column but what about a cell
within that column?
Thanks!
... more >>
Pull the current URL address from Internet Explorer
Posted by garyusenet NO[at]SPAM myway.com at 11/28/2006 5:39:25 AM
Hi,
I am writing a utility to help me in Internet Explorer.
How do i access Internet Explorer information.
For starters I would like to read the current URL from internet
explorer, into a variable in my programme. How do i do this?
Thankyou
Gary
... more >>
.NET Basic Question
Posted by Deepak Singh Sawner at 11/28/2006 4:46:46 AM
Hello All ,
I need to know the Platform indenpendcy of .Net Framework , Like java
..... .net is platform independent or not
Please answers me , as i am not aware about much in .net frame work
regards
Deepak
... more >>
FileUpload problem
Posted by forumaic at 11/28/2006 4:11:01 AM
Hello,
I am newbie in this stuff, can somebody to help me.
Maybe can somebody to say how to manually to set file name and path in
code for fileupload control, not to let to choose file for user with
browse button.
For example (textBox) textBox.Text = xxx; textBox.Enable = false;
But how ... more >>
Format text in a messagebox
Posted by garyusenet NO[at]SPAM myway.com at 11/28/2006 4:00:35 AM
Hi i have a messagebox like so.
MessageBox.Show(mystring);
I would like to highlight each occurance of the word "and" in the
messagebox. How do I tell the messagebox to highlight each occurance of
the word and, in the string mystring that it is displaying?
Thanks,
Gary.
... more >>
string differences libraries
Posted by Jeroen at 11/28/2006 3:55:14 AM
We have update operations on strings, where we know the "New" and "Old"
version of the string. A html report will be generated about many of
these changes. I would like to mark these changes with colors.
Are there any .NET classes already available for this kind of string
comparison? We're wor... more >>
Converting form "{X=12, Y=34}" to a Point
Posted by Sharon at 11/28/2006 3:16:02 AM
I'm using an xml schema (XSD) that has a point data in it, so when I'm saving
the schema (from memory with values) to an XML file, the point value is saved
in the form of: "{X=12, Y=34}" And that is very good.
Also when I'm loading the XML file with the schema to a DataSet, this
"{X=12, Y=34}... more >>
LoadXML & NamespaceManager
Posted by Bruce Sandeman at 11/28/2006 2:56:34 AM
Hi,
Is anyone able to help me? I have the following code and when I try to
create an XPathNavigator object it keeps returning null. any cunning
ideas?
private void loadXMLDoc(String xml)
{
xmlDoc = new XmlDocument();
xmlDoc.LoadXml(xml);
... more >>
Schedule the launch of a program
Posted by Marcus at 11/28/2006 2:18:10 AM
I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts 1
minute after the user has logged in.
I previously did this with a sleep at the first row of the source code,
but this makes the process... more >>
Text Processing Headache - Please Help.
Posted by garyusenet NO[at]SPAM myway.com at 11/28/2006 1:59:10 AM
Hi All,
I have been working on the following programme over the last day or so
and have made a good deal of progress. It is a very simple programme,
but is proving very useful as a learning aid, and will eventually be
useful to me in it's own right.
It function is to open a text file, and r... more >>
Garbage Collection and unreferenced local variable
Posted by dotnetismylife at 11/28/2006 1:52:02 AM
Hi all,
I have a question, in the following code:
using System;
using System.Diagnostics;
namespace ConsoleApplication1
{
class TestClass
{
public TestClass()
{
Debug.WriteLine("TestClass constructor");
}
~TestClass()
{... more >>
Dealing cards
Posted by RobcPettit NO[at]SPAM yahoo.co.uk at 11/28/2006 1:44:28 AM
Hi, could somebody in the right direction to write a program to deal
cards. What I want to do is:
With an 8 deck of cards. I know the player has an ace, the dealer has a
2, is deal every possible scenario, going player,banker then dealer. Up
to max 3 cards each. Also there be rules for when the ... more >>
Xml write to end
Posted by Varangian at 11/28/2006 12:51:02 AM
Hello
I want to Write XML to an already existing XML file at the end of this
file
however I'm at a loss on how to do that...
whats the best way?
Thanks
... more >>
create a click event for control in the code behind.
Posted by Niron kag at 11/28/2006 12:35:03 AM
Hi,
I am writing in .net 1.1 asp.net program in c#.
In the code behind I declared a reference html control (frame):
[code]
HtmlControl rightFrame = (HtmlControl)mainFrame.FindControl("frmRight");
[/code]
Now I want to create a new "click" event for this control in the code behind.
This "c... more >>
How to use .dll created with C++ in C#?
Posted by CAIBird at 11/28/2006 12:20:02 AM
Hi,
I have a dll created earlier by VC++ which export a class. And now i want to
use this class in C# code, how can i do it?
And what if it is a static library(.lib)?
Thanks in advance
Joe Cai... more >>
Converting an application to work on a network
Posted by Adrian at 11/28/2006 12:12:48 AM
I have converted a number of applications to enable them to work together on
a network. I have been led to believe that I can do this as follows:
FileStream fs = new FileStream(some code);
while (!fs.CanRead){allow the processor to handle another thread;}
Hoverer, doing some tests I find out... more >>
Dynamic casting
Posted by mfc at 11/28/2006 12:00:00 AM
Suppose I have a Cookie class and a Factory Class. There are many types of
Cookies and maybe one or more Factories with a ProcessCookie Method. Suppose
all the PutInBox method does is decide what colour box to put the cookie
into. But since the colour of the box depends on whatever Factory is ... more >>
I'm trying to use FileSystemWatcher
Posted by somequestion at 11/28/2006 12:00:00 AM
Hi,
I'm trying to use FileSystemWatcher to determine when a new file has been
added to a directory. However, after the file has been added, I need to
process the file. This results in a problem if the file is large and takes
time to copy, as the events appear to get received before the copy is... more >>
Selection on disabled ListView control
Posted by Yoavo at 11/28/2006 12:00:00 AM
Hi,
I have a ListView control and I make it disabled when a certain event occur.
My problem is that when the control become disabled, the selection on the
selected item is gone.
(I want that the user will still be able to see the selected item).
Yoav.
... more >>
During copying file , wanna read file Size
Posted by somequestion at 11/28/2006 12:00:00 AM
During copying file , wanna read file Size like this
string CheckFileSize(string fileName)
{
if( fileName == null ) return;
FileInfo fi = new FileInfo(fileName);
return fi.Length.ToString();
}
but it shows total file size...
i just wanna read changing of file Size....... more >>
cheking hold process
Posted by somequestion at 11/28/2006 12:00:00 AM
i just want to know about ...
is there any way to check holing process
for example,
when i copy 500Mega file into the some folder, i just to want to use this
file ...
but i can't ....because it hold explorer...
after copy processing has ended it will be use...
what i want to know is
- check... more >>
call a function from the parent form | different namespaces
Posted by .::alex::. at 11/28/2006 12:00:00 AM
Hello,
I have an interesting question. I have an MDI App. The Child Windows are
in different projects and namespaces according with his business logic.
So, the "main" namespace contains the MDI Parent from where I call the Child
Forms as you see here:
frmCategories objfrmSChild = frmC... more >>
|