all groups > c# > july 2007 > threads for wednesday july 18
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
createing a powerpoint slide from a web page
Posted by bsg92150 at 7/18/2007 11:37:31 PM
i have a task that requires me to provide a web use with the ability to send
teh current page to a power point slide.
and to further complicate matters. the user may want to put the whole site
into a slide. the problem is that the information is database driven and the
user may not have viste... more >>
catch notifyicon kill attempt so dispose can run
Posted by deciacco at 7/18/2007 11:06:18 PM
I have a NotifyIcon application. (c# 2) I want to be able to catch a
kill/shutdown attempt so that I can call Dispose() to remove the icon. I
tried to create an event handler for ApplicationExit and put my icon
dispose call in there, but when process.kill() is called from an outside
app on t... more >>
Multiple IPs
Posted by Fred at 7/18/2007 10:17:38 PM
Our server has 8 IPs with 121.232.21.1 as default (example).
I wrote a windows service that downloads podcasts (mp3s) off the net.
However every time this service runs it clogs down the entire server, even
though its not that bandwidth intensive. (30kps on a 100Mbps line)
Process resource at 20... more >>
PERMISSION_SET = UNSAFE why?
Posted by Greg Larsen at 7/18/2007 9:06:01 PM
I'm trying to write a Stored Procedure CLR for SQL Server 2005 to get some
disk information. I have this code working although the assemble has to be
create with "PERMISSION_SET = UNSAFE". Why do I have to create the assembly
with UNSAFE permissions. What can I do to make the PERMISSION_SET... more >>
[C# COM development] output by Regasm
Posted by George at 7/18/2007 8:38:03 PM
Hello everyone,
I am debugging and learning MSDN C# COM server sample.
http://msdn2.microsoft.com/en-us/library/aa645738(vs.71).aspx
I am using Regasm to generate Windows Registry scripts, here it is,
I can understand that for C# COM Server, since it is managed code, it will
use msco... more >>
TypeConverter for a PropertyGrid
Posted by moni at 7/18/2007 8:33:17 PM
PropertyDescriptor Class has a Converter method, which if overriden,
would return a TypeConverter.
I was working on dynamic values for a propertygrid, so for each
property all the methods of the PropertyDescriptor class were
overridden. But for a dropdown list I needed the COnverter method
al... more >>
Generics and delegates
Posted by Bruce Wood at 7/18/2007 7:27:39 PM
I'm trying to "genericize" the following class. At the moment I have
derived classes for each different type of event handler / event
arguments, and I wanted to have a single, generic, catch-all class for
wrapping an event subscription in a "weak" event handler.
Unfortunately, I've been bitten... more >>
<Newbie> DataGridView control
Posted by Ray at 7/18/2007 7:09:50 PM
Hi,
I attempted to post this previously but am not sure what happened so
here goes again.
I am new to C# programming and am looking at developing GUI's, as a
mini project i want to be able to list say a bunch of filenames along
with filesize in a table. I am wondering if the DataGridView c... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Change namespace?
Posted by Bradley Plett at 7/18/2007 5:25:22 PM
Is it possible to change the namespace of an object? If so, how?
If you want more context to this question, you can take a look at the
thread I started entitled "Shared class and namespace issues in web
service". Basically I'm trying to change the namespace of an object
returned to me by a w... more >>
Warning 1 Found conflicts between different versions of the same dependent assembly.
Posted by colin at 7/18/2007 5:17:58 PM
Hi,
I started to get this warning, I have two executables wich share the same
file,
so I have included one .exe as a reference to the other.
but I dont know how I have two versions of the same thing,
or even what things exactly they are refering to.
it gives me an option of adding a 'fix'... more >>
IE Control in Winform (FW1.1)
Posted by at 7/18/2007 4:00:35 PM
Hi everyone,
I am trying to develop a Winforms app using .NET FW 1.1 (don't want to
use 2.0 for this particular project) and am trying to use the IE
control.
It compiles and builds without any problems. However everytime I run
it in DEBUG and it comes to this line:
this.WebBrowser.... more >>
Supprise Com Exception
Posted by at 7/18/2007 3:56:11 PM
Hi
I'm using macromedia flash.ocx version 8.0 I'm developing windows
application with c#
Sometimes
"Attempted to read or write protected memory. This is often an indication
that other memory has been corrupted"
exception occurs in my application.
I think com component cause this
I don't wa... more >>
SortedList<T> missing GetByIndex method?
Posted by Bruce Wood at 7/18/2007 3:42:03 PM
SortedList<T> generic has most of the methods of the old SortedList
class, but it's missing a few, and one in particular that puzzles me.
Anyone know why it has no GetByIndex method?
It has IndexOfKey(), and IndexOfValue(), so you can ask it for indices
into the list. You just can't do anyth... more >>
How to implement IDeskBand2 interface in C#
Posted by Christian Lund at 7/18/2007 3:00:30 PM
Hi,
I am struggling to implement the following shell interface in C# :
====================================================
(extract from ShObjIdl.idl in Windows SDK)
//-------------------------------------------------------------------------
//
// IDeskBand2 interface
//
//
// [Member ... more >>
Singleton pattern with webservices
Posted by koredump at 7/18/2007 2:28:55 PM
I have inherited a Business Object architecture that makes heavy use
of the Singleton design patter. For example the data access layer
class is implemented as a static Singleton "object", there are also
other business objects logic and security supporting classes that are
all implemented using ... more >>
Text Files and arrays
Posted by MikeJ at 7/18/2007 2:20:11 PM
Hi all....
I need to work with large text files....i know there is a lot of ways under
net to work with them....
i want speed, High Percentage of correctness
so i was thinking ...but not sure the best way to handle text files for
parsing into reports, or into SqlDatabase
or Where Ever else... more >>
Error Creating Windows Service: "System error 1083 has occurred."
Posted by ross613 at 7/18/2007 1:16:02 PM
I'm puzzled by an error message encountered while creating a Windows Service.
In particular, I'm creating a second Windows Service within a Windows
Service project, using Visual Studio 2005. The first service works fine.
The second service appears to be registered correctly; yet I get the "... more >>
Extract text with C# and RegExp
Posted by Alberto Sartori at 7/18/2007 1:10:22 PM
Hello,
I have a html text with custom tags which looks like html comment,
such:
"text text text <p>text</p> text test test
text text text <p>text</p> text test test
<!-- @MyTag@ -->extract this<!-- /@MyTag@ -->
text text text <p>text</p> text test test
<!-- @MyTag@ -->and this<!-- /@MyTag@ ... more >>
Event or Callback function?
Posted by MikeZ at 7/18/2007 12:10:01 PM
I have a thread that parser video-frame from network streaming. It can get up
to 1000 frame/second. I want another thread to process video-frame. I can use
RaiseEvent or Callback Function. My question is:
1) Which way is more efficiency? Event or Callback function.
2) Does <Event> run on Main ... more >>
Uploaded Filetype Discrepency
Posted by King at 7/18/2007 12:03:19 PM
Hello,
I want to check to see if the file I am uploading is of type CSV. I
can upload and access the contents of the file just fine. Here is a
code snippet doing the checking:
HttpPostedFile file = UploadBox.PostedFile;
if (file.ContentType.Equals("application/vnd.excel"))
{
do stuff;
... more >>
How to update 10 lables then redraw?
Posted by John at 7/18/2007 11:54:28 AM
Hi there
I've got a form that when the cursor hovers over an image I update 10
labels to show different numbers. At the moment the form is redrawing each
time I update one label, this means it redraws 10 times giving the update
a staggered look. What I would like to do is update all th... more >>
asp.net using c#
Posted by Jesus Perez at 7/18/2007 11:52:47 AM
how I can get the value from a selected row in put it in a textbox field
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com... more >>
Shared class and namespace issues in web service?
Posted by Bradley Plett at 7/18/2007 11:48:13 AM
I have run into this problem occasionally, and have crude ways of
getting around it, but I'm wondering if anyone else has a better, more
elegant solution.
I have a web service and a client application that share a class. For
one of my web service methods, for example, I return an object of th... more >>
BCD-Decimal
Posted by Stephen at 7/18/2007 10:53:42 AM
I am trying to figure out how to convert a BCD number to its decimal
equivilant.
... more >>
Why doesn't this work?
Posted by Looch at 7/18/2007 10:28:22 AM
Hi all,
I get a 'input string was not in a correct format' error on the second
line of code here. The sproc defines the '@quan5x7' as int.
sqlCmd.Parameters.Add("@quan5x7", SqlDbType.Int);
sqlCmd.Parameters[21].Value = Convert.ToInt32(cmbQuan5x7.Text);
The SqlDbType.Int is equal to System... more >>
Hex to Binary Conversion
Posted by Stephen at 7/18/2007 10:24:34 AM
Hello all.
I have some LONG hex strings (between 20 and 40 bytes) that I would like to
convert to binary. I have found a few options but they only allow for short
hex strings, the ones I have are pretty long. Thanks for any help/tips.
... more >>
Using datagridview
Posted by Ray at 7/18/2007 9:25:50 AM
Hi,
I've just started getting into C# programming and am wanting to
develop a small gui that displays a table of files along with their
sizes . I am wondering if using the datagridview control is the way
to go or if it is overkill for what I want? (is there something else
I should be lookin... more >>
Removing previous version property problem
Posted by Manikandan at 7/18/2007 9:24:51 AM
Hi,
I'm creating a setup project for my c# application(Contains solution,
c# project, setup project).
In setup project properties, i set removepreviousversion
property=true.
Created the installer and tested, installed successfully.
If i install again means it's asking a dialogue with an option... more >>
PHP versus ASP.net
Posted by news.microsoft.com at 7/18/2007 9:12:42 AM
PHP versus Microsoft ASP.net - A Straightforward Comparison
"I do ask that you read this article with an open mind, and consider =
that it is quite possible that PHP is no better or worse than ASP.net. I =
have become weary of the whole PHP is superior to ASP.net debate. I =
believe afte... more >>
Failure on Windows 2000 when trying to run a .NET user control in
Posted by Gunnar at 7/18/2007 9:00:01 AM
Hi everybody!
I am experiencing a problem when trying to run a C# .NET user control in
MSIE on Windows 2000.
On Windows XP SP2, the same code runs without problems.
The .NET security settings have been set to full trust, the IE security to
low, but still the component does not run.
Does ... more >>
Property Overriding
Posted by Jimmy V at 7/18/2007 8:54:29 AM
Sorry about the last partial post, I will try to delete is (stupid tab
key)...So what I wanted to do was override a property and hide it's
set, in C# I can do this:
Public new String Text
{
get { return base.Text; }
private set { base.Text = "What I want."; }
}
what is the VB e... more >>
Property Overrides
Posted by Jimmy V at 7/18/2007 8:51:29 AM
I want to override a property in VB, I know in C# I can do this:
Public new String Text
{
... more >>
Calling non-static methods from within static methods.
Posted by koredump at 7/18/2007 8:31:53 AM
Is the following legal/recommended? (It compiles w/o error or
warnings)
class MyClass()
{
public MyClass()
{
}
private string NonStaticMethod()
{
retrun "Something";
}
private static string StaticMethod()
{
MyClass mc = new MyClass();
... more >>
System.ComponentModel.Win32Exception: Access is denied
Posted by tushar at 7/18/2007 7:23:08 AM
Hello
I have windows 2003 server and asp.net 1.1, application.
It has used Enterprise library.
I got the following error,.
[Win32Exception (0x80004005): Access is denied]
[InvalidOperationException: Cannot open log for source {0}. You may
not have write access.]
System.Diagnost... more >>
How to populate combobox nested within dataGridView
Posted by Jesper, Denmark at 7/18/2007 6:56:01 AM
Hi,
I've a column in a dataGridView set as combobox. I can't find any example
showing how to populate the list in the combobox. Does anyone have an example
showing me this.
Regards Jesper.
... more >>
Blow away ASP.Net temp directory upon build
Posted by hardieca NO[at]SPAM hotmail.com at 7/18/2007 5:49:24 AM
Hi,
I have decorated a number of my classes with a custom attribute. I
would like to loop through every type in my application, sniff for the
attribute, and eventually publish the entire list of attribute values
to a webpage. Everything is working, except I'm getting references to
old DLLs th... more >>
can't using System.Management;
Posted by Boki at 7/18/2007 2:57:33 AM
Hi All,
When I add:
using System.Management;
it can't pass complier, anything wrong?
Is it because C# express limitation ?
Thanks!
Best regards,
Boki.
... more >>
How to dail up via modem
Posted by Stanley at 7/18/2007 1:42:02 AM
Hi all,
I'd like to write a code to connect to a FAX machine but I am a rookie of
C#. Is there anybody able to tell me how to make it?
Many thanks,
Stanley... more >>
Rogue CR/LF in Myfile.Designer.cs code
Posted by teddysnips NO[at]SPAM hotmail.com at 7/18/2007 1:07:43 AM
I'm collaborating on a project with a colleague, sharing files through
SourceSafe.
So, I run GetLatestVersion and suddenly I have 264 build errors - all
"Unexpected character"
The file in question is Myfile.Designer.cs and contains a number of
rows looking like this:
/// <summary> =E0=A8... more >>
debugging dataset
Posted by Jeff at 7/18/2007 12:00:00 AM
..NET 2.0
I'm having trouble with a DataTable in my dataset. this code don't return
any rows:
data.database.datatable1.Select("username = '" + sName + "''");
The output should have been 4 rows, but I get 0 rows
I think this may be caused by a bad select (I'm a newbie to using dataset, ... more >>
COM Component
Posted by Jakir Hossain - BANGLADESH at 7/18/2007 12:00:00 AM
How can I crate a COM component and use that?
... more >>
Compilation of C code in Visual Studio .NET
Posted by andanb NO[at]SPAM gmail.com at 7/18/2007 12:00:00 AM
Hi all,
Can anyone please tell me whether it is possible to compile C code
into a DLL using Visual Studio .NET?
Thanks,
An
... more >>
|