|
|
no i dont know
no i dont know,
|
|
|
|
|
The fact that it doesn't install a turing test that runs via global keyboard hooks and disables the net connection of anyone who fails.
|
|
|
|
|
I need to implement a xaml writer that can save event handler info into xaml file. However, after I went through the Markup Object, I cannot find the info.
For example, I have following codes:
Window w1 = new Window();<br />
DockPanel p1 = new DockPanel();<br />
<br />
w1.Title = "Mock Window";<br />
w1.Content = p1;<br />
Button b1 = new Button();<br />
b1.Content = "Test Button";<br />
b1.Height = 50;<br />
b1.Click += new RoutedEventHandler(OnMockButtonClick);<br />
p1.Children.Add(b1);
When I called XamlWriter.Save(w1), I want the following xaml string output:
<Window Title="Mock Window"><DockPanel><Button Height="50" Click="OnMockButtonClick">Test Button</Button></DockPanel></Window>
|
|
|
|
|
hi dear
can u please tell me that.. what will happen if i am going to launch / deploy an application on .net framework2.0 which is developed in .net framework 1.0 or 1.1 ???
please guide me in this matter..
regards
vishal
Thanks & Regards
Vishal Sharma
vishalsharma556@yahoo.co.in
|
|
|
|
|
As long as the 1.1 framework is installed on the server, you're fine. Your other option is to port it over to 2005 using VS.
|
|
|
|
|
It's called Side-by-Side Execution. You can read more about the process and how the runtime version is determined here[^]. You can even setup an app.config file to target running under a specific version of the .NET Framework.
But, running your 1.x app under 2.0 does have some pitfall - Microsoft .NET Framework 1.1 and 2.0 Compatibility[^]
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I'm currently writting my first .NET control by deriving a ListView control under VC++.NET.
I have an issue with a property of type Image^.
As you can see in my code below, nothing is special :
#pragma region public Property : ImageSortAscendant
// Allow user to select the image which will be displayed for column sorted ascendantly
[Description("Set image (8x8) to represent ascending sorting which will appear onto sorted column header")]
[CategoryAttribute("Appearance")]
[LocalizableAttribute (true)]
virtual property Image^ ImageSortAscendant
{
Image^ get()
{
return m_ImageSortA;
}
void set(System::Drawing::Image^ value)
{
m_ImageSortA = value;
}
}
#pragma endregion
However, after assigning an image to this property, i'm not able to clear the property value, in case of user press DELETE or BACKSPACE key while this property has the focus (in property editor).
basically i would like to have the same behavior than for BackgroundImage for Form control.
thanks a lot for your help.
Al.
|
|
|
|
|
Hi all,
at least, after 1 week of research i found where was the problem....
i should declared my defaultvalue as follow :
System::ComponentModel::DefaultValueAttribute(static_cast <system::string^> (nullptr))]
and not as i tried as Image^.
Like that it allow DELETE and BACKSPACE keys to be used to clear the property field.
HTH other in case of same issue..
Alain
|
|
|
|
|
I have a deployment project and when the installer finishes installing I'd like to execute an executable passing a parameter. How would I do this? Thanks for everyones assistance.
|
|
|
|
|
Create a custom action and in the committed event use System.Process.Start to launch the executable.
See http://msdn2.microsoft.com/en-us/library/d9k65z2d.aspx[^] for details on creating custom actions.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
|
|
|
|
|
Hello,
I have an PowerPoint 2003 Add-In developed in C#.
It is possible to port it on Mac? (MS PowerPoint 2004 for Mac)
If no - what kind of alternatives would you recommend?
Thanks
|
|
|
|
|
I would like to develop a web service to be invoked from an InfoPath form which will create a Blog posting in Sharepoint (V3). Blog would already exist, need to create post values from Infopath XML form values. I noticed there is a long list of Sharepoint objects that start with SP*. Would appreciate any help to get started. I am a rookie developer in vb.net (web services) but have quite a bit of InfoPath and Sharepoint experience. Thanks.
D. Gibson
|
|
|
|
|
hi All
Please Explain me what is the Factory Pattern in .net ?
-- modified at 7:50 Monday 30th October, 2006
Pavan Pareta
|
|
|
|
|
Pavan_pareta wrote: Please Explain me what is the Factory Rule in .net ?
I've never heard of the "Factory Rule". Did you mean "Factory Pattern"?
|
|
|
|
|
yes Colin Angus Mackay
Yes I mean Factory Pattern... please explain me ?
why we using whats the advantage of its...?
please hepl me ..
-- modified at 7:36 Monday 30th October, 2006
Pavan Pareta
|
|
|
|
|
a good article on Factory Pattern
http://www.ondotnet.com/pub/a/dotnet/2003/08/11/factorypattern.html
|
|
|
|
|
|
Hello ,
can we call VC++.net function in VB.net or vice Verse. If yes then what is the methodology to do so?
Thanks for the support
Kind Regards
Sandy
|
|
|
|
|
Create a class library project in one or the other. Then in the client app. add a reference to it and an import or using statement.
Kevin
|
|
|
|
|
Hi Kevin,
Thank you very much, i think you are right, i can do that. But what if there is a project with a form in VB.net. can i make this form or module as a part of my VC++. net file.
To be very clear, i have one module with a form in VB.net. i want this form to open when i click a button in VC++.net MDI dialog box. Is it possible? i guess not??
What about porting that form into my VC++. net MDI?
Kindly help me, i hope my problem is stated well. if not kindly ask me to be clear.
Thank you.
Kind Regards
Sandy
|
|
|
|
|
Hy Sandy,
I faced a similar problem, and find the solution.
In my case, I created a C++ .NET Class Library with Form class and ported to C+++ Builder as an MDI Child.
I absolutly sure, your problem can be solved too.
Some suggestion:
-Create Class library with Form class
-Write a public Interface with CreateForm() method
-Write a public class which expose the Interface; in the CreateForm() method create a Form and call the form Show() method;
-Create a Type Library and register it with regasm.exe
-Add the assembly to the GAC with gacutil.exe
In the Other DEV Environment:
-import type library
-create an instance of the public class
-Call the CreateForm() method and you'll see a form
To resolve the MDI child problem
-pass the parent handle to the childe + Call SetParent() WinAPI fuction
-set the child window style to MDIShilde with the SetWindowLong() WinAPI fuction
This guideline is bullshit, I know...
You probably dont understand, what I mean... but I tryed.
I guess, there is a simpler solution to your problem, because you stay in the .NET Framework...
If I have some free time, I'll write a tutorial to explain everything...
Till then, don't give up...
-- modified at 5:13 Friday 27th October, 2006
Useful resources:
MSDN .Net Interop articles
Exposing .NET Components to COM By Nick Parker.
http://www.codeproject.com/dotnet/nettocom.asp
Understanding Classic COM Interoperability With .NET Applications By Aravind C.
http://www.codeproject.com/dotnet/cominterop.asp
.NET - COM Interoperability By KRISHNA PRASAD.N.
http://www.codeproject.com/dotnet/COM_DOTNET_INTEROP.asp
|
|
|
|
|
Hi,
Thanks a lot, i think this will help me a lot. I will just try this concept of yours. I am not totally clear about this concept. i may be needing your total support inorder to carry on. i will be in touch with you. hope you dont mind?
Thanks & Regards
Sandy
|
|
|
|
|
Step by step:
In VC++:
1. File > New Project > VC++ > CLR > Class Library
2. Right Click on the project > Add > Class
Select Windows Form
3. Close Solution
In VB:
1. File > New Project > VB > Windows > Windows Application
2. Switch the Form IsMdiContainer property to true
3. Add a MenuStrip to the Form
4. Insert 2 menuitem:
-New VC++ Form
-Window
5. Select the MenuStrip
Set the MdiWindowListItem to WindowToolStripMenuItem
6. In the Solution Explorer right click on the project and Add Referece
Go to the Browse tab and find the VC++ dll
7. In 'New VC++ Form' menuitem click event:
Dim CppForm As Object
CppForm = New VCpp_Form.Form1
CppForm.MdiParent = Me
CppForm.Show()
Other notes:
-It works vice versa. (VB -> VC++)
-It is also possible to port the .NET window to other Dev. Environment,
but if you leave the .NET Framework it is more complicated than the specific example.
Such as I embedded the VC++ Form to the C++ Builder 6, but I'm absolutely sure it works with MFC, VB 6, etc.
|
|
|
|
|
Hi All
I have written an xml web service it works fine. My install program also works fine. The problem is that when I try and "edit" the web.config file I do not have the correct security settings on the web.config file. If I change them manually it the program works fine. Now the question. How do I go about setting security settings programmatically in .Net 2
Thanx
|
|
|
|