| |
thread by: Noulouk |
last post Nov 17 '05 by: Noulouk
Hi ,
I need a string which is the path of a property in my class.
For example, my property path is :
MyNamespace1.Drawing.Class1.Property1 (found with intellisense) --> I
need to put this to a string
I know how to do with a class:
typeof(MyNamespace1.Drawing.Class1).FullName --> I get the string for
my class path
|
thread by: Maziar Aflatoun |
last post Nov 17 '05 by: gmiley
Hello,
How do you get a list of all tables in a sql server database using C#?
Thanks
Maz.
|
thread by: vooose |
last post Nov 17 '05 by: Bruce Wood
Consider a rounding up function:
public static decimal RoundUp(decimal val, decimal round)
{
return ((decimal)Math.Ceiling((double)(val/round)))*round;
}
Math.Ceiling (and Math.Floor for RoundDown) only take double,s so we
need to cast twice. Is there a better way?
|
thread by: Ian |
last post Nov 17 '05 by: Jon Skeet [C# MVP]
I am creating an XML file through the XmlTextWriter. This is output to a
MemoryStream which I convert a string through a Byte Array. Everything works
correctly except for one BIG issue. My XML file is being truncated somewhere
in the process. Large XML files give a truncated result, and small ones rsult
in a Byte.Length = 0 .
I assume the...
|
thread by: gh |
last post Nov 17 '05 by: Chris Jobson
I have a jpeg image on the winform, that I am using for a background.
When I drop a label on the form the label background is white. How do I
get the label background to be transparent, so the image shows through it?
TIA
|
thread by: Diogo Alves - Software Developer |
last post Nov 17 '05 by: Diogo Alves - Software Developer
hi,
I am trying to have dinamic positions in a panel that I have in my app.
I'll explain my dynamic concept, I have a right docked panel with some
labels and controls, that are showing users stats, but sometimes there are
null values, and I want that in this case that label disapears and the other
below go up one space...
The problem...
|
thread by: Joe Thompson |
last post Nov 17 '05 by: Joe Thompson
Hi,
I tried posting this in a different thread a week ago but only received one
response so I will try again here.
I am writing the code for a program that will run on an embedded PXA255
running Windows CE 4.2. At first I was planning on using C# with the compact
frame work but the more I learn about the project, the less comfortable I...
|
| |
thread by: Derrick |
last post Nov 17 '05 by: Ollie Riches
Hello all;
I have a system tray app which appears to have a handle (thread/file) leak
when running on Windows 2000. I can't seem to trace it to my application,
so I'm starting to believe that it could be resulting from a 3rd party
assembly that I'm using.
Is there any way to see which assembly "owns" a particular handle? I can
generate...
|
thread by: Ivan |
last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
subject says it all.
thanks in advance.
Ivan
|
thread by: keys4worship |
last post Nov 17 '05 by: Jeremy Ames
I am populating an arraylist from a text file on my PC. I am using this
information with C# to perform actions against a PCOM session. A for
loop handles the actions to perform. If for some reason the action
fails using one of the items in the arraylist the loop continues until
the last item in the arraylist is reached.
What I need to do is...
|
thread by: pnp |
last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
Where can I get my hands on a ASP.NET (C#) mailing list app, so that
users can be added, deleted and send mail amongst themselves?
pnp
|
thread by: aaj |
last post Nov 17 '05 by: aaj
Hi all
I have a group of files that I store independently in a temporary folder on
the c: drive. Typical things are ini files, bitmaps, icons etc. All access
to the files is hardcoded within my software
e.g.
private Bitmap myTick = new Bitmap(@"C:\TempManager\tick.gif"); etc....
What I would like to do is have the contents of ...
|
thread by: Brian Henry |
last post Nov 17 '05 by: Brian Henry
How do you guys deploy a project with SQLDMO.DLL references? do you just let
the dependencey checker handle it or do you have to include anything
special? I created an Interop.SQLDMO.Dll file that I am using (from SP4 of
SQL Server) and just copying it to a machine with out using an installer and
running it gives me an invalid cast error...
|
thread by: Hank |
last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
I am writing a windows service in C#.NET which will manage image capturing
devices, when client connects to the service, at some point the service need
to expose a device dialog to the client for setting some device specific
parameters. According to MSDN docs, classes within the Windows Forms
namespace are not supported for use within a...
|
thread by: Daniel |
last post Nov 17 '05 by: Jianwei Sun
if System.IO.StreamWriter write throws an exception, is there anyway to
close the System.IO.StreamWriter object? it seems to stay open when this
happens then future attempts to write to that same path fail because it says
its in use by another process.
|
| |
thread by: Just D. |
last post Nov 17 '05 by: Damien
All,
Did anybody see this strange effect? The web application is written in C#,
ASP.NET, SQL, T-SQL, etc. A pretty usual stuff, complicated enough, but
works fine until...
Here is a question. I don't see any problem if I start this app on my local
computer against my local IE both in debug or release modes. If I upload the
same app to my...
|
thread by: Shreeram Natarajan |
last post Nov 17 '05 by: Shreeram
Hello,
Can anyone please tell me how to display images in a webpart.
Thanks,
Shreeram
|
thread by: buells |
last post Nov 17 '05 by: Ignacio Machin \( .NET/ C# MVP \)
Hello Group,
I'm pretty new to C-Sharp, so perhaps it's a well known problem and i
didn't get the right words to search for in google etc.
My Problem is: I wrote (well adopted it from Java) a Dispatcher Thread,
which is 1. a singleton and 2. it should be started from the main and
then wait for DispatcherTasks to work on.
A simple usage...
|
thread by: Jesper |
last post Nov 17 '05 by: Ignacio Machin \( .NET/ C# MVP \)
Hi,
I've made a program runs in the background, ie not shown on the task bar but
only with a tray icon next to the watch. If I use Alt+Tab its possible to
select the program from the list of running applications. Is it possible to
remove the program from the list of running applications?
In the task manager the first tab page lists...
|
thread by: Visual Systems AB \(Martin Arvidsson\) |
last post Nov 17 '05 by: Ignacio Machin \( .NET/ C# MVP \)
Hi!
I want to decrease the current date with lets say five days.
How do i do that? I Have been struggeling for a while but cant figuer it out
The code is like this.
DateTime myTime = DateTime.Now;
MessageBox.Show(myTime.ToShortDateString());
|
thread by: Eranga |
last post Nov 17 '05 by: Ignacio Machin \( .NET/ C# MVP \)
Could some one please tell me how to make an asp.net betton work for
enter key, so that the user do not have to click on the button every
time he needs to hit the button.
Thanks in advance.
*** Sent via Developersdex http://www.developersdex.com ***
|
thread by: Diogo Alves - Software Developer |
last post Nov 17 '05 by: Ignacio Machin \( .NET/ C# MVP \)
Hi,
I have a thread to fil a progress bar during a process, and I need to get a
notification to do an Action.... How can I detect that the thread has
finished already?
|
thread by: |
last post Nov 17 '05 by: Ignacio Machin \( .NET/ C# MVP \)
Hi all,
Is it possible to update a selected row of a datatable ?
I do not want to update the whole table just one maybe two at a time.
Thank You.
|
| |
thread by: Shreddy |
last post Nov 17 '05 by: Ignacio Machin \( .NET/ C# MVP \)
Hi,
I'm trying (or struggling) to convert some C code to C#.
The existing C client is sending a structure via a TCP socket to a network
server. The structure contains a mix of int and char data types .
I can re-create the structure in c# with LayoutKind.Explicit, but how do I
convert this structure to a byte array for use with the...
|
thread by: Mike L |
last post Nov 17 '05 by: Mike L
This is for a Win form.
On my Win Form, I have a data grid, OK button and a Cancel button.
The focus is in the data grid and when the user hits enter, I want the OK
button code to be called.
|