all groups > c# > july 2006 > threads for wednesday july 12
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
Can't inherit from System.Drawing.Image
Posted by J at 7/12/2006 11:58:38 PM
I tried to inherit 'Shot' class from 'Image' class, only to fail.
It gives me the CS0122 error, which says that it can't access
'System.Drawing.Image.Image()'.
What am I missing?
using System;
namespace Vol
{
public class Shot : System.Drawing.Image
{
public Shot() // CS0122... more >>
How to covert string to a new string
Posted by Calros Lo at 7/12/2006 10:59:06 PM
Dear all:
I develop a programe that need when I get a string , such as "123" or
"ABC",if I get string "123" and the system will help me to create new
string "124" , if I get string "ABC" and the system will help me to create
new string "ABD" , could somebody can help me how to programe it , ... more >>
Formatting int
Posted by Chris Saunders at 7/12/2006 8:57:26 PM
I wish to format some integers to fit into a certain width with all digits
pushed to the right. I believe that there is a class that does this but I
cannot find it. I searched in Object Browser just using "format" as the
search string but the result is so long I must be missing what I'm look... more >>
Regarding splitting Large xml files to smaller xm files
Posted by nikila at 7/12/2006 8:05:42 PM
Hi,
I am trying to split large xml files to smaller xml files using c#.net. can
you please provide any sample code for this? I have to split the file if the
size is more than 10 MB.
Also, xml files after splitting should be valid xml. i am new to Csharp?
Thanks for your help
Nikila... more >>
Return a Bitmap as IPicture
Posted by Yoavo at 7/12/2006 7:12:13 PM
Hi,
I am writing a COM class in c# which needs to implement an interface which
one of its methods declared in the following way:
public stdole.IPicture GetBitmap()
{
}
I have a bitmap (MyBitmap.bmp) in my c# application and I want to load it,
and return it as a return value of the method ... more >>
Debug and Release build differences ?
Posted by TheSteph at 7/12/2006 6:40:37 PM
Hi,
Does anybody know what's the difference between the "Debug build" of a C#
application and the "Release build" ?
In my case, both are 774.144 bytes, and both seems to have the same
performances in terms of speed.
Thanks.
Steph.
... more >>
ErrorLog.WriteEntry : force exception
Posted by John A Grandy at 7/12/2006 6:05:43 PM
Can anyone think of a way to force ErrorLog.WriteEntry() to throw an
exception (assuming you don't specify another machine) ?
If you specify a non-existent source , it will automatically create a log
for it , so that won't work.
... more >>
Determine Path of Current Assembly
Posted by theinvisibleGhost at 7/12/2006 5:18:37 PM
I'm trying to work out if theres a way to get the file path of my
assembly.
That is not the Application path.
My assembly is a plugin to another project.
I need to know the location of my Assembly so that I can reference
files that distributed with it.
Any ideas appreciated.
Cheers
Chris... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
WritePrinter
Posted by MPF at 7/12/2006 4:48:01 PM
Thanks in advance for any assistance.
I've implemented the code found in the KB article below, but nothing is
actually printing. I see the document being sent to the printer, but nothing
gets printed.
I've tried printing to a network printer, as well as the local "Microsoft
Office Docume... more >>
No process is associated with this object error
Posted by vtxr1300 at 7/12/2006 3:51:54 PM
I have the following code and when it hits the WaitForIdleInput() line,
it gives me the exception "No process is associated with this object".
I've searched the groups and read a ton of posts about this error, but
no suggestions have fixed it. What can I try? Thanks.
ProcessStartInfo... more >>
Excluding file from project in VSS?
Posted by Brett Romero at 7/12/2006 3:44:29 PM
Is there a way to have a file delete from Visual Source Safe if I
exclude (not delete) it from a Visual Studio project? I'd like what
ever is in the project to be reflected in VSS.
I'm using Studio integration with VSS.
Thanks,
Brett
... more >>
Asynchronous Stored Procedure Never Returns - Help?
Posted by Siv at 7/12/2006 3:36:49 PM
Hi,
I have a stored procedure that I want to execute and then wait in a loop
showing a timer whilst it completes and then carry on once I get
notification that it has completed. The main reason for this being to stop
the user thinking the application has frozen when in fact it is just waiting... more >>
System.Diagnostics.Process / .BAT file / always returns exit code 0
Posted by eva.monsen NO[at]SPAM gmail.com at 7/12/2006 3:32:36 PM
I'm trying to run a .BAT file using System.Diagnostics.Process. I'm
having trouble getting Process.ExitCode to match up with what the .BAT
file returns.
Here are the contents of
C:\temp\ConsoleApplication1\ConsoleApplication1\test1.bat:
exit /B 6
Here is some C# code:
Proc... more >>
Behavior of Monitor.Wait and exception
Posted by Adam Clauss at 7/12/2006 3:07:30 PM
Documentation states that a call to Wait releases the lock, and will not
return until the lock is reacquired.
How do exceptions figure into this? Are they considered a form of "return"?
Example:
lock (someObj)
{
try
{
Monitor.Wait(someObj);
}
catch (Exceptio... more >>
(New) DataGridView Question
Posted by joey.powell NO[at]SPAM topscene.com at 7/12/2006 2:51:07 PM
If I click down on a control on a form and then drag and release on a
datagridview, how can I tell which cell the release occured over?
... more >>
getting network computer name
Posted by wheels619 NO[at]SPAM gmail.com at 7/12/2006 2:30:59 PM
Hi,
I know that System.Windows.Forms.SystemInformation.ComputerName
retrieves the current computer's name, but is it possible to fetch the
computer's name from a file path?
ie. G:\file.txt exists on the computer named Tool, how I can get the
name Tool?
Thanks.
Tommy
--
http://www.tree... more >>
obtaining a list of all RTB's in a tabPage in a tabControl in a Form
Posted by njuneardave at 7/12/2006 2:30:14 PM
is there a way to do this...even if it is one at a time?
... more >>
Strong name signing question!
Posted by DBC User at 7/12/2006 1:17:03 PM
Hi All,
Someone shed some light in to this strong name signing issue I have. My
assembly uses a 3rd party controls so I end up distributing their dlls
along with my assembly. I put this app in the network and to make app
run from network I need to sign with strong name.
But all the document... more >>
GetType and Interfaces
Posted by Grande at 7/12/2006 12:33:04 PM
Hi all,
I'm trying to use GetType to get an Interface, but it's not working?
Is there a special way you have to do this, since it's an Interface
(rather than a complete class)?
Code:
Type SpecDataType = SpecData.GetType();
string strTemp = "SCG.Persistence.Interfaces.Product.I" +
SpecData... more >>
How do I add an separator?
Posted by Scirious at 7/12/2006 12:24:17 PM
People, how do I add a line separator to may GUIs in Visual Studio?
TIA,
Scirious.... more >>
WndProc Message Forwarding
Posted by pigeonrandle NO[at]SPAM hotmail.com at 7/12/2006 11:49:54 AM
Hi,
Does anyone know if there is a way to foward messages that a form
receives to another application form.
I was thinking i could override WndProc, but i don't know how to
forward any messages to another application?!
Any ideas greatfully appreciated (in advance!).
James Randle.
... more >>
Trying to launch Trillian through C# program
Posted by jmsxp NO[at]SPAM wi.rr.com at 7/12/2006 10:23:37 AM
Hi all,
I am in my infancy with programming, so please forgive stupid
questions...
I am attempting to write a C# program that will launch Trillian (well,
that is just a part of the overall program). I can get the program to
start using
System.Diagnostics.Process.Start(@"C:\Program
Files\T... more >>
VS.Net 8 & Crystal Report question
Posted by BrianDH at 7/12/2006 10:00:03 AM
Hi
I am working on a C# Windows Application that builds an invoice (CR)
converts to PDF and attach to email one at a time.
This works untill my invoice count get over 40 to 50 invoices then I start
getting errors. The errors vairy. sometimes IO sometime "unable to load
report".
Has any... more >>
Default display values for a combobox in a DataGridView.
Posted by tongueless NO[at]SPAM gmail.com at 7/12/2006 9:59:46 AM
I have added a column of comboboxes to a DataGridView. I was wondering
how I display a default value in each one so that they don't appear
blank before something is selected. Also, I need each one to have a
separate default value, so applying a generic default to the whole
column wouldn't work. ... more >>
Retrieving a resource name/value.
Posted by mehdi_mousavi at 7/12/2006 8:55:30 AM
Hi folks,
Consider a string that's defined under VS2005 resource editor as
myField with the value of myValue. To access the value, I could easily
use the Properties.Resources class, for example:
global::myNameSpace.Properties.Resources.myField
However, I would like to retreive it's string ... more >>
ComboBox lock/suppress DropDown
Posted by ian_jacobsen NO[at]SPAM hotmail.com at 7/12/2006 8:25:36 AM
I have a control that is derived from the standard ComboBox. I want to
lock or suppress the DropDown when the arrow button is clicked without
disabling the control.
This is related to another post that I have out there for a custom
OnPaint event. I want to provide custom colors for ComboBo... more >>
PDF viewer
Posted by Peter at 7/12/2006 8:13:14 AM
Does anyone know of .NET PDF viewer either open source or for purchase that
includes source code?
(I need to display a PDF on the WinForm)
Every time I purchase a component there's always something that it does not
do or not the way I like it, that's why I want to have the source code.
T... more >>
HTTPModules uses
Posted by Me at 7/12/2006 7:54:46 AM
Hi
Does anyone have any good uses for httpModules?
Im mean what kind of things have people done with them? Are they good
at particular tasks?
What are they not good at?
Many thanks all!
... more >>
Crystal reports version problems
Posted by glbdev NO[at]SPAM yahoo.com at 7/12/2006 7:51:51 AM
Hello.
I am having the following error:
The base class includes the field 'CRV1', but its type
(CrystalDecisions.Web.CrystalReportViewer) is not compatible with the
type of control (CrystalDecisions.Web.CrystalReportViewer).
I recently installed Crystal Reports 11 (clean install, not an u... more >>
Win Forms C# TextBox
Posted by Raj at 7/12/2006 7:34:03 AM
How to avoid entering special character in a text box ?... more >>
return Inherited class instead of "original" class
Posted by Karsten Schramm at 7/12/2006 6:43:23 AM
Hi,
why doesn't this compile:
class Program
{
public static void Main()
{
ClassA classA = new ClassA();
classA.DoSomethingOnA().DoSomethingOnB();
}
}
class ClassA : InterfaceA
{
public ClassB DoSomething... more >>
Image Search / recognition
Posted by Jmc at 7/12/2006 6:30:03 AM
Hi
I would like to build an image search system, that can match both
colors and/or shapes.
The pictures will be quite simple picture with normaly 4-10 colors
(maybe 20 in extreme cases).
Large areas with the same color (no photographs) or extremely details.
Gor any poiters how to do this, wha... more >>
How to paint 4 panels on a form separately at the same time without flicker
Posted by Vahid Dadashzadeh at 7/12/2006 5:48:08 AM
hi,
i've got a big problem with painting 4 or more than 4 control such as
panel on a form.
i have 4 panel that their width and height is 3000px on form and also a
hscrollbal control that when i move the scroll bar the 4 panels move
with it.
but my problem is when i want to paint a grid on the ... more >>
Animated gif on a windows form
Posted by Svein Erik at 7/12/2006 4:05:02 AM
Is there a c# control for showing animated gif pictures on a windows form?
If not, what's the workaround to make this work? (I'm going to use it in a
picturebox)
Thanks in advance!... more >>
Select() is being called automatically
Posted by Steven Blair at 7/12/2006 3:48:18 AM
Hi,
I am using a SqlDataSource and a FormView.
The problem I have is I need to call SqlDataSource.Select() manually (I
need to grab the DataSet). However, the FormView appears to call
.Select() as well.
Can I stop this from happening so the Select() is only called when I
decide.
I don't... more >>
Help in Regex
Posted by JM at 7/12/2006 2:31:11 AM
I have a URL which can have multiple "http://" value in it like:
http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20060712/bs_nm/arms_halliburton_iraq_dc
I want to extract
"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/"
out of the above. i.e. ... more >>
[Realistic] specs for VS2005
Posted by Mantorok at 7/12/2006 12:00:00 AM
What are realistic PC specs for using Visual Studio 2005?
Thanks
Kev
... more >>
How create a desktop shortcut in c#?
Posted by thi at 7/12/2006 12:00:00 AM
Hi,
How do i create an application shortcut on desktop programmically in C#? I
have done some shortcut coding before in visual basic 6 using windows
scripting host but later found out that scripting codes get block by some
application such as Norton and McAfee.
Would anyone mind give me... more >>
Question on boxing
Posted by Mr Flibble at 7/12/2006 12:00:00 AM
Is boxing using object the same as the use of variant in VB?
Is it used to de-typify a variable, which must then later be cast back
to it's original type?... more >>
Showing dialog window then clicking server button
Posted by Mantorok at 7/12/2006 12:00:00 AM
Hi all
When I show one of my ASPX forms using window.showModalDialog(), and then
click a server button on that dialog, it opens up a new window.
Any ideas why? If so, how can I stop this from happening?
Thanks
Kev
... more >>
|