|
I have a more or less simple question on WPF (to be precise, on XAML)
I want to rotate a textbox, but when I add a RotationTransformer with an angle of 90°, the box is rotated - but not on the same position anymore!
Is there some method to rotate it in place arround the control's center instead of the upper-left corner?
Thanks in advance!
|
|
|
|
|
Check this[^] out.
Basically, you need to add the following to your textbox definition:
RenderTransformOrigin="0.5,0.5"
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
I want a message box with Yes and No option asp.net 1.0 web application
how can i do this
|
|
|
|
|
swami samarth wrote: I want a message box with Yes and No option asp.net 1.0 web application
ASP.NET 1.0? The latest version is 3.5. You should really consider upgrading.
You could do this with the Javascript confirm[^] method.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
You will have to do it using Javascript. Try following code in your code behind on the button where you want this box.
cmdSubmit.Attributes.Add("onclick", "return window.confirm('Are you sure!!!');");
Regards
Nav
|
|
|
|
|
Hi all,
Please advise me some certification ..in .net .. i am new in .net but have some exposoure in VC++ and C# with sql server...
vikas da
|
|
|
|
|
tasumisra wrote: Please advise me some certification ..in .net .. i am new in .net but have some exposoure in VC++ and C# with sql server...
C# is .NET...
You should only consider working towards any .NET certification if you really know your stuff. If you are new to .NET, you should spend a couple of years working with it and knowing the framework inside out. Then you will be ready to obtain the certification.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
I'd like to monitor the behaviour of a complex UI Framework (with Plugins etc.)
Is it somehow possible for a .NET Thread (or by means of win32 API) to monitor when
1) - other Threads
2) - or new windows message queues (for user interfaces)
3) - or simply new window handles are created within the process
within the same process are started/created without polling e.g. the
System.Diagnostics.Process.Threads Property
i.e. detecting these situations 1-3 "event like" from another thread.
Thanks
Martin
|
|
|
|
|
|
hello,I have this exception when i run my host service:
"HTTP was unable to enter the URL http:// +: 2605/SolutionWCF/WCFLibrarie. The process does not have access rights to that namespace"
host code:
namespace Host
{
class Program
{
static void Main(string[] args)
{
Uri baseAdresse = new Uri("http://localhost:2605/SolutionWCF/WCFLibrarie");
ServiceHost monHost = new System.ServiceModel.ServiceHost(typeof(WCFLibrarie.Class1),baseAdresse);
try
{
monHost.AddServiceEndpoint(typeof(monPremierWCF.interfaceWCF), new WSHttpBinding(), "WCFLibrarie.Class1");
ServiceMetadataBehavior smb = new ServiceMetadataBehavior();
smb.HttpGetEnabled = true;
monHost.Description.Behaviors.Add(smb);
monHost.Open();
Console.WriteLine("les services sont maintenant disponibles.............. ");
Console.WriteLine("Cliquer sur <ENTRER> pour fermer les services!!!");
Console.WriteLine();
Console.ReadLine();
monHost.Close();
}
catch (CommunicationException ex)
{
Console.WriteLine("Une Exception est generée{0}", ex.Message);
monHost.Abort();
}
}
}
}
Contract:
amespace monPremierWCF
{
[System.ServiceModel.ServiceContract]
public interface interfaceWCF
{
[System.ServiceModel.OperationContractAttribute]
string majiscule(string chaine);
[System.ServiceModel.OperationContractAttribute]
string mainiscule(string chaine);
}
}
service:
namespace WCFLibrarie
{
public class Class1 : monPremierWCF.interfaceWCF
{
#region interfaceWCF Members
string monPremierWCF.interfaceWCF.majiscule(string chaine)
{
return string.Format("hello {0}", "hicham").ToUpper();
}
string monPremierWCF.interfaceWCF.mainiscule(string chaine)
{
return string.Format("hello {0}", "hicham").ToLower();
}
#endregion
}
}
my App turn on :
Win vista ultimate
Thanks.
sdfrt
|
|
|
|
|
|
Hello,
I'm currently looking into obfuscation and protection schemes for .Net based projects and stumbled on something called .Net Reactor today (http://www.eziriz.com/[^]) and I would like your thoughts about it, especially if you have some experience with it.
Also, if someone with experience in this field can spare some time writing a few lines with do's and dont's regarding .Net code protection I would be grateful.
Thanks in advance,
|
|
|
|
|
Do protect your application if there really is some IP there to protect.
Don't bother if there isn't. Generally this is the case - any cool idea you have is going to be in what the app does, not how its coded...
We don't obfuscate any of our products yet - theres just no point. If someone wants to duplicate your program then they will, from scratch. They aren't going to risk looking at your code, because that will contaminate their devs. If its that good an idea they'll do it clean room, and theres nothing your obfuscator can do
Staying ahead of the game is a better strategy
|
|
|
|
|
Thanks for the input, it's made me think again about using obfuscation and such things.
That said, is it possible to protect (or at least make it harder) against circumventing a time restriction or similar sharware-related limitations in a .Net application? I'd have to say 'no', but please prove me wrong
Thanks,
|
|
|
|
|
Well an obfuscator would certainly help there. That said you have to ask yourself how many users are likely to try to edit the IL in your assemblies to bypass a trial period.
If their time is that worthless to them, well they probably can't afford to pay anyway.
We don't bother with any serious protection on our software for that reason. Our main product we give out free for non-commercial use - a few businesses have used the free one on the side, but got a license after they shipped (usually in their project implementation review... "Is there anything we forgot?"... oh software licenses!).
|
|
|
|
|
Thanks for the input. Have a good weekend.
|
|
|
|
|
No worries mate, you too.
|
|
|
|
|
I'm working on a WCF service project that creates a listener thread for TCP messages, and everything appears to work just fine except for shutting down the service. Here's a simple example that illustrates the problem:
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single,ConcurrencyMode=ConcurrencyMode.Multiple)]
public class Service1 : IService1, IDisposable
{
private void ThreadFn()
{
bool b = true;
while(b)
{
//do something
Thread.Sleep(1000);
}
}
private Thread m_Thread;
public Service1()
{
m_Thread = new Thread(new ThreadStart(this.ThreadFn));
m_Thread.Start();
}
public void Dispose()
{
m_Thread.Abort();
}
~Service1()
{
Dispose();
}
}
As you can see, this is a singleton service that creates a thread when the host starts, and kills the thread when the service is disposed. Unfortunately, there does not seem to be any way to reliably detect when a service is unloaded by the host. I've tried binding to the AppDomain.Unload and AppDomain.HostProcessExit events, however if Visual Studio hosts the service, these events are never fired. I've also tried creating a custom IInstanceProvider, but this only tells me when a method invocation is performed, and even then only when the InstanceContextMode is changed from Single. I want to be able to move the service into different hosting frameworks, so I'd like a solution that is an generic as possible. Does anyone have any suggestions?
Thanks,
Chris
|
|
|
|
|
I would like to compile my vb.net 2005 solution using MSBuild. I am running the command on the solution (.sln) file and it runs without errors, unfortunately it doesn't seem to be compiling the setup/deployment projects which are part of the solution, one is a merge module whilst the other is a windows deployment project. What can i do to make msbuild work for me?
Your assistance is greatly appreciated.
|
|
|
|
|
MSBuild doesn't know how to build VS deployment projects. Upgrading to VS2008 won't help you either. The only option is to run VS through the command line with the appropriate switches. In your command prompt (assuming VS is in your path), run "devenv.exe /?" for the list of switches.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
I feel I am going in circles with this one. I have seen various posts on
this matter but I can not get them to work. I have a 2.0 client app that
needs to access a web service secured behind an apache server that requires
client certificates. I have tried
webService.ClientCertificates.Add(new X509Certificate("c:\\temp\\xxx.cer",
"password"));
with various variations of certificates, formats, etc. I always get "The
request was aborted: Could not create SSL/TLS secure channel." But...if I
import the certificate using Internet Explorer everythings works just fine.
I just can't get it to work by adding the client certificates at runtime.
Whats the trick to get it to work without importing the certificate into a
store?
|
|
|
|
|
JoeJoe101 wrote: Whats the trick to get it to work without importing the certificate into a
store?
Check this out[^]
led mike
|
|
|
|
|
|
It's been a long time, but it's probably best to follow Microsoft's step-by-step[^] guide.
This[^] is also useful.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|