|
hmmm,Can I set this property programmically too?
Mazy
No sig. available now.
|
|
|
|
|
Sorry about the delay Mazy...
Yes you can do anything in code that can be done in the config files it just isn't always that obvious in the docs... to set up the Soap/tcp you would use something like...
ChannelServices.RegisterChannel(new TcpChannel(null, new SoapClientFormatterSinkProvider(), null));
HTH
Shaun
-----------------------------------------------------------------------
Shaun Austin: .NET Specialist. Spreading the word of .NET to the world... well the UK... well my tiny corner of it!!
|
|
|
|
|
Hi all,
All I want to do is click a button and keep it pressed, but there doesn't seem to be a btnButton.Pressed (or anything like) kinda value.
If anyone knows the solution, I'd be very grateful,
Cheers
Preacher
|
|
|
|
|
hi !
i hope thats the way the button should look like:
cmdButton.FlatStyle = FlatStyle.Flat;
andi
|
|
|
|
|
I know in MFC/C++ there's a way to simulate that by using a checkbox and making it look like a button. Let me do a quick check...
Yep, it seems like you can do the same in .NET. Add a checkbox and set the Appearance property to Button:
this.checkBox.Appearance = System.Windows.Forms.Appearance.Button;
Regards,
Alvaro
Hey! It compiles! Ship it.
|
|
|
|
|
When BeginInvoke() is called on a delegate with multiple event handlers registered, do all the event handlers get called synchronously in a single thread, or do they all get their own thread? Or can only one event handler be called for an asynchronous delegate?
I can't find this in the docs.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ahh, asking a question in the C# forum! You know, I really ought to do a test on this one, but so far, it seems that they are each called on separate threads. But I know for sure that they all get called.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Thanks Justin
I've managed to get asynchronous delegates working in C++, but I've had to use the inline assembler . It works nicely though
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ryan Binns wrote:
Thanks Justin
Ryan Binns wrote:
I've managed to get asynchronous delegates working in C++
Congrats!
Ryan Binns wrote:
but I've had to use the inline assembler
That's what it's good for - doing things that either you can't do very well otherwise, or that are too slow otherwise.
BTW, there's now a GotDotNet Workspace[^] for Fluid, and I've got some ASP.NET hosting.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
jdunlap wrote:
That's what it's good for - doing things that either you can't do very well otherwise, or that are too slow otherwise.
Or doing things that are impossible - stack manipulation
jdunlap wrote:
there's now a GotDotNet Workspace[^] for Fluid
I've just applied for membership, so you should get something soon...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ryan Binns wrote:
I've just applied for membership, so you should get something soon...
...and you've just gotten membership!
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
I have written .NET remoting project and am looking for a way to know when each and every instance of a SingleCall/Singleton object is created and destroyed.
Does anyone know how to do this?
|
|
|
|
|
I don't know much about remoting but the idea of a singelton is that there will only be one instance of it during the lifetime of the application. This is usually accomplished by making the varaible a static. Note that there will really only ever be just 1 instance of your Singleton if that is the case.
One approach is to have a static tracker that is incremented in the constructor of your Singleton class and decremented in the destructor.
Ex:
class SingleFella
{
private static int tracker = 0;
private static SingleFella m_instance = null;
public static SingleFella GetInstance()
{
if( m_instance == null )
m_instance = new SingleFella();
return m_instance;
}
public static void DestroyInstance()
{
m_instance = null;
}
private SingleFella()
{
tracker++;
System.Console.WriteLine("Tracker (Constructor)= " + tracker);
}
~SingleFella()
{
tracker--;
m_instance = null;
System.Console.WriteLine("Tracker (Destructor)= " + tracker);
}
public static void Main(String [] args)
{
SingleFella instance1 = SingleFella.GetInstance();
SingleFella instance2 = SingleFella.GetInstance();
SingleFella instance3 = SingleFella.GetInstance();
SingleFella instance4 = SingleFella.GetInstance();
SingleFella.DestroyInstance();
}
}
Give that sample a run and move around the call to DestroyInstance() and you will see the effect.
I'm not quite sure if this is what you are looking for but this is how the Singleton Design Pattern works.
..:: Keno ::..
|
|
|
|
|
Hi,
I need to make a data grid column read only based on the
value chosen in another column.
I have custom table style for the grid, the column styles
are of type DataGridTextBoxcolumn. I made the
DataGridTextBoxColumn for the particular column read-only
at runtime but that does not work.
I would appreciate any help.
Thanks
|
|
|
|
|
DataGridTextBoxColumn dgt = new DataGridTextBoxColumn();
dgt.ReadOnly = true;
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Thanks it worked!
Earlier I intended to do the same but mistakenly instead of setting the readonly property of the textboxColumn I was setting the readonly property of the textbox in the textboxColumn.
Suhas
|
|
|
|
|
LOL
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
As usual. Create an inherited DataGridTextBoxColumn and override Edit method to call base.Edit(...) only if Your another column has appropriate values.
Hi,
AW
|
|
|
|
|
Hiya I want to use xp style controls and have been reading about using manifest files to do this.
But I can't get it to work for me. My project is called "form". ( a test!! )
These are the steps I have taken so far:
1. Opened new file in notepad and added (removed arrows for display. )
?xml version="1.0" standalone="yes"?
assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"
description>form/form
dependency
dependentAssembly
assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
publicKeyToken="6595b64144ccf1df"
language="*"
processorArchitecture="X86" /
/dependentAssembly
/dependency
/assembly
2. Renamed this .txt file to form.exe.manifest
3. Copied the file in my project folder.
4. Set the controls FlatStyle to System.
But it still doesn't work. What am I doing wrong??
(version visual c# 1.0)
thanks
grahamoj.
|
|
|
|
|
You may have put it in you "project" folder... But did you put it in your "Debug" folder???
/\ |_ E X E GG
|
|
|
|
|
Is there any wayout to convert HTML to PDF?
clr.
|
|
|
|
|
iSEDQuickPDF.com 65.00 for the control
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
|
i have a new form inheriting from another form. the new form has a datagrid in it.
i'm creating a table style so my datagrid cells will fill the entire width, but my datagrid.width is not working correctly. it gives out a width entirely too small.
for example:
. . . . . . . .
DataGridTextBoxColumn ProductID = new DataGridTextBoxColumn();
ProductID.HeaderText = "Product";
ProductID.MappingName = "ProductID";
ProductID.Width = 100;
DataGridTextBoxColumn Comments = new DataGridTextBoxColumn();
Comments.HeaderText = "Comments";
Comments.MappingName = "Comments";
Comments.Width = dg.width - 100;
. . . . . . . .
the Comments column is very small. i've used this in other applications, but this one is acting funny. i'm wondering if it might have to do with the inheritance. ( note, the datagrid is not being inherited )
|
|
|
|
|
well you have to account for row header size - a few pixels, plus it rounds. jusy play with it
Column.Width = dg.width - dg.rowheaderwidth -3;
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|