all groups > c# > november 2004 > threads for thursday november 25
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
Images handlling in Panel
Posted by pei_world at 11/25/2004 10:22:24 PM
I add two images to a panel control. now I want to use its scroll to view
two image in the same panel. however it doesn't show up in my app, also some
display problem within my top image as well.
can anyone help me to solve it?
... more >>
event if connection would be established
Posted by Dirk Reske at 11/25/2004 10:15:23 PM
Hello,
is there a way to get informed before a connections is established?
I want to know the number that is going to be dialed...
thx
------------------------------------------------
I think my english is terrible today....
I'm from germany ;)
... more >>
References embedding
Posted by Tamir Khason at 11/25/2004 10:03:45 PM
Following the scenario:
client want the application in ONE file only and do not want to hear about
more then one exe in directory.
The application is about 10 projects (no other way to build 'cos consist of
3d parties without sources)
So thinking about folloing scenarion:
1) Make base class ... more >>
How to get around this unassigned variable problem?
Posted by Karl at 11/25/2004 9:25:09 PM
Hi all,
I have a piece code like this:
static void Main()
{
Utility db;
try
{//create db connection, fill dataset...
db = new Utility();
}
catch(Exception e)
{
MessageBox.Show("Exit...");
}
if( db != null) <--- .net does not like it.
{... more >>
Passing C structure from VC++ Socket server to C# Client
Posted by Raj at 11/25/2004 9:09:04 PM
My C++ server uses sockets to communicate to the C# Client which is also
using the sockets. I want to pass a C Structure from the VC++ socket server
to the C# Client. What are the considerations on the C# client side?
For example, lets say the C# client receives a buffer of data from its
s... more >>
looking for good site/link for math example in C#
Posted by MIB426 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 11/25/2004 8:57:03 PM
Hi
I will need to write a lot of math code, such as polynormial, Normal
Distribution, Geometry, matrix....etc (anything to do with math) in
C#.
if you know any good links please let me know.
thanks all
*-----------------------*
Posted at:
www.GroupSrv.com
*------------------... more >>
New software to use Design Patterns
Posted by kryptonite NO[at]SPAM Humlog.com at 11/25/2004 8:23:05 PM
Hi
We are a group of two chaps just out of undergrad, we created
a software to automate the use of Design Patterns. We have put it up
at Source Forge--http://dpatoolkit.sourceforge.net/
The software has been designed using the .NET framework and
coded in C#.
The pat... more >>
How to convert from string to stringbuilder?
Posted by ORC at 11/25/2004 6:58:43 PM
When having a string that is defined as a stringbuilder it can be converted
to a string by this:
StringbuilderText.ToString();
But what about the otherway round?
Thanks
Ole
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Set new item in listview visible
Posted by Tim Bücker at 11/25/2004 6:24:11 PM
Hello,
I have a listview (detail) that gets filled with items using a button.
After adding some items new items are not visible in the listview because it
does not scroll automatically.
Is there a way to make new items always visible in the listview?
________ <-- ListView starts here
1
2... more >>
Simple question for new boy
Posted by Ian at 11/25/2004 6:08:41 PM
Hi
I just started with C# and already i have a problem.
i need to transalt this line from VB6 to C#.
txtAnswer.text = (txtNumberOne.text - 32) * 5/6
Thanks
ian
... more >>
Why I can't use web.services under w98
Posted by elpako at 11/25/2004 4:52:08 PM
Why ?
Another M$ Idea ???
or realy hard architecture problem ?
elpako... more >>
How to FTP via VPN to sites with real adresses on different IP's ?
Posted by Jason Robertson at 11/25/2004 4:31:33 PM
Hi,
I am using Windows 2003 Server. The VPN works fine, but I want to FTP
through the VPN so the connection is encrypted. The problem is each of my
IIS sites has a real Internet address specified, w.x.y.z. So when the VPN
comes up using a private IP, I can't connect to any of the FTP sites u... more >>
DotNet, Unicode Charcters And Oracle
Posted by Ram at 11/25/2004 4:19:53 PM
Hey,
I'm trying to execute an Insert SQL command, where one of the parameters I'm
trying to insert, has some unicode characters.
The execute command gives no error, but when I use Nevigator to see the new
line,
Alll the unicode characters have been misteryously converted to - "?" !!!
I'v tried... more >>
Add lines to textBox.
Posted by PawelR at 11/25/2004 2:38:38 PM
Hello Group,
I have very simple question. In my application I have textBox (tbInfo) where
tbInfo.Multiline = true;
How simple add lines to this component? Sametime I need add first, sametime
last line.
PawelR
... more >>
DVD Autorun
Posted by Mark Shehan at 11/25/2004 2:37:00 PM
Hi
I have an application which has the windows media player activex control in
it.
When i insert a CD my application plays it automatically (much like windows
media player).
When i insert a DVD movie i want a similar response. The trouble is that
some movies have PCfriendly and similar o... more >>
how to generate events in C#?
Posted by Wilfried Mestdagh at 11/25/2004 12:23:01 PM
Hi,
How generate events in c#? Sorry if this is beginner question, but some
example is very welcome :)
for example a simple class creation and an event handler (with parmeters and
sender object) ?
--
rgds, Wilfried
http://www.mestdagh.biz... more >>
abnormal memory occupation?
Posted by Ziphyre at 11/25/2004 12:18:55 PM
Hi,
I have a simple windows application, it doen't have any form, or
expensive resource, just a simple exe. Its size compiled in release mode
is approximately 23KB. But when I run it, its size on memory is approx
12MB (megabyte!!!). Here is a simplified version of the code, I'll be
more t... more >>
config file dosn't work when I deploy my app
Posted by ALI-R at 11/25/2004 12:13:35 PM
I have a config file in my app ,,called app.config.it works fine in debug
but when I deploy application it has no effect.Any suggestion??
Thanks for your help.
Here is my app.config
?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="defaultReportServer" ... more >>
Observer Pattern/Delegates
Posted by gyabut NO[at]SPAM ic.sunysb-dot-edu.no-spam.invalid at 11/25/2004 11:56:06 AM
HAPPY THANKSGIVING EVERYONE! I'd be really THANKFUL for any help.
:wink:
I'm a java programmer who has recently been assigned to a c# project.
I'm having trouble communicating between my forms. The scenario is I
have two forms each with one button. A click on the first button
instantiates... more >>
BindingFlags.Internal, where is that?
Posted by TEK at 11/25/2004 11:36:01 AM
When using reflection, the Type.GetProperty method has the following
signature:
Type.GetProperty(String, BindingFlags)
The doc says:
a.. Specify BindingFlags.Public to include public properties in the search.
a.. Specify BindingFlags.NonPublic to include non-public properties (that
is, pri... more >>
Happy Thanksgiving!
Posted by William Stacey [MVP] at 11/25/2004 11:00:03 AM
Have a great holiday folks!
(I need to shovel the driveway.)
--
William Stacey, MVP
http://mvp.support.microsoft.com
... more >>
How to know inside a constructor who called the constructor?
Posted by flam NO[at]SPAM rfranco-dot-ca.no-spam.invalid at 11/25/2004 10:56:03 AM
I have a Win Form app, calling the consctructor of a class. Inside
the class, I declare some stuff like new Label, etc. I want to add
this label inside the constructor in the windows form by
xxx.Control.Add(label). Sure I can pass this.Control in parameter in
my constructor from my windows ... more >>
Newline in Textbox
Posted by Kaka at 11/25/2004 10:52:14 AM
Hi, I am a learner for C# and .Net.
I want to know how to put a line break to a string so that when it show in
the textbox the text will be displayed in saperated lines.
e.g.:
String s;
s = "AAAAAAAAAAAAAAAAAAAAA";
s += "BBBBBBBBBBBBBBBBBBBBBBB";
txtOutput.Text = s;
I want to show th... more >>
IDisposable and 'using' - GC giving me trouble...
Posted by Per Rollvang at 11/25/2004 10:21:57 AM
Hi all!
I have created a few classes that inherits the IDisposable-interface, and if
I don't use them in this fashion
using(bla bla bla)
{
// do stuff
}
the application seem to raise a 'non-fixable' exception at exit.
Is implementing IDisposable together with 'using' a preferred w... more >>
I need recommandations on best books
Posted by Dan at 11/25/2004 9:37:01 AM
I need books on C# (level novice & up).
I need books on Visual C# (level novice & up),meaning examples & expansion
on the environment of developement.
Thnx
... more >>
how to get ancestor's type?
Posted by Alex K. at 11/25/2004 9:35:02 AM
I can check if a control is inherited from TabControl like this:
if (c.GetType().ToString() == "System.Windows.Forms.TabControl")
But what if c is inherited from TabControl? How to check that?
Thank you
... more >>
Windows Form in seperate thread
Posted by Brian Keating EI9FXB at 11/25/2004 8:47:03 AM
Hello all,
Wonder what approach is used for this problem.
I have a MDIApplication, the MDIClinets are to be in a seperate thread.
So I've done something like this,
// Create a new Show method that starts a new thread
public new void Show()
{
Thread t = new Thread(new ThreadStart(Thread... more >>
Inheritance problem
Posted by jure.sovinsek NO[at]SPAM email-dot-si.no-spam.invalid at 11/25/2004 7:55:55 AM
Hello everyone!!
I'm new here and I have a problem, please help! I'm beginer in C#
programing so I am sorry if problem is not complicated.
I got the message of "object reference not set to an instance of an
object" when I click on the View Designer. The form is inherited. Can
someone please... more >>
slow access to MySql Database
Posted by Jim Lawton at 11/25/2004 7:51:21 AM
I'm not sure where my problem lies, but someone here might have a suggestion.
I'm developing a .NET web application, (but I don't really) think that's
relevant.
I'm running MySQL 4.1.7-nt on my laptop, and I'm accessing it through ODBC
(MyODBC-3.51.10-x86-win-32bit).
I already had the... more >>
SqlParameter overloads
Posted by Mike P at 11/25/2004 7:19:51 AM
I'm executing a stored procedure and trying to return a decimal data
type with 4 decimal places. To do this requires this overload of
SqlParameter :
SqlParameter prmCash = new SqlParameter("@Cash", SqlDbType.Decimal, 9,
ParameterDirection.Output, false,
19, 4, "CASH", DataRowVer... more >>
Where is the good old Friend statement?
Posted by Sharon at 11/25/2004 7:13:11 AM
In C++ there was the friend statement. What about something like it in C#?
Is it the internal?
If it is the internal, I think it is too much and unsecured enough.
--
Regards
Sharon G.... more >>
What about Destructor for Remoting cleaning?
Posted by Sharon at 11/25/2004 7:05:04 AM
As been said in the discussion ‘Why not destructor?
’http://msdn.microsoft.com/newsgroups/managed/default.aspx?dg=microsoft.public.dotnet.languages.csharp&mid=203132f5-041f-47c8-8c55-ec35b567dd31
It is, with no doubt, bad to write destructors.
Nevertheless, destructors are needed whenever ... more >>
problem in calling winapi that use pointer to struct from c#
Posted by amit bharadwaj at 11/25/2004 5:33:02 AM
hi am using panel with autoscroll , now i want to call window api
BOOL GetScrollInfo(HWND hwnd, int fnBar, LPSCROLLINFO lpsi));
now am doing like tht
unsafe public static extern bool GetScrollInfo(uint hwnd,uint SB_HORZ,
SCROLLINFO* si );
but it causes a problem in lasst parameter , pls ... more >>
Debugging Windows Service
Posted by Raed Sawalha at 11/25/2004 5:03:02 AM
Dear:
I created a windows service and I need to debug it , can anyone tell me how
can I debug It?
I tried to attach the process using visual .net (Tools->Debug
Process->Select my process then attach) when I place a breakpoint it will
have (?) not loaded.
any ideas?
... more >>
Quick CodeDOM Question
Posted by Vagmi Mudumbai at 11/25/2004 4:45:36 AM
Hi,
I am working on CodeDOM to generate a more usable class to serialize
and deserialize WXS files. I have hit the wall at a pretty early
stage. :-( I am attempting to change the member public fields into
properties. I have written a generic field to property code for that.
It is almost strai... more >>
numeric data type
Posted by Mike P at 11/25/2004 4:29:55 AM
I am using a stored procedure to get a value from a table, but the
parameter I need to pass is a numeric data type in the table. The SQL
Parameter object in .NET seems to support most of the SQL Server data
types, but not numeric. Can anybody tell me what data type I need to
use?
Any help... more >>
Server.Transfer problem
Posted by msuk at 11/25/2004 3:59:02 AM
All,
I have a ASP.NET webform that has a button that when clicked simply directs
the user to another .htm page - code below
private void btnSend_Click(object sender, System.EventArgs e)
{
try
{
Server.Transfer("thanksr.htm");
}
catch(Exception ex)
{
st... more >>
Slow adding controls . Please Help!
Posted by news.xnet.hr at 11/25/2004 2:52:12 AM
Hi All!
I'm doing a little app for browsing images(like ACDSee). All thumbnails are
actually panels with imageboxes and labels for image properties (like
ACDSee).
What I'm doing is first fill the FileInfo[] with (image)files from selected
folder.
After that I have a loop for putting the thum... more >>
C Structure to C# structure using sockets
Posted by Raj at 11/25/2004 2:49:02 AM
I want to pass a C structure from a windows server to the C# client using the
Sockets. Will there be requirements to cast the data types in the C# client?... more >>
Controls/Components
Posted by tormod NO[at]SPAM engebu.com at 11/25/2004 2:35:52 AM
Is it possible to make ordinary controls/components in CSharp and use
it like i could use <object>-tag with COM in a HTML-page?
This page is a locally stored HTML-page, not run through any
webserver, just a single HTML-page browsed to by a FILE://-tag from
another program.
What I want is to... more >>
|