all groups > c# > october 2006 > threads for friday october 20
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
comparing objects
Posted by netnet at 10/20/2006 11:44:42 PM
I have a collection of objects that I store in the session. Then I look in
that collection to see if the collection.contains an object. it answers
false. If I dont store that collection in the session it answers true. Is
the session somehow modifying the collection? The objects look iden... more >>
How to display multiline text in a label control? Thanks!
Posted by Ryan at 10/20/2006 11:11:54 PM
Do you know how to open TGA fies to display in PictureBox?
Posted by MrNobody at 10/20/2006 10:33:01 PM
I have browsed the Net and found some library called DevIL which was ported
to C# by some fellow but apparantly while itloads some tga files many times
it fails, not sure why- no errors thrown just no image displayed in my
PictureBox. And this is using the reference app that they made as well.... more >>
DotNet and Firebird Embedded: Prolem with distinct clause
Posted by osmarjunior at 10/20/2006 10:03:02 PM
Hi. I made a method to execute queries in my database (Firebird
embedded v.1.5.3).
The Database class contains methods to create the database specific
objects.
public static DbDataReader ExecuteReader(String query)
{
// Creates the DbCommand
DbCommand command = Database.GetCommand... more >>
if (this.DesignMode) return ; Not working
Posted by Sagaert Johan at 10/20/2006 9:40:58 PM
Hi
I stumbled to this :
I have a form and in the contructor i put
if (this.DesignMode)
return;
other code here
The IDE designer throws an exception and points to a line in the 'other
code" block .
Any reason why ?
... more >>
How to get mouse/keyboard event from outside your form?
Posted by MrNobody at 10/20/2006 8:36:02 PM
What kind of wizardry do I have to pull off so I can capture a mouse click
event or a key press event from OUTSIDE my form?
Ideally, with either case I also consume the event so that it does not reach
whatever app besides mine is currently in focus... but it's not totally
necessary if it's ... more >>
Arraylist - accessing object properties?
Posted by Alex at 10/20/2006 7:24:30 PM
Hi all,
I'm trying to create an arraylist of a user control class... I'm able to
define the list and add objects (panels) to it, but I can access and of the
panel properties using an index...
Is there a way to do this, or do I need to copy each node into an interim
handle of the corr... more >>
Casting Issue Correct Question! Sorry
Posted by Daniel at 10/20/2006 6:56:35 PM
Hi guys who just answered me.....it really would have helped if i had
written it right.
Ok i will use better names to explain my problem.
I have this:
InterFaceClass
^
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
very strange serializtion exception
Posted by semedao at 10/20/2006 6:41:02 PM
Hi All,
I had working code that made custom serialization on objects that =
inherit from queue
in the inherited queue I create my own GetObjectData:
public void GetObjectData(SerializationInfo info, StreamingContext ctxt)
{
lock (this.SyncRoot)
{
IEnumerator Ienum =3D... more >>
Casting issue
Posted by Daniel at 10/20/2006 6:20:56 PM
Hey guys
i have a set up like this:
Interface IMyInt //interface
class myClass : IMyInt //myCLass realises that interface
class myOtherClass : myClass // a class that inherits from that parent
bound to the interface
class myClassA : myOtherClass //a ... more >>
How do I write a color picker (eye dropper) like Photoshop?
Posted by MrNobody at 10/20/2006 6:10:02 PM
I would really like somethign where I can get the RGB value of whatever my
mouse is currently pointing at on the screen.
How is this accomplished via C#?... more >>
Avoiding a second click on a toolstrip button
Posted by Robert Jones at 10/20/2006 6:03:48 PM
I have a toolstrip button on a windows form. If my form does not have focus,
when the user clicks on the toolstrip button nothing happens, and they have
to click a second time for the button to operate.
A System.Windows.Forms.Button also on the form does respond immediately -
even if the fo... more >>
Cross-thread GUI call
Posted by Jake Weller at 10/20/2006 5:43:40 PM
Hi everyone,
Is it safe to call a GUI control's members directly from another thread.
That is, if I launch a background thread when the user clicks a button on my
form, can I safely retrieve info from one of its controls on that thread. I
assume that behind the scenes the call will occur ba... more >>
C# using C++ dlls and lib
Posted by tshad at 10/20/2006 3:55:24 PM
I have a program in C# that needs to access a couple of C++ dlls and libs.
Can this be done?
Thanks,
Tom
... more >>
RUNNIG EXE FROM QUERY ANALYSER
Posted by at 10/20/2006 3:54:07 PM
I have a c# application. When I compile it produces exe file automatically.
I want to run it from Query analyser.
I tried
exec master.dbo.xp_cmdshell
'C:\Inetpub\DOTNETDENEME\AlisverissaatiXMLHTTP\WindowsApplication1\obj\Debug\WindowsApplication1.exe'
It returned
*The system cannot fin... more >>
Memory Cleanup
Posted by Joe at 10/20/2006 3:43:26 PM
I'm trying to track down where objects are referenced because I want to
clean up the memory when I'm done with them. I thought I found all
references but it doesn't seem that way because calling GC.Collect() doesn't
free very much.
I ran the built-in profiler and I get a warning:
"An abnor... more >>
C# command Line netsh help!
Posted by ttan at 10/20/2006 3:42:01 PM
I'm using c# to called a command line netsh ipsec static.... and the group
policy store it on local even those I used "ipsec static set store
location=domain"
my question is how do I keep the command line is in the netsh eviroment?
protected virtual void Init()
{
//... more >>
check if a port is opened
Posted by NoOne at 10/20/2006 3:19:44 PM
Hi everybody!
I'm want to check if a certain port is opened or closed.
now I'm using try-catch to connect to the port. if it fails, it meas that
the port is closed.
The problem is that this method is extremely inefficient! anyone has a
better idea on how to do this kind of verification?
... more >>
Is this possible
Posted by Jack Robertson at 10/20/2006 2:36:10 PM
Hi there,
Is it possible to write the following function as a template where
"EnumFlags" becomes template parameter T (where T will always be an
enumerator with the "FlagsAttribute"). Nothing I've tried works, including
use of a "where" clause since T must always be of type "System.Enum". T... more >>
Breaking the 2GB barrier
Posted by Frank Rizzo at 10/20/2006 2:26:15 PM
I will soon be deploying an application on Windows 2003 R2 64-bit
Standard Edition. The app will also be compiled for 64-bit. One of the
reasons is that the application will really benefit from having more
than 2GB available to it.
The
http://www.microsoft.com/windowsserver2003/evaluati... more >>
DataGridView RowsAdded RowsRemoved events problem
Posted by AleXmanFree at 10/20/2006 2:20:32 PM
Hi, I am confused with behavior of this two Events in DataGridView
control (in .net framework 2.0)
when i am adding to grid a new text it calls RowsAdded event, but
amaizing is that from time to time it also calles RowsRemoved event,
that but that must be called only in deletion case.
How can ... more >>
ProcessStartInfo - Shell - Printing
Posted by Vinny Vinn at 10/20/2006 2:11:02 PM
I am using the following C# code to print a PDF to a network printer. The
document prints in portrait mode, I would like the document to print in
Landscape mode. Is there/What is the argument that I need to supply to
accomplish this?
ProcessStartInfo startInfo = new ProcessStartInfo();
s... more >>
Active Directory User Name from Logon Name
Posted by Arthur at 10/20/2006 1:24:46 PM
Hi All,
I would like to get the name of the user given their networkID, is this
something Active Directory would be useful for?(For intranet users)
If so, can you please point me to some sample code/examples?
Thanks in advance,
Arthur
... more >>
Disabling Rows in DataGridView
Posted by shalakasan NO[at]SPAM gmail.com at 10/20/2006 12:29:54 PM
Hi,
I am new to the forms world and have a silly doubt.
I have form with a DataGridview and an "Add" button. When the user
clicks on the add button, one row gets added to the datagrid.
Now I want that when the user hits the "Add" button, then new row
should be added and all the previous rows... more >>
Identify a TreeNode within a TreeView
Posted by SteveT at 10/20/2006 11:27:01 AM
Is there any property within a TreeNode that uniquely identifies it against
all other TreeNodes with the TreeView? I'd like to "tag" several nodes
within a TreeView, and then later either add children nodes to them or delete
the nodes completely.
--
-----------
Thanks,
Steve... more >>
Get a process's child processes
Posted by Agnes at 10/20/2006 11:03:22 AM
Hi,
Is there a way to get the current process's child processes?
Or given a user, get all the processes that are running as that user using
C#?
Thank you in advance!
Agnes
... more >>
Read in XML file, output to screen...
Posted by CDZ at 10/20/2006 10:44:43 AM
This seems simple enough, Read an XML file, output it to the screen.
Yes, I know that doesn't make sense but here's why I need it:
I have a sharepoint list that I'm viewing the XML from, the URL is LONG
and ugly, it comes from a .dll file. Ex:
http://domain/site/_vti_bin/owssvr.dll?Cmd=Display... more >>
best code profiler to get?
Posted by Smokey Grindle at 10/20/2006 10:43:17 AM
What are some examples of good code profilers out there (that arn't from
red-gate)? looking for other options. thanks! This is for VB.NET and C#
profileing (VS2005)
... more >>
Trying to understand interfaces
Posted by RSH at 10/20/2006 9:32:50 AM
Hi,
I have been reading on interfaces working on samples I've run across on the
web. For the life of me I cannot seem to grasp them.
It appears to me that interfaces are simply blueprints to a class, that when
implemented, they require the implementing calss to make sure that each of
th... more >>
Encryption
Posted by George at 10/20/2006 9:23:26 AM
Hi,
I am building application that uses MS SQL 2005 as a backend that stores
sensative data (ssn, passwords....). Are there any good articles out there
that discusses the options?
Thanks
... more >>
How to get an object to inform progress via a form's status bar?
Posted by sherifffruitfly at 10/20/2006 7:45:32 AM
Hi,
I've got main() running in on a form. When a button on the form is
clicked, an object from a class I made is instantiated, and does some
stuff. I would like the stuff it does to be reflected in the form's
status bar. For example, "Now deleting file 35 of 234." if the object
was deleting a... more >>
C# 2.0 + MS Access == Error
Posted by Omer at 10/20/2006 7:24:42 AM
Hi,
I am using C# 2.0 along with MS Access database. All my queries are
working perfectly fine, but one inner join query is ocntinously
throwing. I ahve tried it both from code and running explicitly throw
query builder, but to no avail. Query is
"SELECT * FROM COMPANY_ITEM_PRICE as CIP
INN... more >>
How do I get System.Net.IrDA namespace in C# express
Posted by Dave at 10/20/2006 7:13:02 AM
I cannot seem to locate the System.Net.IrDA namespace in C# express. Where
could I get this dll?
--
L. A. Jones... more >>
What codec is required for a file?
Posted by UJ at 10/20/2006 6:52:44 AM
Can anybody tell me how to tell what codec is required for a file
programmatically. I will have users uploading a file to our server and I
want to limit the codecs we allow because the machine that is playing them
back will only have limited codecs available.
Also how can I get new codecs p... more >>
C# 2.0 + MS Access == Error
Posted by Omer at 10/20/2006 6:48:40 AM
Hi,
I am using C# 2.0 along with MS Access database. All my queries are
working perfectly fine, but one inner join query is ocntinously
throwing. I ahve tried it both from code and running explicitly throw
query builder, but to no avail. Query is
"SELECT * FROM COMPANY_ITEM_PRICE as CIP
INN... more >>
IP Address
Posted by MMA at 10/20/2006 6:31:02 AM
Hi All,
How do I get the source IP of a packet, not knowing if NAT has taken place.
Thanks In Advance
... more >>
Createing new files
Posted by marc NO[at]SPAM idev.ch at 10/20/2006 6:16:25 AM
Hi everybody,
I am looking for a way to create new files of different types (eg.
..xls, .pps, ...) the proper way. Tried to create a new, empty file with
the correct extension and use Process.Start() on this file. This works
for some filetypes / applications but not for all because not all app... more >>
Form in Form on panel/frame
Posted by Van at 10/20/2006 4:22:01 AM
Anyone know if it's possible to 'project' a (child) form onto a panel/frame
of an existing form? (and how to do it?)
i.e:
Form_A has a panel_A
Form_B (with it's content) has to be shown on panel_A (which is on Form_A),
not using MDI-style
Thanks in advanced!... more >>
form disposal
Posted by Steve at 10/20/2006 3:29:54 AM
I have a method that creates of new form each time its called do i need
to dipose of the form when it closes or doe the garbage collector take care
of it?
code
private void button1_Click(object sender, EventArgs e)
{
frmImportData ImportData = new frmImportData();
ImportDa... more >>
Copying a ToolStripMenuItem
Posted by Andrue Cope at 10/20/2006 2:57:52 AM
Hi,
I'm implementing a plug-in interface and I want to allow plug-ins to
add menu items to the host application's menu bar. I've given them a
public method that is passed a ToolStripMenuItem but it seems that you
can't /copy/ these things. You can only move them.
At present plug-in develope... more >>
System.Web.HttpException: Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server.
Posted by waihung.wee NO[at]SPAM baxglobal.com at 10/20/2006 2:11:07 AM
Hi
I got the following error in my xxx.cs file (code behind file)
According to the error message,
I should add a form tag in the file. But form tag should not appear in a code behind file
Can anyone please help.
Thanks
My Code in xxx.cs
=================
protected void Button1... more >>
Difference between ArrayList and List<object> ?
Posted by Murat Ozgur at 10/20/2006 1:31:11 AM
Hello,
Is there any difference between ArrayList and List<object> ? Which
one should I use ?
Thanks.
... more >>
Where to store string messages?
Posted by martin-g at 10/20/2006 12:38:53 AM
Hi.
Almost every application have to write out some messages to the user.
The question is how to store them. For example, while programming for
Windows in C++ we could store these messages as string resource and
load them using LoadString API function. I'm quite new to C#, and the
best thing ... more >>
class System.Runtime.InteropServices.COMException
Posted by Teng Tao at 10/20/2006 12:00:00 AM
Hi:
when I debug my project , it gives back me a error message, but I can't
fix it.
project XXXX.exe encountered unhandled exception class
System.Runtime.InteropServices.COMException with message 'class not
registered'.
So can u tell me the reason?
thx
BRs
... more >>
How can I ignore the "focus" click on a c# windows application
Posted by Robert Jones at 10/20/2006 12:00:00 AM
If my application doesn't have focus and someone clicks on the menu, the
menu click is "lost" as the form gets focus, and the user then has to click
on the menu a second time to actually activate the menu.
Is there a way for this focus click to be ignored and the menu to respond
immediately... more >>
|