all groups > c# > march 2006 > threads for wednesday march 15
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
coding in c-sharp to convert a pdf file to html file
Posted by raj at 3/15/2006 11:56:52 PM
hi,
I want to C# code to perform conversion of a vpdf file to html file
... more >>
asp.net c# concept question
Posted by Howard at 3/15/2006 10:45:25 PM
I need to write a web page that outputs a table from database. ( i want to
write my own code, don't want to use the built-in control)
I came up with two ways of doing this (i use c# 2.0)
1.
pesudo code
sqlstringTable = "select category_name from table1"
execute(sqlstringTable)
while(read... more >>
C# Fundamentals Part 2 (class vs. struct)
Posted by Marcel Hug at 3/15/2006 10:11:52 PM
Hi Ng !
At first I would like to thank you about the very good answers on my C#
Fundamental question one.
Now I have a new question. It's about structs.
So I've read that the different between a class and a strct is that a
class is an reference type and a struct a value type.
For me that m... more >>
Create a minidump of managed application
Posted by Satya at 3/15/2006 6:01:29 PM
Hi,
I need to create a minidump or a fulldump in C# whenever my managed
application hangs or crashes. I know we can do this manually by using
Mdbg / ADplus etc.. But is it possible to do this programatically from
within the application itself.
thanks,
Satya.
... more >>
Deaking with ComboBoxes and databases
Posted by juventusaurabh at 3/15/2006 4:59:39 PM
Hi,
I have a couple of combo boxes and the data inthe combo boxes is
from the SQL database. I have created datasets to reflect that data in
one of the combo box.
But, what I want is that, when I select certain data from one combo
box, the data in other comboBox should automatically reflect ... more >>
Name for metatypes
Posted by ERE at 3/15/2006 4:55:24 PM
Hi,
I have a question about nomenclature.
When you declare a class, or any of the user-defined types, you are
declaring a TYPE, that can then be used throughout your program. E.g., the
following declares a new type called MyClass.
class MyClass
{
...
}
... more >>
vb.net to c# conversion help needed please
Posted by c#2006user at 3/15/2006 4:50:17 PM
Hi everyone, i have a vb.net program ive converted most of the code but
i know events dont translate well, the original vb.net code uses
withevents and .handles and i can't get the events in c# to work 100%
they seem to hook up ok but when the eventhandler is called from the
method its n... more >>
Bug in VS 2005 ReportViewer?
Posted by Erik at 3/15/2006 4:41:39 PM
I'm trying to get the VS 2005 ReportViewer (not crystal reports) to work in
a windows form application.
This is my small test project:
- Created a windows form application
- Added new item to the project: report (report1.rdlc)
- Dragged a textbox to the report design form. (Typed "test... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Adding values to a configuration block.
Posted by UJ at 3/15/2006 3:37:27 PM
How do you add a new value to a configuration file through the configuration
block through code? When I try and add a new value I get an exception.
TIA - Jeff.
... more >>
wrapper in .NET 1.1 to call a .NET 2
Posted by WT at 3/15/2006 3:35:19 PM
Hello,
I have a .NET 1.1 application that load and call a custom assembly.
Problem is that this is working only with .net 1.1 custom assemblies, and I
have no access to the code for this application.
Is it possible to create a wrapper assembly in.NET 1.1 that could load and
call another ass... more >>
exe/dll as scheduled task
Posted by helpful sql at 3/15/2006 3:28:42 PM
Hi all,
I want to write a .Net solution that I would like to run as a scheduled
task in windows. I am not going to need any user interface. What I don't
understand is what kind of project I need to create in Visual Studio for
this solution. Is it Console App, Windows App, Class Library or... more >>
Configuration Block - What to do if the file doesn't exist.
Posted by UJ at 3/15/2006 2:48:42 PM
What do you do if the configuration file for you configuration block doesn't
exist? There doesn't seem to be an easy way to create the file. I could just
create the file but that implies I know the name of the file which I can't
figure out how to do unless I read in my app config file and pars... more >>
Spring Framework Example...
Posted by Deep Silent Ocean at 3/15/2006 2:26:32 PM
Hi All
Can anyone lead me to .Net sample examples/application using spring
framework ?
Regards
Silent Ocean... more >>
Windows Service problem
Posted by alegon NO[at]SPAM gmail.com at 3/15/2006 2:04:11 PM
Hi... I=B4m making an instaler for the windows service I've recently
develop, my sevice needs a few config files to be located on the same
path of the executable file of the service, when I install the service
in a folder I put all the config files on this folder but the problem
is that when the... more >>
Polymorphism & Collections
Posted by Jerad Rose at 3/15/2006 2:01:18 PM
I'm relatively new to C# and polymorphism, so what I'm trying to accomplish
may not be possible, or there may be a totally different approach that I
should be taking.
I have a base class (MyBase) and a collection of MyBase objects
(MyBaseCollection). Now, I also have an extension to MyBase (M... more >>
Microsoft WebBrowser control
Posted by Bootstrap Bill at 3/15/2006 1:28:39 PM
I have a Windows Form that uses the Microsoft WebBrowser control. If I load
an HTML file into the control that contains Jscript code, can the Jscript
code call a C# function in my Windows Form?
... more >>
Rounding error casting from float to int
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 3/15/2006 1:16:10 PM
Hi all, I just discovered a rounding error that occurs in C#. I'm sure
this is an old issue, but it is new to me and resulted in a fair amount
of time trying to track down the issue.
Basically put the following code into your C# app:
float testFloat2 = (int) (4.2f * (float)100);
Console.Out.... more >>
unmoveable Form
Posted by cyberclone via DotNetMonster.com at 3/15/2006 1:12:34 PM
hi all,
how can i create unmoveable form with c#?
in vb6, its very simple
me.moveable = false
in CSharp . .. ?
i want a form with title bar.
but i dont want to allow user to move form location.
how can i ?
thanks,
cyberclone
--
Message posted via http://www.dotnetmonster.com... more >>
Reading keys from HKEY_CURRENT_USER from an impersonated Web Service
Posted by Simon Hart at 3/15/2006 12:29:55 PM
Hi,
I am using Impersonation and turned off anon access for my web service. I am
using the administator to authenticate the request using ICredentials. I am
simply trying to read a key in HKEY_CURRENT_USER from my Web Service method
call which I am unable to. When I try and open it it returns ... more >>
Book Recommendations...
Posted by Deep Silent Ocean at 3/15/2006 12:26:57 PM
Hi All...
I am in process of developing enterprise level application where I would
have chance to design the framework of the application. The application
which I am developing is highly UI oriented. Can anyone recommend me
boo/material which gives me idea about framework development exampl... more >>
How to get the Mime type
Posted by Frank Rizzo at 3/15/2006 12:26:09 PM
Is there a way to get the Mime type for a particular file extention?
Preferably via the .NET framework, but I'll settle for interop.
Thanks.... more >>
Send Bug Report from Windows Form
Posted by rob at 3/15/2006 12:12:03 PM
I have an win form app from which I want to be able to send bug
reports. My first approach was something like:
SmtpClient client = new SmtpClient( ????? );
MailAddress from = new MailAddress("from@from.com");
MailAddress to = new MailAddress("to@to.com")... more >>
Having trouble with background threads and exceptions
Posted by Flack at 3/15/2006 11:41:37 AM
Hey guys,
Here is the scenario:
I have the main form open and a background thread is running. The
background thread sometimes needs access to the main forms graphics object
and gets it by calling Graphics g = CreateGraphics().
Now, I close my main form while the background thread is r... more >>
VSTO 2005
Posted by Le at 3/15/2006 11:15:34 AM
Folks,
I'm trying to do some office automation using VSTO 2005. I've verified that
..Net Programmability Support is installed for every MS Office application
and Microsoft Forms 2.0 .Net Programmability Support is also installed under
Office Tools through Office Setup. I've then installed V... more >>
VS2003 - Get List of Class Members
Posted by pagates at 3/15/2006 11:11:28 AM
Hi All,
I was wondering if anybody was aware of a mechanism (perhaps an Add-In) that
will get all the members of a particular class (like the Object Browser), but
will make that information available (perhaps on the Clipboard).
Perhaps it's something easy that I'm just overlooking. Just l... more >>
Flimmern beim Zeichnen auf einer Form
Posted by adrian_w NO[at]SPAM bluemail.ch at 3/15/2006 10:43:14 AM
Hallo NG
Ich zechne einen Kreis auf eine Form, welcher seine Position alle 10ms
=E4ndert. Dies mache ich mit einem Timer. Nun f=E4hrt der Kreis jedoch
nicht sch=F6n, sondern es flackert die ganze Zeit, so dass man den Kreis
nur teilweise sieht.
Mein Code ist so aufgebaut, dass ich den Kreis... more >>
attaching a form to the edge of a separate application window?
Posted by wavedave at 3/15/2006 10:36:34 AM
Hello everyone -
I'm trying to build a .NET application (C#) in which my program acts as
an add-on to another existing application, providing some additional
functionality. The way I want the UI to behave is such that my
application's window will dock itself to the right-hand edge of the
othe... more >>
Events - thread safe?
Posted by Dan Tallent at 3/15/2006 9:51:23 AM
I am trying to learn how to create an application that uses worker threads
to prevent the UI from freezing up.
My question is: Is the following code considered "thread safe"?
If not, what am I doing wrong?
Thanks
Dan
--------------------------------------------------------
I have a form... more >>
Why does vs 2005 want to check out licenses.licx
Posted by Frank Rizzo at 3/15/2006 9:50:10 AM
It seems that everytime I open a form that has 3rd party controls on it,
vs 2005 wants to check out licenses.licx from the source repository.
Regards,
Robert... more >>
ASP.NET Threading Questions
Posted by JMax at 3/15/2006 9:40:27 AM
Hello!
I have a C# ASPX page that displays a large amount of information. The
software loops through 500 lines of code (and some of the 500 lines are
looped multiple times, in a loop). Naturally, it takes approximately 7
seconds for the Page_Load event to fire (where I have all of my c... more >>
what does this mean please?
Posted by garyusenet NO[at]SPAM myway.com at 3/15/2006 9:17:34 AM
TaggedString val =
(TaggedString)backgroundComboBox.SelectedItem;
Bitmap bmp = (Bitmap)val.Tag;
Now Taggedstring is a class, and I can gather that
TaggedString val = ....
is defining a variable of type reference to store an instance of
TaggedString.
Wha... more >>
Express Question
Posted by Peter Lux at 3/15/2006 8:52:29 AM
I just installed express and found out that it won't connect to any of our
production Sql Server 2000 data or Sql Server 2003 MSDE (my local
development db). Another one of our developers installed Sql Server 2005
express with the c# 2005 express and couldn't connect to his production box
(a... more >>
TabControl
Posted by Just close your eyes and see at 3/15/2006 8:34:27 AM
Hi all
i can set the region of the tab control, and also i can set the region of
the tabpage to any shape i want
but i am wondering how to set the region of the Tabs itself
if u can help, plz show me the way , or give me a suitable URL
thx... more >>
A problem with UserControls and MessageBoxes
Posted by Tim Osborne at 3/15/2006 8:10:32 AM
Hi
I am currently investigating a very annoying problem with one of our
applications.
We have a UserControl that runs in IE.
As the control fires up the constructor does some status checking and if the
database is in
one of several states we want to notify the user.
Unfortunately th... more >>
Delegates VERSUS Events
Posted by kalishandy at 3/15/2006 8:01:30 AM
I have the following code to tie up a custom delegate (ConsoleDelegate) with
two methods from a separate class called CallMyEvents:
static void Main()
{
CallMyEvents call = new CallMyEvents();
ConsoleDelegate del += new ConsoleDelegate(call.FirstMethod);
del += new ConsoleDelegate(call.Seco... more >>
Selecting item in data bound combo box
Posted by Evan at 3/15/2006 8:01:29 AM
I have a data bound combo box. The combo box displays several items (status
code descriptions). After the combo box is bound, I want to set the combo box
so that the "Draft" status is displayed by default. Since the data originally
comes from a database I don't know which position in the combo... more >>
XML & XSD Schema validation - "all"
Posted by Adam Clauss at 3/15/2006 7:57:50 AM
I'm running into a problem with schema validation. For some reason, if a
schema has an xs:all section to it, it does not validate correctly. It
seems to treat it as a sequence. My understanding is that switching to an
xs:all should not require that the child elements be in any particular
... more >>
Resolution Headaches - any advice welcome
Posted by garyusenet NO[at]SPAM myway.com at 3/15/2006 7:45:52 AM
I'm writing a basic application for use in an office environment. I
dont like the box standard (excuse the pun) windows forms shape, so am
using the transparency trick to hide part of a bmp set to the forms
background, to create the illusion of an irregular shaped form.
I use a 1024x768 screen... more >>
VS2005 TreeView Multi-Select
Posted by dev NO[at]SPAM fwcjua.com at 3/15/2006 7:43:52 AM
Can we select multiple nodes in a visual studio 2005/.NET 2.0 treeview
using CTRL/Shift or do we have to write all that code like in .NET 1.x?
Thanks in advance. Bill
... more >>
Entering asterisk in Label text
Posted by Evan at 3/15/2006 7:30:30 AM
I am trying to put an asterisk in the Label text property but the asterisk
doesn't show up in the correct place.
If I enter "* hello" in the text property (using the designer property
pages) the label is displayed as "hello *". If I enter "3 * hello" the label
is displayed as "hello * 3".
... more >>
ListView with Icons
Posted by Curious at 3/15/2006 7:00:53 AM
Hi,
I have a listview with the View property set as Details. I have set 4
columns, and now I am trying to set some Icons on the column headers.
Is this possible?
Thanks in Advance
... more >>
MultiSelect ComboBox?
Posted by WhiteWizard at 3/15/2006 6:54:27 AM
Alright everyone, I've managed to stump this group 2 or 3 times now. Don't
let me down on this one ;)
I have a combo box that lists a number of tests to be run. The user would
like the option of being able to select several of the items in the ComboBox
at one time, then have them added to... more >>
DataGrid
Posted by A.J at 3/15/2006 6:54:08 AM
I am trying to put the selected cell in the datagrid into a
textbox(using currentcellchanged event).
----------------------------
DataGridCell currentcell;
string currentcelldata;
currentcell = dgrTest.CurrentCell;
currentcelldata =
dgrTest(currentcell.RowNumber,currentcell.ColumnNumber);
//... more >>
C# and working with website
Posted by phil2phil at 3/15/2006 6:09:16 AM
hi,
we currently have a website built using asp.net (1.0375) and c#, site
was built about 2 yrs or so back. We wanted to write a console
application that would be able to simulate a user, this way we can have
it send us an email if the site has any issues. essentially we want
the console appl... more >>
Out of the Box Microsoft Feature - Tricking out your application questions
Posted by garyusenet NO[at]SPAM myway.com at 3/15/2006 6:05:18 AM
I've been studying the Tricking out your applications code at
microsofts
website
http://msdn.microsoft.com/coding4fun/inthebox/trickedoutapp/default.aspx
and its... tricked me out - In particular i'm having trouble with the
following:-
public TrickForm()
{
Initial... more >>
Debugging referenced assembly?
Posted by Andy at 3/15/2006 5:47:14 AM
Hi all,
I have a project which references a DLL on a network share. The dll on
the network share is one built by our integration server and I have the
source code for it.
I'm trying to debug a problem that arises in the current project, and
I'd like to be able to step into code from the as... more >>
Assemlby.LoadForm() exception
Posted by Entwickler at 3/15/2006 5:46:31 AM
I'm trying a very simple test to load an
assembly(dll) with the Late binding .
Hier is the Code i have in my application :
-----Code ----------
try
{
Assembly assemblyInstance =
Assembly.LoadFrom(@"C:\Data\Dlls\Myfunctions.dll");
... more >>
ascii char set
Posted by dotnetchic at 3/15/2006 5:38:29 AM
I'm trying to parse a binary file to help me with some analysis...what
I'd like to do is take a byte of data and display its ascii char value
(37='%', 38='&', etc.).
private void ParseFile(string fileName)
{
byte data;
if (File.Exists(fileName))
{
FileStream stream = ... more >>
Problem on close form
Posted by Victor at 3/15/2006 4:03:38 AM
Hi, i have a strange problem, i have a windows application with a
datagrid and a save and cancel button. In the datagrid, i have checked
in the currentcellchanged() one condition and i show a message with
MessageBox.show() if condition is true and if i show this message, when
i push cancel butto... more >>
static class confirmation
Posted by Steven Blair at 3/15/2006 3:35:29 AM
Using ASP.NET 2.0 and Visual Studio 2005
I have website and a DLL attached to it (BusLayer). The class inside the
dll (also imaginatively named BusLayer) havea number of static
variables. One example:
public static connectionString;
Website is running from IIS.
Am I right in saying tha... more >>
whats is parkingwindow??
Posted by ArtOfSpeech NO[at]SPAM gmail.com at 3/15/2006 1:02:35 AM
I have a program written in vb.net and its working normaly most of the
time but sometimes it loses focus and any interaction with its
interface is prevented.... i tracked the problem and found out that the
reason behind that is called Parkingwindow...
what is Parkingwindow??? can anyone help me... more >>
Non-default values for a struct ?
Posted by Joanna Carter [TeamB] at 3/15/2006 12:42:54 AM
Hi
struct MyStruct
{
int value = 64; // does not compile
public MyStruct()
{
value = 64; //does not compile
}
}
What do I do to create a struct so that default(MyStruct) returns a MyStruct
with value already set to 64 ?
Joanna
--
Joanna Carter [TeamB]
Consultant... more >>
XML as a DataBase
Posted by Nadav at 3/15/2006 12:18:30 AM
I thought accessing XML with DOM functions and structure is the best for
XML.
A developer at my company told me that there is a way to access XML files as
Databases, Datasources or something like that.
(Tables structures, sql queries etc...)
Is there such thing ? and if so, where can I read abo... more >>
C# application listen to update
Posted by Jason Huang at 3/15/2006 12:00:00 AM
Hi,
Our C# windows form applications deploy on our clients, most PCs are Windows
XP.
And we want to do something so the application will listen to our server to
check if an updating is needed, to some extent it's similiar to the Windows
Update.
I am not sure if C# can do this or I have to... more >>
Inserting Value at cell in Excel2003
Posted by nagen at 3/15/2006 12:00:00 AM
I have an existing excel file & i would like to enter a specific value at
cell A1 in Excel2003 using asp.net 2.0 how can i do this?
... more >>
C# connection and file access question
Posted by Jason Huang at 3/15/2006 12:00:00 AM
Hi,
In C# the SqlConnection=
"data source=192.168.100.100;uid=MyID;password=MyPwd;database=ETCserviceTest
";
and it is for SQL data connection.
Do we have some similiar method for accessing files in a paticular Windows
XP machine?
Thanks for help.
Jason
... more >>
Dll Viewer
Posted by perspolis at 3/15/2006 12:00:00 AM
Hi all
I know my question is not related to this topis but maybe somebody can help
me..
I'm looking for a software which can show exported methods of a dll like
windows dll axtivex dll and all.
with .NET studio I can just see Com dll ..but I want to se windows dll..
thanks
... more >>
How to change the following code to using x509 certs in a cert store the local machine?
Posted by jens Jensen at 3/15/2006 12:00:00 AM
HttpWebRequest req =
(HttpWebRequest)HttpWebRequest.Create(ConfigurationManager.AppSettings["URI"]);
req.Proxy = new
System.Net.WebProxy(ConfigurationManager.AppSettings["ProxyString"], true);
req.ContentType = "application/x-www-form-urlencoded";
req.Method = "POST";
byte[] bytes ... more >>
How to use MsgBox in C#
Posted by ad at 3/15/2006 12:00:00 AM
There is a MsgBox function in VB.
Have there equivalent function or calss in c#?
... more >>
|