all groups > c# > september 2007 > threads for monday september 17
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
How do I upload files using remoting?
Posted by Karthik D V at 9/17/2007 10:38:04 PM
Hi Friends,
How do I upload files using remoting?
Thanks
... more >>
Programatically Get Error Line numbers for debug.
Posted by at 9/17/2007 8:25:13 PM
http://www.netnewsgroups.net/group/microsoft.public.dotnet.framework.aspnet/topic22503.aspx
shows ways to get errors in a server context.
i am trying to find ways to trap the line number where the code is
failing in try catch set up. if i hard code the line number by
looking at the IDE's edit... more >>
Invalid cast from base to derived
Posted by INeedADip at 9/17/2007 8:15:32 PM
Any help would be greatly appreciated, here is an example:
public class Order{
...
}
public class OrderItems{
...
}
public class OrderDetails : Order {
private List<OrderItems> _items = new List<OrderItems>;
public static OrderDetails GetOrderDetails(int orderID){
OrderDe... more >>
Fast creation for huge DataGridView?
Posted by M R at 9/17/2007 7:18:47 PM
I need to build and display a huge data grid (roughly 5000x5000). (I know it
is difficult to view, but i need to do it anyway)
the immediate problem i am facing is that it takes a VERY long time to add
5000 columns. i created an array of DataGridViewTextBoxColumn[] and called
DataGridView C... more >>
char or varchar?
Posted by Jay at 9/17/2007 6:56:14 PM
My understanding is that char stores a fixed number of characters even if
the string stored in the char has fewer characters, whereas varchar stores
the string with the number of characters that the string contains.
So, varchar sounds more efficient, but are there any disadvanages of using
... more >>
Weird problem with Outlook, WebBrowser control and Windows Server 2003
Posted by Nordiek, Christof at 9/17/2007 6:01:54 PM
I have an applaction, that is an addin for Outlook. It opens a form with a
WebBrowser control wich then shows a page from a Webserver. It works fine,
but when I installed it on Windows Server 2003 the page didn't get shown in
the WebBrowser control.
I have another application wich uses the ... more >>
app.config
Posted by Phil Hunt at 9/17/2007 5:16:50 PM
What is difference between app.config and myApp.exe.config.
Do I use the same class (ConfigurationManager.OpenExeConfiguration) to
access them ?
When I use that class, I end up accessing the myApp.exe.config. For my
purpose, I only need a simple variable to keep a running count of something ... more >>
GridView problem with DetectImagePath in the c# call...
Posted by trint at 9/17/2007 5:13:20 PM
Here is my gridview that really gives a headache...It works very well
with all of the selections in the call back to the c# code I have
pasted at the bottom. But it ALWAYS gives this error: "An exception
of type 'System.InvalidCastException' occurred in App_Web_dcieiiqw.dll
but was not handled ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Convert forms app to a service...
Posted by JamesB at 9/17/2007 5:07:44 PM
Can anyone give me some "high level" pointers on converting an app to a
service?
Most of my "logic" is in a seperate class already which will help, but how
do I go about actually getting the two bits to talk?
Assuming I can take all the guts out and build a service, what's the usual
meth... more >>
How to show individual pixels? (Was: Show Me The Pixel)
Posted by Martijn Mulder at 9/17/2007 5:01:29 PM
When I zoom in on an image, GDI+ automatically smoothens the edges
between the pixels. I am looking for a way to see the individual pixels
as squares in the enlarged image, like in MSPaint. I searched in vain in
the enumerations System.Drawing.Drawing2D.SmoothingMode and
System.Drawing.Drawi... more >>
How to obtain server info?
Posted by Mark F. at 9/17/2007 4:58:55 PM
How can I get the user's ISP SMTP sever name or IP address? This would be
for a user feedback form in Windows Form applications. Checking the
registry, or using CDO is not a good option with every machine.
Thanks,
Mark
... more >>
Accessing a Mediaplayer on a Webpage on a Form
Posted by Thomas Zapf-Schramm at 9/17/2007 3:48:58 PM
Hello,
I'm trying to write an local (client-side) windows-application that analyzes
the content of multimedia webpages. This programm has a main form
(Windows.Forms), in which I have embedded a webBrowser control. At runtime
the webbrowsercontrol loads the webpage of interest. Then I can an... more >>
C# parsing html DOM example ?
Posted by bitshift at 9/17/2007 3:48:44 PM
I need some examples of parsing an html DOM with C#, anyone got a few ?
... more >>
When does a sound file finish playing?
Posted by gazza67 at 9/17/2007 3:47:39 PM
Hi,
Does anyone know how to check for when a sound has finished playing?
I am currently using the SoundPlayer, there doesnt seem to be any
event for this - am I missing something?
Gary
... more >>
C# needing to consume perl/SOAP::Lite service
Posted by at 9/17/2007 3:47:34 PM
I have a SOAP::Lite package written in perl on a *nix environment that
I need to consume from a C#. The classes in perl are pretty simple,
each taking a string and returning a string (ranging from 1 bytes, to
20mb). The problem is I don't have a WSDL interface, that I would
normally use with t... more >>
When does a sound fininsh playing
Posted by gazza67 at 9/17/2007 3:43:06 PM
Hi,
Does anyone know how to check for when a sound has finished playing?
I am currently using the SoundPlayer, there doesnt seem to be any
event for this - am I missing something?
Gary
... more >>
Dynamic Enum
Posted by John Wright at 9/17/2007 3:33:52 PM
I have an enum based on a lookup table in my database. However, when a new
item is added to the lookup table or one is removed, I have to modify the
enum to match. Is there a way to dynamically load the enum when the class
is instantiated? I was thinking a stored procedure to load it but can... more >>
storing source code on server!
Posted by Jeff at 9/17/2007 2:56:21 PM
Hey
VS2005 / .NET 2.0
I've been developing an .net 2.0 application. I've used to save this project
to my local C drive on my computer. But I think it is not a good idea to
store source code on the local machine, hdd can crash and then source code
is like history...
So I'm thinking abo... more >>
Thread don't start
Posted by Ray at 9/17/2007 2:02:04 PM
Hello. I have a c# service with four threads. Sometimes one of them just
don't start, I don't know why. It happened with any of the four threads, and
just in production environment, not in development environment.
Any idea? Best regards,
Ray
... more >>
3000 Java , .NET , C# , SQL, testing , networking interview questions
Posted by Jobs at 9/17/2007 1:38:45 PM
3000 Java , .NET , C# , SQL, testing , networking interview questions
http://www.questpond.com
... more >>
Show Me The Pixel
Posted by Martijn Mulder at 9/17/2007 1:25:39 PM
When I zoom in on an image, GDI+ automatically smoothens the edges
between the pixels. I am looking for a way to see the individual pixels
as squares in the enlarged image, like in MSPaint. I searched in vain in
the enumerations System.Drawing.Drawing2D.SmoothingMode and
System.Drawing.Drawi... more >>
Regular Expression Help
Posted by JP at 9/17/2007 12:50:06 PM
I am creating a screen scraping app that will extract data from a website.
The screen scraping is pretty straightforward using .NET 2.0, but stripping
out all extraneous characters is proving to be more difficult. I am
basically trying to extract the team, quarter, score for the quarter, an... more >>
RichTextBox and keyword tooltipping...
Posted by Chris Shepherd at 9/17/2007 12:16:24 PM
Hello group,
I'm in the conceptual phase of this, and I'm wondering what the best way
to accomplish this is. I want to do the following using a RichTextBox:
- Highlight all occurrences of any search terms with a specific colour
and italics. I already am aware of how to do this.
- When the... more >>
Dataset problem with column named "System"
Posted by Chris Botha at 9/17/2007 12:03:26 PM
The customer has a database with a column in a table named "System". I've
been using this method for years now - create a dataset (an .xsd file) for
the table. With a column named "System" in the dataset, it gives a
substantial number of compile errors.
To simplify the problem, add a Datase... more >>
sychronizing asychronous calls to DllImport function
Posted by William Johnston at 9/17/2007 11:30:21 AM
Hello,
I need to perform synchronous calls to a DllImport function that is asychronous. (The Dllmport function returns immediately.)
So far I have a timer that waits inside a ThreadPool queue. But I would rather not use anything close to time-sharing.
Here is my code:
[
... more >>
Read Write Word Hyperlinks
Posted by SurferJoe at 9/17/2007 9:15:40 AM
The original posting "RE: Read Write Hyperlinks
Microsoft.Office.Interop.Word" has been languishing from lack of attention!
Please see my detailed posting of 8/14/2007 9:53am under the original
subject, I need further assistance, this problem is not solved.
Thanx in advance,
... more >>
Posted in VB without a response, trying here.
Posted by John Wright at 9/17/2007 8:55:48 AM
I have a class that I populate properties from a table in my database. I
create the properties in my class one for one with the columns in the tables
that I use to fill the class. Some properties are not loaded until a
function is called to load the properties when needed. In this class I have... more >>
Questions About Delegates
Posted by Frankie at 9/17/2007 8:47:35 AM
The following questions are with respect to this delegate declaration:
delegate void MyDelegate(string s);
Question 1:
Why does the following NOT work? Why can't I just create a new instance of
MyDelegate that references zero methods?
MyDelegate d;
d = new MyDelegate();
Quest... more >>
Regex
Posted by Chuck Norris at 9/17/2007 8:23:13 AM
Hi,
I don't know very much about regular expression and
I'm wondering how to extract the numeric value 0.693 from the
following text.
" 1 EUR =<b> 0.693 GBP </b>"
Thanks.
... more >>
HttpWebRequest to save images
Posted by Logician at 9/17/2007 7:40:02 AM
I am running on my PC Windows Forms to collect data from websites,
including images.
I hit a problem with images and javascript, and I would appreciate any
help.
The current code fails with a copy error. My Internet connected PC is
not the development machine, so I cannot debug on that PC a... more >>
get list of subscribers to Event
Posted by sippyuconn at 9/17/2007 7:30:02 AM
Hi
Is there a way to get a list of Subscribers to an Event ???
Thanks
... more >>
DateTime syntax help
Posted by rodchar at 9/17/2007 7:24:03 AM
hey all,
i'm just trying to test datetime functions:
DateTime dt1 = "9/15/2007";
DateTime dt2 = "9/17/2007";
DateTime dtResult;
dtResult = dt2 - dt1;
The above is what i'm trying to say but, of course my syntax is way off. can
someone please help me with this syntax?
thanks,
rodcha... more >>
Is a transaction opened?
Posted by Mihaly at 9/17/2007 6:36:03 AM
How can I known if an SqlConnection has or not a transaction opened? I want
some code like this:
private SqlConnection conn;
private void Methode1()
{
SqlConnection conn = new SqlConnection(connectionText);
conn.Open();
SqlCommand cmd = new SqlCommand(commandText, conn);
cmd.Transaction... more >>
ASP and hidden textBox
Posted by Gidi at 9/17/2007 6:24:02 AM
Hi,
I've a webPage, which has a checkbox.
i want that when the checkbox is checked, a textbox will be created and
showen under the checkbox.
How can i do it?
Thanks,
Gidi.... more >>
doubt on abstration concept
Posted by rajendra at 9/17/2007 6:03:10 AM
hi friends,
i have placed code because i want to explain my doubt clearly to
you ,and i have placed my doubt in Main of the program (static void
Main(string[] args)) by // before that
using System;
namespace AbstractClasses
{
abstract class Shape
{
public abstract double Get... more >>
Why second constructor is called??
Posted by anoj at 9/17/2007 5:14:23 AM
Why the constructor with String parameter gets called whenever value
of null is passed (see below)??
===============
using System;
using System.Collections.Generic;
namespace simple
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!... more >>
trouble with xml writer
Posted by Aahz at 9/17/2007 4:26:58 AM
asp.net 1.1 and C#
Here is code:
xmlfile = new XmlDocument();
xmlfilename = Server.MapPath("doc.xml");
writer = new XmlTextWriter(xmlfilename, System.Text.Encoding.UTF8);
writer.Formatting = System.Xml.Formatting.Indented;
writer.Writ... more >>
Display multi line text as one item in a listbox
Posted by ashwath at 9/17/2007 3:50:27 AM
Hi,
I am relatively new to Windows forms, i am using a listbox to show
items in Compact Framework 2.0. I want to display something of this
sort
Name: John Email:j...@gmail.com
Phone:9817239821 Sex:Male
This whole text should ... more >>
I need to find the length of the items in a array
Posted by jed NO[at]SPAM auto-soft.co.za at 9/17/2007 2:33:12 AM
I want to insert a value in an array using a textbox.And i need to
find the index of the last item in the array.
Please help i am a newbie.thanks
... more >>
Event on Dynamic Control - ASP
Posted by Gidi at 9/17/2007 2:18:00 AM
Hello,
I've created a dynamic button and checkbox and i want to create an event for
each one of them.
altough i've created the event and assigned them to each control, nothing
happens,
the event is not occurring.
What am i doing wrong?
this is my code for the checkBox:
CheckBox cb = n... more >>
Current C# Students, what book are you using?
Posted by Tony at 9/17/2007 1:58:16 AM
I know there are a bunch of existing posts on the topic of book
reccomendations, but I wondered, those of you currently taking a
college C# course, what book is the textbook you were required to get?
Tony!
... more >>
A challenge: regex to convert all urls within HTML
Posted by Vlad at 9/17/2007 1:25:13 AM
Hi!
My task: Take HTML -> convert into plain text.
Sub-task:
1. Find all urls within HTML (<a href="http://www.abc.com">More
about baby bears</a>).
2. And convert them into plain text: More about baby brears (http://
www.abc.com)
The question:
Can it be done with a single regex... more >>
Move menu items causing user to go bananas
Posted by Alistair George at 9/17/2007 12:00:00 AM
Every time I want to move a menu item (from one menu dropdown to to same
menu adjacent dropdown) by Cut in Microsoft Visual Studio 2005 it
immediately crashes on cut with error dialog 'an error occurred while
processing this command Object reference not set to an instance of an
object'
I re... more >>
Dealing with ProgressBar
Posted by at 9/17/2007 12:00:00 AM
Hi All,
I have a .NET CF application using C# language. On a form, I have
created a panel, on which I have placed a label and a progress bar
control. However, when I change the value of the progress bar, the
progree bar moves ahead. In the same method, when I change the text
property of the l... more >>
Microsoft Helicopter Joke
Posted by Michael C at 9/17/2007 12:00:00 AM
It must have been at least 10 years ago I read this joke and it still
applies more than ever. I'm reading the help for the DeflateStream class and
one of the parameters for the constructor is leaveOpen. All the help file
states is "true to leave the stream open; otherwise, false". Great. For a... more >>
|