all groups > c# > october 2005 > threads for thursday october 27
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
Create and launch html page?
Posted by Mervin Williams at 10/27/2005 11:16:04 PM
From within a Windows form, I need create a html page and open it within
Internet Explorer. Does anyone know whether this is possible within a
Windows Forms application? If so, please provide an example.
Thanks in advance,
Mervin Williams
... more >>
Nested tables - How do you add a new row to a nested table? (code attached)
Posted by Benny Raymond at 10/27/2005 10:28:55 PM
I have a dataset setup with a main table that has some information in it
along with an element that is a nested table so that I can store rows of
history information for that one row in the main table. This all works
fine in a datagrid I can add rows to the nested table of any of my
custome... more >>
Environment and Permissions
Posted by John Bowman at 10/27/2005 10:28:10 PM
Hi All,
I've got a simple wrapper static test method on a class to expand the
environment variables on a specified string:
public static string ExpandEnvironmentStr(string Str)
{
return Environment.ExpandEnvironmentVariables(Str);
}
For some apparently security related reason it crash... more >>
Create remote object with specified credentials.
Posted by Heliotic at 10/27/2005 8:37:02 PM
Hi everyone,
Currently I am working on an application that will perform a remote scan of
a specified server using the following code:
Type t = Type.GetTypeFromProgID( "Microsoft.Update.Session", "proact" );
UpdateSession UpdSess = (UpdateSession) Activator.CreateInstance(t);
This code wo... more >>
DataGridView question
Posted by vbMark at 10/27/2005 8:36:40 PM
Hello,
Using 2005 beta.
I can pragmatically select a cell in the DataGridView but it does not move
the cell so that it is visible on screen.
How do I make it so that the cell that I select is moved to where the user
can see that it is selected?
Thanks!
--
-=-=-=-=-=-=-=-=-=-=-=-... more >>
converting ASP.Net session type to an ASP one
Posted by genc_ymeri at 10/27/2005 8:31:02 PM
Hi,
Well, I'm looking around for another opinion. We have two webservers, the
legacy one writen in ASP and the new one in ASP.Net.
Once a user logs in the ASP.Net web app, the session of the Login page gets
stored in a DB (in a binary format). Meantime, if the user chooses to go and
run th... more >>
insert into still does not work?
Posted by Roy Gourgi at 10/27/2005 6:07:25 PM
Hi,
Here is my code. I get the error message now that it expects a ")". I have
tried a few different things, but to no avail. What am I doing wrong???? I
can't believe that it is so difficult to add a record in a database. In
Visual Foxpro it's done in one statement. I have tried to install MS... more >>
Accessing the CALL STACK
Posted by Yahoo at 10/27/2005 5:59:16 PM
I have a programming issue where I need to know the whole history of the
call stack to ensure it was never within a given method (specifically my own
method). I am hooking into the XmlDocument nodechanged event, I need to from
this event call modify a different node in this xmldocument, thus w... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
error creating a new project file in IDE...
Posted by tracernet_v2 at 10/27/2005 5:42:19 PM
help!!!!
this is the first time i encountered this problem so please help,
ASAP...
when i try to create a new project, it creates the solution, but an
error message box would appear telling me that the IDE encounters an
'Error writing project file. Error loading type library/DLL.'...
as i ... more >>
VS2005 broke my VS2003 Code
Posted by katzky at 10/27/2005 5:36:05 PM
I just fired up the production version of VS 2005. My first activity was to
convert an application that I wrote in VS2003 .Net 1.1..... The new version
does not work the same as the old...Ive found a single bit of code that
produces a different [and from a .net 1.1 point of view incorrect] r... more >>
Maximum Datagram size for UDP Sockets
Posted by Gregory Hassett at 10/27/2005 4:33:08 PM
Hello,
Does anyone know how to get the maximum size of a datagram for a UDP Socket
created via .NET's System.Net.Sockets.Socket class?
Thanks!
... more >>
PictureBox to Print Page...
Posted by VJ at 10/27/2005 2:40:02 PM
I have a sample code.. below with my Print problem... I am not able to get
the Label on Image print at the right location..
VJ
private Label label4 = new Label();
Form1's Load...
label4.BackColor=Color.White;
label4.BorderStyle=BorderStyle.FixedSingle;
label4.Text = "label4";
... more >>
encoding question
Posted by exBK at 10/27/2005 2:28:03 PM
I have a page where I get the data from DB as a DataSet. Use the
DataSet.GetXml() and load the XML in to a XMLDocument. Then use a XSL
stylesheet to render the page. In this process I am not able to display the
special characters such as Pound Symbol as is ... instead it comesout as "£".
... more >>
injecting cutom menus in a software
Posted by Raj Chudasama at 10/27/2005 2:17:53 PM
i want to learn to add a custom menu to any exisisting software on your pc.
And beable to use the menu to lets say pop up a window or soemthing. I
think was called subclassing.
What api do i need to know? how can i do this?
thanks
... more >>
C# and Delphi
Posted by F. S at 10/27/2005 1:21:32 PM
Would somebody please compare C# with Delphi.net? And also the different
between C# development tools, such as MS Visual Studio and Delphi 2005,
... more >>
Visual Studio 2005 Team Suite Trial Edition
Posted by Michael Rodriguez at 10/27/2005 1:13:55 PM
I see VS 2005 has finally been released. My only question is, why is it a
"Trial Edition"???
TIA,
Mike Rodriguez
... more >>
CollectionBase IBindingList confliction problems
Posted by Narshe at 10/27/2005 12:50:06 PM
I have a collection class that inherits from CollectionBase, and
implements IBindingList, and I'm having problems with recursion or List
not having an instance.
This is a simple version of the class.
public class MyCollection : CollectionBase, IBindingList
{
public int Add( object valu... more >>
HOWTO Make a C# UserContol Memory Map to a C++/MFC/EXE
Posted by ATS at 10/27/2005 12:43:03 PM
HOWTO Make a C# UserContol Memory Map to a C++/MFC/EXE
Please help,
I have a UserControl that I want to have "talk" to a C++/MFC/EXE program
that is already running via a memory map.
The C++/MFC/EXE app is using the traditional WIN32 commands like
OpenFileMapping
MapViewOfFile
UnmapV... more >>
Convert VB to C# for saving/reading an image from Access DB
Posted by dale zhang at 10/27/2005 12:41:02 PM
Hi,
I am trying to save and read an image from MS Access DB based on the
following article:
http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp
Right now, I saved images without any errors. After reading the ole object
from db, I saved it to C: as file1.bmp and displayed on the web. Bu... more >>
problem connecting to sql server when I run from another PC
Posted by Alpha at 10/27/2005 12:21:04 PM
Hi, I'm working on a window based application. It's running just fine from
my machine where the SQL server is installed. I tried running from another
PC on the network by creating a shortcut to the application's .exe file and I
got error message about not alble to access SQL server because u... more >>
recommended way to autoStart an app
Posted by Dica at 10/27/2005 11:54:14 AM
based on a previous thread, i've been advised that using the system registry
isn't always the best way to store user config details (due to portability
issues). from my understanding, however, registry is usually used to
autoStart an app. is there a better way to go about autoStaring an app,
the... more >>
How do I make Response.Redirect refresh the web page?
Posted by Brian Kitt at 10/27/2005 11:26:04 AM
I have an application where I need to redirect the user to a different page
and have that page load from the server. I tried using Response.Redirect,
and while that does redirect them, it does not force a page load of the
target page. In other words, it takes their cached page, if one exists... more >>
What are RptProj, rdl and rds files?
Posted by Santhosh A Nagendra at 10/27/2005 11:25:45 AM
Hello,
We have project files in .Net with the extensions as
xxx.rptproj , xxx.rptproj.user, xxx.sln , yyy.rdl, yyy.rdl.data and zzz.rds
files
I would like to know what are these files and what type of project it is. I
tried to open in VS.Net and Visual studio but did not open. Do i need to
i... more >>
Mail Problem
Posted by Peter at 10/27/2005 11:16:56 AM
MailMessage aMessage =3D new MailMessage();
aMessage.From =3D "myemail@host.com";
aMessage.To =3D "someemail@host.com";
aMessage.Cc =3D "";
aMessage.Bcc =3D "";
aMessage.Subject =3D "Test";
aMessage.Body =3D "Message";
SmtpMail.SmtpServer =3D "smtp.se... more >>
2.0 RTM Break Beta2 Apps?
Posted by wackyphill NO[at]SPAM yahoo.com at 10/27/2005 11:10:09 AM
Anyone know if someone is running a Beta2 app if it will break if they
install the RTM version of the 2.0 framework (Assuming the app doesn't
use depricated features)?
... more >>
"Length of the data to decrypt is invalid." when trying to decrypt TripleDes algorithm
Posted by Dica at 10/27/2005 10:55:31 AM
i've used the sample code from msdn to create an encyption/decryption
assembly as found here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT10.asp
i'm able to encrypt and then decrypt data okay as in the following code:
// encrypt the data //
Encrypt... more >>
DataView from DataViewManager
Posted by rk at 10/27/2005 10:36:03 AM
Hi,
I am using a DataViewManager to display the dataset in a datagrid. Once
the rowfilter is applied, I would like to know the no. of rows returned
so that I can display it on the screen. I would like a way to get the
underlying DataView to get the count but I am unable to find it.
Here is ... more >>
can't read config file
Posted by Dica at 10/27/2005 10:08:34 AM
i've followed the instructions i found here about how to add a config file
to my applicaiton:
http://www.c-sharpcorner.com/Code/2003/Nov/CreateUseConfigFiles.asp
the instructions state that i create a config file named after the
executable, so, as my exe is timeTracker.exe, i've created a file... more >>
OpenMP on C#
Posted by Brian C. Barnes at 10/27/2005 10:04:09 AM
Will OpenMP (or some other parallelizing technology) be considered for C#,
like C++ already has?
Brian C. Barnes
... more >>
Docking Word Into C#
Posted by MartinABeck NO[at]SPAM gmail.com at 10/27/2005 9:47:05 AM
Is it possible to dock Word right into a C# program? I am in need of
something like what is described here -->
http://support.microsoft.com/?id=304662 but I need the whole Word
application within the program (specifically so that the File Menu Bar
is shown). Is there anything out there that c... more >>
Error:COM object with CLSID{some hex code} not valid or not regist
Posted by Shiraz at 10/27/2005 9:38:07 AM
Hi
I just made an installer package for an application in .NET which also uses
COM dlls. It seems to work fine on my machine but when tried it on a
co-worker's machine, the application installs, but while running, gives the
following error in the part that must use a certain COM dll:
COM... more >>
Serialize an Enum using the Enum names and not value
Posted by Chris Dunaway at 10/27/2005 9:09:00 AM
Suppose I have the following enum:
public enum MyEnum {
EnumVal1 = 1,
EnumVal2 = 2,
EnumVal3 = 3
}
I want to serialize the enum but I want the /names/ of the enum to be
stored in the .xml file, like this:
MyEnum e;
e = MyEnum.EnumVal2;
// Serialization code here
I want t... more >>
CellHover, not datagrid MouseHover?
Posted by melanieab at 10/27/2005 9:08:01 AM
Hi,
I've used the MouseHover event in my datagrid and have almost everything the
way I want it - but I've realized that the MouseHover event won't go unless
the mouse leaves the datagrid. But I need it to kick in when I move the
mouse over a different cell within the datagrid.
I don't even ... more >>
UnsafeNativeMethods - why is it internal?
Posted by john doe at 10/27/2005 8:39:04 AM
The UnsafeNativeMethods seems to be the answer to most .NET developer's
prayers in terms of defining interfaces and functions from the Windows
API, without us having to constantly having to re-import these
functions (and often incorrect definitions floating around the web).
I can understand th... more >>
CopyLocal Property for references.
Posted by Yuva at 10/27/2005 8:31:57 AM
Does the copylocal property in references change with any machine
settings or visual studio settings ?
I open the same solution in IDE in two different machines and the
copylocal property of many references is different in the two machines
.. I noted this problem when there was a change in the... more >>
Cannot READ a file being used by another process
Posted by fabrizio.viggiani NO[at]SPAM gmail.com at 10/27/2005 7:43:31 AM
I try to open a file that is opened and used by win32service for
logging purposes in c#
The following code line
StreamReader sr = new StreamReader(filename);
gets an exception:
The process cannot access the file 'XX' because it is being used by
another process.
I can open the file usi... more >>
ListBox control - highlight item
Posted by JPSutor at 10/27/2005 7:40:41 AM
When I have the user tab over to the listbox control, how can I get one
of the selected items to be highlighted without the user manually
selecting it. The object is to show a highlighted item when the
control gets focus
... more >>
Converted C# Doesn't Stop at Breakpoints
Posted by lafleur NO[at]SPAM canadiensfan.com at 10/27/2005 7:10:35 AM
I solved this problem, and thought I should post a solution for it.
I converted a VB.NET web app to C# using SharpDevelop. When I went to
run the C# version, the IDE was ignoring breakpoints - ie. it wouldn't
stop at breakpoints.
After investigating, we found that we had to manually add thi... more >>
macro
Posted by Roy at 10/27/2005 7:08:12 AM
Does C# in Visual Studio 2005 support MACRO?... more >>
Thread Strange Behaviour
Posted by Curious at 10/27/2005 6:50:47 AM
Hi,
I have a worker thread running, where basically its operation is to
execute in an infinite loop.
Now, when I am suspending this thread, the CPU usage time is still
remaining 100%.
What could my problem be.
Thread t1 = new Thread(new ThreadStart(myMethod));
Console.Writeline("Pre... more >>
Question on Method Signatures
Posted by Robert McCall at 10/27/2005 5:59:53 AM
Greetings All,
Does anyone have any idea why a method signature does not
include the return type?
Example:
int someFct( int a, int b );
is the same signature as
double someFct( int a, int b );
and, as such, cannot co-exist in a class.
Is there some kind of object-oriented... more >>
how can i prevent overriding/hiding a base class method
Posted by yaron at 10/27/2005 5:59:05 AM
Hi,
how can i prevent from a derive class to override/hide a base class method ?
because in c# there is the new keyword on a method.
i am looking for the same functionality as the 'final' keyword in java.
Thanks.
... more >>
EnumFonts
Posted by ZaRMaS NO[at]SPAM gmail.com at 10/27/2005 5:38:30 AM
Hi all,
I'm using GDI to enumerate fonts (installed or not in system) with
function EnumFonts.
My source :
AddFontResourceEx(@"C:\essai\FontTest.otf", FR_PRIVATE, IntPtr.Zero);
It returns 1 so the font is now isntalled and I send message :
SendMessage(HWND_BROADCAST, WM_FONTCHANGE, Int... more >>
intercepting return in a texbox Pocket pc
Posted by albertoalar NO[at]SPAM gmail.com at 10/27/2005 4:26:30 AM
I m trying to intercept a return in a texbox (Pocket pc ) when a
barcode is writed. I need help
thanks
... more >>
how to disable back button of browser
Posted by sonu at 10/27/2005 3:54:31 AM
I want to disable the browser referesh and back button.
is there any way in .net for above.
Regards
Amit
... more >>
virtual function
Posted by juli jul at 10/27/2005 3:17:26 AM
Hello,
I have a function in base class and a lot of child classes of it. Couple
of them need an input argument in this function and all the other don't.
How can I do it using ovveride and virtual?
Thank you!
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Hashtable.Clone() is shadow copy, how to depth copy hashtable?
Posted by harvie wang at 10/27/2005 12:42:01 AM
Hi,
I want to implement a copy construct class, but the class have as Hashtable,how
to do?
public class A
{
private Hashtable _data;
public A()
{
_data = new Hashtable();
}
public A(A obj)
{
... more >>
Invoking control from different thread
Posted by david s at 10/27/2005 12:31:56 AM
I've got a combobox that I am getting updated data for in real time and
need to clear out the values and reload it with the new data. I keep
getting an error that I can't access the control because it was created
from a different thread. I've been trying to figure out how to do this
using Invo... more >>
Friend Class
Posted by Paul Cheetham at 10/27/2005 12:00:00 AM
Hi,
I am writing an application with a large number of various classes, and
I want some of them to have Friend access to protected members of other
classes.
i.e. I want class A to have access to internal members of Class B
In C++ this was simple, as in the definition for class B, I would
... more >>
how to implement FlashWindow in c#
Posted by dongxm at 10/27/2005 12:00:00 AM
how to implement FlashWindow function in c#?
thanks very much!
... more >>
DataGrid
Posted by Fox at 10/27/2005 12:00:00 AM
Is it possible display one record in multi rows instead of one row.
eq.
_______________________________
Client Name | ABC Internation Co Ltd
Contant | Peter Brown
Tel | 222-2334324
_______________________________
Client Name | DBS Co Ltd
Contant | Micheal
... more >>
eBay Sellers Community
Posted by eBay Sellers Community at 10/27/2005 12:00:00 AM
--
If you like eBay and enjoy buying and selling there. Please take the time to
join the site below!
eBay Sellers Community
http://www.ebay-sellers-community.com
... more >>
Trying to link DataGrideTableStyle to DataGrid
Posted by scott at 10/27/2005 12:00:00 AM
Hi all
First off, thank you for any one that can help.
I have a problem trying to link a DataGrideTableStyle to a DataGrid.
I have a dataset which reads from a file a xml schema and a xml file. This
is done using the ReadXmlSchema and ReadXml.
I then create a DataTable to get access to ... more >>
Question: Load bmp and save as jpg
Posted by Olaf Baeyens at 10/27/2005 12:00:00 AM
I want to convert one bitmap file to another one.
For example load as bmp and save as jpg.
The loading part is simple I do this:
Stream BitmapStream =
File.Open(sSrcFile,FileMode.Open,FileAccess.Read,FileShare.None);
Bitmap imgPhoto=new Bitmap(BitmapStream);
iPixelsX=imgPhoto.Width;
... more >>
Pixel array to PictureBox
Posted by victor at 10/27/2005 12:00:00 AM
hello,
I have several arrays containing (image-) pixel data; I want to
display it onto a PictureBox.
What is the best Graphics method for it?
(MSDN examples talks only about loading it from file ...)
Thank you.
victor... more >>
CrystalReport and ODBC configuration
Posted by Jason Huang at 10/27/2005 12:00:00 AM
Hi,
I've created an ODBC connection with SQL Server 2000, for conneting to
MyDatabase.
In the process of building that ODBC connection, I test the connection and
fine with no problem.
However, in my C#.Net project, I add a CrystalReport MyReport to my project,
then I test running MyReport,... more >>
TcpClient problem
Posted by Dirk Reske at 10/27/2005 12:00:00 AM
Hello,
I try to connect to a remote server using TcpClient.BeginConnect(...);
after I call the BeginConnect method, the Callback is imedeately called,
but the socket isn't connected!
When I set a breakpoint at the callback, so that I have a little break...
the socket gets connected.
What can... more >>
|