all groups > c# > july 2007
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
Printing Too Slow
Posted by duylam76 NO[at]SPAM hotmail.com at 7/31/2007 10:34:24 PM
I'm new to printing with C# and I find that printing and previewing is
a lot slower than I expected.
As a test I've just been printing 100 blank pages. When I try to
preview, the "Page 'X' of document" box shows up and it counts very
slowly (a little less than one page per second). As a compar... more >>
Modify form1 properties from form2 ( not access variable of form1 )
Posted by Boki at 7/31/2007 9:00:03 PM
Hi All,
I want to change WindowState of form1 from form2.
I tried these two methods, but no luck on both.
(1) Declare a public method:
/* function of form1 */
public void active_this_form()
{
this.WindowState = FormWindowState.Normal;
t... more >>
retrieve the application's path
Posted by Thanh-Nhan Le at 7/31/2007 6:35:44 PM
Hi,
Is there any function to retrieve the application's path, path of the exe
file (as the property app.path of VB6).
thanks
Nhan
... more >>
datagrid
Posted by MikeJ at 7/31/2007 5:19:16 PM
hi
I wrote a Class that has 1 inherited child class
this class loads row offsets into a 1 dim long array
i can traverse the text file via rows or if delimited columns or fixed with
columns i can define a structure (array of column names, type,size, len,
decimal
i would like to browse a fil... more >>
ASP.NET 2.0/C# Response to client is masterpage instead of file.
Posted by Michael D. Ober at 7/31/2007 4:14:19 PM
When I single step through the code below, it sends back the PDF file that
is retrieved in the line fm.GetAccountPDF(...). When I run without single
stepping, I get the master page for this page. I have actually saved the
file returned by IE 7 as a text file and opened it in notepad, so I ha... more >>
Xtreme Newbie: String Arrays
Posted by Rob at 7/31/2007 3:40:21 PM
I am an Xtreme newbie to C# and am trying to build an array of strings. I
get the following error and don't know what I'm doing wrong.
System.NullReferenceException: Object reference not set to an instance of an
object.
Here is a diliuted example.
string[] strArray;
string strV... more >>
What I don't like about C# so far, compared to C++ (managed or otherwise)
Posted by raylopez99 at 7/31/2007 3:36:53 PM
First in an occasional series.
I'm somewhat experienced in C++, and am using .NET Visual Studio 2005
as the IDE. I'm learning C#.
What I don't like about C#, compared to C++ (all flavors):
1/ no pointers or tracking pointers or handles--this is absurd. I
realise references are by and l... more >>
Invoking to a busy UI thread
Posted by gemartin NO[at]SPAM earthlink.net at 7/31/2007 3:33:05 PM
Here's my question:
I have Windows Forms app. Suppose the user clicks on the "Processing"
button on the UI. The UI thread then starts processing. During this
processing another thread calls invoke to update a control on the UI.
When the UI thread reaches the end of its time slice--even th... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Serializing an XmlArray with attributes
Posted by at 7/31/2007 3:15:16 PM
Hi
I'm currently having trouble serializing an object to Xml, in the format I
need.
Below is the object definition.
-------------------------------
[Serializable]
public class Folders
{
protected List<PathString> _include;
protected List<PathString> _exclude;
public Fold... more >>
How to serialize a C++ object through .Net Remoting
Posted by benkial NO[at]SPAM gmail.com at 7/31/2007 3:05:31 PM
Below is a custom exception class that I created to be shared by my C+
+ and
C# code. It works fine till I need to pass the exception object
through Remoting: every time a FtException is raized in the Remoting
server side, the client got the following error (see below). Based on
my Google searc... more >>
Sizing a "RichTextBox"
Posted by Robert at 7/31/2007 1:54:27 PM
Hi there,
I have a dialog with a "RichTextBox" that's anchored on all 4 sides of the
dialog. I now want to resize this control in my "OnLoad()" handler so that
it reflects the size of its text. Because of the anchoring, I can do this by
simply resizing the dialog itself. The (condensed) cod... more >>
how to extend OpenFileDialog ?
Posted by Sagaert Johan at 7/31/2007 1:48:19 PM
Hi
Can i extend the OpenFileDialog so i can show a thumbnail of a picture i am
opening ?
(priview it in a picturebox inside the fileopen dialog )
Johan
... more >>
generic lists and .NET Remoting
Posted by Jeff at 7/31/2007 1:38:20 PM
..NET 2.0
Is generic lists faster then tradional lists when sending over a collection
of objects (value by reference) in .NET remoting.
Lets say if a list of object should be sent from a server to the client.
Whould it be better to use generic lists?
Jeff
... more >>
How could I add row to bounded datagridview programmatically?
Posted by DataGridView add row dynamically at 7/31/2007 12:30:02 PM
Hi,
I am working on the windows application. I created a form Form1 to list
records. I used datagridview to show data and bound it to a dataadapter. User
can click Update button in Form1 to open a new dialog window Form2 to update
selected record and also add new records. When user closes t... more >>
Singleton Implementation Issue
Posted by Smithers at 7/31/2007 11:57:34 AM
Unless I'm misunderstanding the pattern and it's various implementations,
Singleton effectively makes the constructor unavailable to clients. The
constructor for any given class, however, is what we otherwise use [outside
of Singleton implementations] to *require* specific parameters be suppli... more >>
Looping Through Application Settings
Posted by RHPT at 7/31/2007 9:20:02 AM
I have a Windows Form application with several application settings set. How
is it possible for me to loop through those settings? Is it possible at all?
Thank you
... more >>
Add MenuItems Dynamically
Posted by MWS at 7/31/2007 9:03:47 AM
Hello,
I'm trying to loop through the app.Config file and add the keys from
the app.Config as MenuItems on a MenuStrip. The following line blows
up...
transToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] {
TransMenuItem[TransCount]});
The error that I'm getting is "Argumen... more >>
Way to manipulate Flash Video (FLV) files with .NET code?
Posted by noneya22 NO[at]SPAM excite.com at 7/31/2007 9:02:17 AM
I am building an asp.net 2.0 application and I need to be able to
convert existing FLV files on the server. Specifically, I need to be
able to take an FLV file and convert it to another, smaller/scaled
down FLV file. I'm trying to create a small, preview of the original
FLV file. Is there a .... more >>
Getting a snapshot from a WebBrowser
Posted by Joachim at 7/31/2007 8:46:03 AM
I badly need to get a snapshot from a WebBrowser control. How can I do that?... more >>
Can I call an event in code?
Posted by Dom at 7/31/2007 8:05:17 AM
In the days of VB, it was possible to do the following: "Call
Button1_Click()", although there was some argument about whether this
was asking for trouble.
Is it possible to do it in CSharp? The trouble that I see is that
every event handler needs arguments. But can you do something like
"... more >>
Share Information between Service and Service Manger
Posted by MikeZ at 7/31/2007 7:06:02 AM
I have a application that run as Windows Service. I also created another
Windows Form Application that manage the Service like MS SQL Server Service
Manager did. Service Manager need to know some variable value in Service,
include some massive data.
I am using the TCP Socket, is there a bet... more >>
Bitmap Save gives "A generic error occurred in GDI+"
Posted by Joachim at 7/31/2007 4:18:04 AM
I have a bitmap which I have retreived through the WebBrowser DrawToBitmap
method into a Bitmap. When I try to save the bitmap I get
"ExternalException occurred
A generic error occurred in GDI+"
Why can't I save the bitmap? I need to save it - how to do?... more >>
Casting base class to inherited one
Posted by jan.loucka NO[at]SPAM gmail.com at 7/31/2007 3:47:32 AM
Hi,
We're building a mapping application and inside we're using open
source dll called MapServer. This dll uses object model that has quite
a few classes. In our app we however need to little bit modify come of
the classes so they match our purpose better - mostly add a few
methods etc.
Exampl... more >>
Printer Status over Network
Posted by TARUN at 7/31/2007 3:00:22 AM
Hello all,
Please help and suggest the code to get the printer status over the
network.
for Example, i have an string "\\\\os1\\PtName"
where os1 is the system name
and PtName is the printer name
I need to know the status of this printer on the system name "os1".
Please suggest me the c... more >>
Bitmap Save method gives "Parameter is not valid"
Posted by Joachim at 7/31/2007 2:58:02 AM
I have an image which I'm trying to save using
my_image.Save(some_path, System.Drawing.Imaging.ImageFormat.Path);
and then I get the error "Parameter is not valid".
What could be the reason for this error? I know I can store it as a Png file.... more >>
Create folderstructure based on file.
Posted by iCodeSharp NO[at]SPAM gmail.com at 7/31/2007 1:50:32 AM
Hi,
I am struggling with the following issue, i need to copy files from
one place to another...well that isn't so hard..but i also need to
create the folder(s) in which the file orginaly was located. I have a
listbox from where the user can select the files he or she wants to
copy.
So it c... more >>
Want splitcontainer panels width runtime
Posted by Anjali at 7/31/2007 12:35:34 AM
I am creating splitcontainer at runtime.. want width of panels different.
How can i do that.
As i cant modify splitContainer2 .panel2.width = 100;
From http://www.developmentnow.com/g/36_0_0_0_0_0/dotnet-languages-csharp.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.co... more >>
System.Security.Cryptography.CryptographicException; bug in .NET 1.1 ?
Posted by andrew at 7/31/2007 12:00:00 AM
Hi,
I have a web service application written in C# .NET 1.1 using
MD5CryptoServiceProvider.ComputeHash(Byte[])
The problem is that after a while(web service processes requests) the call
throws CryptographicException "the parameter is incorrect"
Here's the stack trace:
System.Security.C... more >>
P/Invoke problem
Posted by usunto_bryjamus NO[at]SPAM interia.pl at 7/31/2007 12:00:00 AM
Hi,
Is it possible to set path to dll from which I import? The problem is
that if I know the path I can use it in DllImport attribute but I need
to parametrize this path (this parameter is read when application
starts). E.g.:
string dllPath = ...; // Read when app starts
....
[DllI... more >>
SIP software
Posted by Jassim Rahma at 7/31/2007 12:00:00 AM
I want to create a SIP software using C# (IP Telephony)? where should I
start from?
... more >>
Update/Resync ADO.NET Dataset?
Posted by Computer Guru at 7/30/2007 11:05:41 PM
I imported an Access database, created a dataset, added a
bindingsource; and have been happily coding away - couldn't be easier.
My problems started when I added a column to the database - I can't
find a way to tell Visual Studio to "resync" the imported dataset and
the external DB!
I tried... more >>
SQL Commands Not Working
Posted by Airkon at 7/30/2007 11:00:00 PM
As I am using a datagridview based on a view in my SQL database. The default
update() command isnt created and hence, I am currently using insert and
update commands thru the dataset wizard.
However, none of the insert or update SQL commands seem to work for me. No
errors are provided but y... more >>
OT: What's the deal with Crystal Reports?
Posted by Bob Johnson at 7/30/2007 10:45:23 PM
In this NG late last week someone asked about reporting in .NET. I suggested
going with ActiveReports and to avoid Crystal Reports. A bunch of you piled
on and not only concurred that Crystal sucks - but went beyond that.
So my new question:
Do any of you actually use *and* like Crystal Repo... more >>
What is the diffference between the thin client server application and SmartClient application ?
Posted by Karthik D V at 7/30/2007 10:00:10 PM
Hi Friends,
What is the diffference between the thin client server
application and SmartClient application ?
Though I have worked on smart client application, i'm not able to
distinguish them seperately. Could you please explain me in detail ?
... more >>
About XML Documentation comments for overriden functions
Posted by Shengtian Yang at 7/30/2007 9:26:57 PM
Hi,
I am writing the XML Documentation comments and useing the "Sandcastle Help
File Builder" to generate the document, but one problem is encountered.
There are several classes derived from the common abstract (template) class.
Though each class overides several abstract or virtual functi... more >>
use GetPrivateProfileString
Posted by Nhan at 7/30/2007 7:27:55 PM
Hi,
I am trying to use the function GetPrivateProfileString as following:
[DllImport("kernel32.dll")]
public static extern Int32 GetPrivateProfileString(string lpAppName, string
lpKeyName, string lpDefault, string lpReturnedString, short nSize, string
lpFileName);
.......
String sDatab... more >>
how to change drive volume name ?
Posted by Talal Itani at 7/30/2007 6:11:59 PM
Hello,
I need my application to change the name of a drive, I think this is called
volume label. I searched everywhere, but I was unable to find out how.
Please help.
T.I.
... more >>
Seeking advice for DataGridView with several Unbound Columns
Posted by Joseph Geretz at 7/30/2007 5:32:21 PM
Hi,
I'm looking for advice or samples regarding the implementation of what is
essentially a bound grid, most columns are bound, however there are a couple
of unbound columns which are basically calculated totals (read-only) of data
in the bound columns (which are read/write).
I've implem... more >>
The type or namespace name 'UpdateProduct' could not be found (are you missing a
Posted by CdnRebel via DotNetMonster.com at 7/30/2007 5:16:46 PM
The type or namespace name 'UpdateProduct' could not be found (are you
missing a using directive or an assembly reference?)
Hi,
I am new to ASP.NET, C# and Visual Studio 2005. I am just learning to
compile and Visual Studio 2005 converted the programs to a newer version
which is why I am ... more >>
VS Add-In question
Posted by Johnny Jörgensen at 7/30/2007 4:46:45 PM
In the VS 2005 add-in I'm currently developing, I want to be able to find
out when the entire Visual Studio IDE receives and loses focus (e.g. when
the user switches to another program and back to the IDE).
I would have expected such an event to be present in DTE.DTEEvents, but it
isn't, so... more >>
Getting C# code from a WSDL file
Posted by BillB at 7/30/2007 4:28:43 PM
Hi,
I've been given a WSDL file and need to convert it to C# so that I can use
the procedures it creates, can anyone tell me how to do this?
I'm looking at doing it using Visual Studio 2005 Command Prompt with
following line of code
wsdl /l:cs /protocol:SOAP mywsdl.wsdl
any help is appreci... more >>
encode a serial number
Posted by Boki at 7/30/2007 4:24:56 PM
Hi all,
I am coding the "encode" code.
ex:
ABC ==> fkljd937ffsX
I have some ideas, ex: basic shift, un-regularized shifting plus the
timer as variable.
Please let me know any other better ways or ideas :)
Thanks!
Best regards,
Boki.
... more >>
Can't bring my email body to shell.
Posted by Boki at 7/30/2007 4:19:38 PM
Hi, all:
I use the code below:
/////////
p.StartInfo.UseShellExecute = true;
p.StartInfo.FileName = "mailto:boki.store@gmail.com?
subject=testing";
p.Start();
/////
need your advice how to add body ...
I failed when I add "?body=testing", it will bec... more >>
Globalization
Posted by hardieca NO[at]SPAM hotmail.com at 7/30/2007 12:48:51 PM
Hi,
I'm working on a multilingual CMS. I have a number of controls and
labels that are generated based on the number of languages the CMS
supports (ie. for the section management portion of the app, we could
have dynamically generated control labels "English Section Name",
"French Section Nam... more >>
Controls Added To TabPages In Designer - How Do You Access?
Posted by Gary Brown at 7/30/2007 12:20:34 PM
Hi,
How do you access controls that were added to a TabPage
in Designer? MS's documentation doesn't use Designer.
The example in TabControl defines them in the main form then
copies a reference to the TabControl's Controls property.
Walking though Controls looking for the control you want is... more >>
sweet, i want domains
Posted by igotfreemail NO[at]SPAM parishiltonvideos-dot-ws.no-spam.invalid at 7/30/2007 12:06:08 PM
hey everyone
Want to know how to make loads of money from home?
http://www.DomainCashSecrets.com/?hop=yoga
http://www.DomainCashSecrets.com/?hop=yoga
It's pretty nifty....
Ths guy makes
thousands with the domain ebook
sell domainsSell
domains
haha... :) :) :)
sho... more >>
How to tell if an Assembly is dynamic?
Posted by Samuel R. Neff at 7/30/2007 12:03:59 PM
I'm looping through assemblies and checking CodeBase prior to
processing a given assembly. However, I occasionally get this error:
The invoked member is not supported in a dynamic module.
Which makes sense, but how can I check for this condition before
calling CodeBase (i.e., check for the ... more >>
Set control property as the result of a function taking a data-bound paramater?
Posted by Computer Guru at 7/30/2007 10:47:51 AM
Hi,
Pardon the unclear/verbose subject, I just can't think of another way
of phrasing it.
Basically, I can assign the (for instance) "Location" property of a
picture box to a data-bound item. Like, I can get the absoloute
location from an ADO.NET database, and assign it to the
PictureBox.L... more >>
save as dialog and shered directory rights
Posted by at 7/30/2007 9:30:36 AM
sorry for my bad english
when I fire up (from my c# code) a standard "file - save as "
dialog, and when chosen location is a shered local network
directory, where I do have rights to create and modify files,
but I do not have rights to delete one,
(and do save as with my filename)
... more >>
Set Manual Calculation in Excel
Posted by paulquinlan100 NO[at]SPAM hotmail.com at 7/30/2007 5:59:11 AM
Hi
Im using c# to extract some data from Access and then insert it into
an excel workbook. I want to set calculations in excel to manual on
opening the book and then set it to revert to automatic once the data
has been inserted into the sheet.
Using vba i would use the following:
with Ap... more >>
|