all groups > c# > april 2007 > threads for friday april 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
Static events and OnEvent method.
Posted by BLUE at 4/27/2007 8:04:36 PM
I have a static class, so I've declared all variables static and also the
event.
This is the OnEvent method:
{
if (EventName != null)
{
// Invokes the delegates
EventName(this, e);
}
}
MSDN says it should be declared in this way:
protected virtual ... more >>
Form.TransparencyKey doesn't work...
Posted by VMI at 4/27/2007 6:46:33 PM
I have a Windows Form and, for its BackgroundImage, I put an all-white
bitmap (opened mspaint, and immediately saved as bmp). Then I set the
TransparencyKey property to White (I also added it in the Form_Load). For
some reason I still can't see "through" the Form. Am I doing something
wrong?... more >>
tableadapters, Stored Procedure and temp tables
Posted by Phil Barber at 4/27/2007 5:47:42 PM
I have a stored procedure that contains several temp tables, I am attempting
to assign a tableadapter to the Sp. when it goes to create the persistent
fields (in the wizard) I get Select command error Invalid object #DrY, which
happens to be the name of the first declared temp table in the SP.... more >>
Alternatives to "Guid"
Posted by Jack Brown at 4/27/2007 4:22:07 PM
Hi there,
I need to create a unique identifier for my own internal needs and am happy
to rely on "Guid.NewGuid()" to pull this off. I'd like to know if .NET
offers any competing alternative however. Perhaps there's something with a
richer set of functions for instance and it might offer pot... more >>
help out a boob? whats wrong with this? callback not firing when called recursively
Posted by David at 4/27/2007 4:21:56 PM
I can't figure out why this is not working. Compiles and runs, no errors.
You will see lots of my quick outputs just to see whats running or not
running in code below. When the program is run Console.WriteLine("after call
to BeginReceive"); does fire... its the last bit of output before just
... more >>
Only 2 Http Concurrent Connections, Server to Server, .NET
Posted by Jay Douglas at 4/27/2007 4:10:52 PM
Sorry for the cross post but I was hoping between developers and systems ppl
I can get answer to this question. I've searched; found issues similar to
mine but the solutions are not working.
My situation:
I have an ASP.net web app running on Server 2003 (Server 1) that calls a
service o... more >>
clear invokation list
Posted by Lubomir at 4/27/2007 4:08:00 PM
Hi,
I am wondering how I could clear the invokation list of delegates.
I tried the following:
//make a chain
MyDel += SomeDel;
// Clear the chain
Delegate [] tmp = MyDel.GetInvocationList();
Delegate.RemoveAll(MyDel, tmp[0]);
Nothing (not even one delegate) is removed from the list... more >>
Difficulty with System.Diagnostics.Process and MySqlDump
Posted by dwcscreenwriterextremesupreme NO[at]SPAM gmail.com at 4/27/2007 3:00:20 PM
I am trying to automate a mysqldump backup through C# and for some
reason the System.Diagnostics.Process is just not working as expected
for me.
What I want is for the following code to start a mysqldump, wait there
until it finishes, and then continue the loop.
foreach (DataRow dataRow in ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Remove the strong name attribute from an assembly
Posted by Jo at 4/27/2007 2:45:06 PM
Hi all,
I have a strong name assembly (a dll written in C#) which has Register for
COM interop set to true.
I want to remove the strong name attribute from the assembly, how to do
that?
TIA,
Jo
... more >>
Q: Is there a way to determine if program is executed under Studio IDE?
Posted by Martin Arvidsson, Visual Systems AB at 4/27/2007 2:19:16 PM
Hi!
I am creating an applications that executes crystal reports.
When developing i want the reports to be read from a certain folder and when
the program is not executed i want to use the Application.StartupPath.
Is there any chans this can be done?
Regards
Martin
... more >>
ListBox MultiSimple and event handling
Posted by Joachim at 4/27/2007 2:08:01 PM
I have tried to use a ListBox with SelectionMode set to MultiSimple. I have
also tried quite a lot of the event handlers, but no events seem to be
triggered. Why aren't the events triggered?... more >>
Event Handler help
Posted by kevinforbes NO[at]SPAM gmail.com at 4/27/2007 1:48:47 PM
Hi All,
I'm a little rusty on my C# so any help would be much appreciated.
..net 2.0, C#, using a COM object with events
I have a COM object (built in C++) that throws various telephony
events with a signature as follows:
o.evCallOriginatedEvent += new
M_COMLib._ImObjEvents_evCallOrigi... more >>
Remote Desktop (Not trying to reinvent the Wheel)
Posted by freddy at 4/27/2007 12:34:00 PM
I would like to learn how to build a remote app like VNC, or Dameware but a
very simple one... more >>
How would you do this, what control?
Posted by Shawn Ferguson at 4/27/2007 11:36:21 AM
SSdtIG5ldyB0byBBU1AuTkVUIGFuZCBDU2hhcnAsIEknbSBtYWtpbmcgdGhlIFNMT1cgdHJhbnNp
dGlvbiBmcm9tIGNsYXNzaWMgQVNQLiAgSSBhbSB0cnVseSBhbWF6ZWQgYnkgdGhlIHJvYnVzdG5l
c3Mgb2YgdGhlIG5ldyBlbnZpcm9ubWVudC4gIEhvd2V2ZXIsIEkgcmFuIGludG8gYSBzbWFsbCBw
cm9ibGVtLiAgQmVmb3JlIGluIEFTUCwgSSB3b3VsZCBjcmVhdGUgYSBsb29wIGJlbG... more >>
On Adobe's Flash & Flex in ASP.NET
Posted by ASP.NET explorer at 4/27/2007 11:30:58 AM
I have been asked to create some simple animation using Adobe Flash player
in ASP.NET(C#) web application.
While I am fairly well versed with ASP.NET C#, I absolutely have NO IDEA
about how to say "Hello World" in a Flash enabled web page rendered via
ASP.NET.
Can any one let me get star... more >>
static member method
Posted by Lubomir at 4/27/2007 10:20:01 AM
Hi,
I have the following class:
class MyClass
{
public static void SomeMethod(string str)
{
string local = "AAA";
string test = local + str;
.....
}
}
This public static method can be used by multiple threads. Is it needed to
lock the local variable test, or ... more >>
can't modify DataGridView in OnLoad() event
Posted by sklett at 4/27/2007 9:37:04 AM
I've got a strange situation here. I have a databound DataGridView that
also has un-bound columns. When the view loads, I want to update the values
of the unbound columns. If I attempt to modify the unbound column's cells
in the OnLoad() handler the results are very strange. If I add a but... more >>
connection event
Posted by warbornster NO[at]SPAM gmail.com at 4/27/2007 9:12:15 AM
is there some kind of an event that starts when I establish a
connection to internet?
... more >>
Challenge: array conversion in 1 line
Posted by Michael Bray at 4/27/2007 7:35:48 AM
I'm trying to figure out what is the easiest way in C# 2.0 to convert an
object array (object[], int[], anything[]) to a string array (string[] or
List<string>) in one line of code. At first I thought I could do something
like the following:
object[] v; // initialized with some values
... more >>
Softwares to create an activeX coded in C#
Posted by Fab at 4/27/2007 7:29:18 AM
Hi,
I have never created an activeX. I have to code one in C#, which tools/
softwares do I need ?
Thanks,
Fab
... more >>
New to Reflection.Emit and need help
Posted by magounc NO[at]SPAM amerinetcentral.org at 4/27/2007 7:13:55 AM
I am new to creating dynamic methods and I find that I have need to do
so. I have read through some IL and emit examples and have gotten some
simple programs to work. However, I cannot seem to use the opcode Call
correctly. This example gives me an "CLR detectd and invalid program"
exception at ... more >>
How to capture Item's event through an object of its collection in a external class?
Posted by planet.creativa NO[at]SPAM gmail.com at 4/27/2007 6:49:42 AM
There are two classes
1) Key - contains some public variables, one method "Reset" and one
event "valuesReset" which is raised by Reset method.
2) Keys - this class is collection of objects of class 'Key' and it is
inherited with ReadOnlyCollection(Of key).
I'm pasting the code here
Class... more >>
problems creating lots of directories
Posted by Charlie Bear at 4/27/2007 6:36:44 AM
i'm really stuck with this one can anyone help!
i have a website that uses c#. it creates a series of directories and
files from an xml source. when the xml changes, the directory that the
change applies to is deleted and recreated. All the children for that
directory are also re created (as t... more >>
Orcas Express betas out
Posted by DeveloperX at 4/27/2007 4:01:35 AM
I thought this was worth reposting as I saw it over on the ASP group.
The Orcas framework 3.5 version of the Express editions are out.
Apparently they run side by side with the 2 framework versions.
http://msdn.microsoft.com/vstudio/express/future/downloads/default.aspx
I can't find any syst... more >>
Front most c# application
Posted by PhilBray at 4/27/2007 2:25:53 AM
Hello,
I am creating an application that is triggered by another 3rd party
app when they create a file in a directory. I use the
filesystemwatcher class to monitor for this file creation event and
then trigger a windows form for my application.
The problem I am having is that when my app is... more >>
random number generator help
Posted by Mike Langworthy at 4/27/2007 1:26:21 AM
i can not seem to get this code to work. someone please help
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int returnValue = RandomNumber(5, 20);
... more >>
Automation Error: :"Object reference not set to an instance of an
Posted by Badis at 4/27/2007 1:20:01 AM
I'm doing a server side automation(I know it's bad but..) and its working
fine locally and when accessing it from a remote machine using web browser is
was giving me this error"Retrieving the COM class factory for component with
CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the ... more >>
how to avoid inlining?
Posted by Lloyd Dupont at 4/27/2007 12:00:00 AM
I have some code which looks like that:
[DefaultValue(CornerStyle.Rounded)]
public CornerStyle RectCornerMode
{
get { return this["RectCornerMode"].GetValue<CornerStyle>(); }
set { this["RectCornerMode"].SetValue<CornerStyle>(value); }
}
in this[string] I get the attribute... more >>
logic comparator Question
Posted by Mike Langworthy at 4/27/2007 12:00:00 AM
Hello all.
I am a total newb and am wondering how you test multiple questions in one if
statement without nesting them
for example, how do i test the following
is Variable greater than ten and not less than 5
... more >>
[DESPERATE] Turn on/off Bluetooth, WiFi and an RFID tag reader.
Posted by BLUE at 4/27/2007 12:00:00 AM
Psion WorkAbout Pro with Windows CE .NET 4.2
Dealer gave me PowerAPIOn.exe and PowerAPIOff.exe to turn on/off tag reader,
but I want to do it programmatically and do the same with WiFi and Bluetooth
as I can do from Control Panel ("Network and dialup connections" and
"Power").
Googling I've... more >>
Read Excel data in ASP.NET Error
Posted by Johnny at 4/27/2007 12:00:00 AM
Hi all:
I am trying to write some code to read an Excel spreadsheet from an ASP.NET
application. For some reason no fields that have a number in them are read,
while text data is read just fine.
I am using a connection string:
Conn1 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=";
Conn... more >>
Can not break out of While loop.
Posted by Mike Langworthy at 4/27/2007 12:00:00 AM
I am having a problem Breaking out of the while loop, it never terminates.
any suggestions
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Random r... more >>
Creating a very simple report: Crystal Report and SetParameterValue ?
Posted by Rodo at 4/27/2007 12:00:00 AM
Hi all,
I'm trying to generate a simple crystal report without a database. Several
people mention the use of a dataset. Someone mention in a msdn forum that I
could use the SetParameterValue to easily fill the fields in a simple
report. So. I looked at datasets and I think I'll try this wa... more >>
|