|
What kind of Event(s) is thrown, when a ToolStrip-Control is docked to a ToolStripContainer - Panel after a Drag and Drop Operation?
Need this to re-arange the ToolStrip-Items when the Docking-Status changes.
I had a look at this MSDN Walkthrough - especially Point 17. Sadly, this article does not discuss the Events to handle.
Thanks in advance,
Niels
|
|
|
|
|
Ok, found it out myself:
The ToolStrip.BeginDrag and ToolStrip.EndDrag - Events should help
|
|
|
|
|
I have this class this semester and have to do a research paper on setting up a company from the request for information to the training manual and user evaluation. I am sure most of you know what all this means. This is my last class before graduation and I just don't get this. I am 50 years old and took computers to help people with their computers in my area from my home or theirs. I have been sick and can't work full time anymore. Can anyone guide me to where I can find a sample research paper to help guide me. I am a visual person and just reading the chapters is not helping me I have to see it and I just don't know where to look. I have my own company to do, just need to see another one for the processes. It does not have to be over done she realizes this is our first. She is looking for quality more than quanity, but the more items we use the better. Thank you in advance for any help you can provide.
Have a great day!
Candy
|
|
|
|
|
I want to be able to join multiple tables in a datagrid, like a join in SQL. For example, I want to take the values in an employee and status table, join them into a view and use that view as the datasource in a datagridview.
Want:
EMP Name Status
------------------------
John Doe ACTIVE
Jane Doe INACTIVE
What I'm Getting:
EMP Name Status
------------------------
John Doe 1 (foreign key)
Jane Doe 2 (foreign key)
|
|
|
|
|
I want to create a "report" user control, which acts similar to a DataGridView. The "ReportView" class consists of a datasource, datamember and a collection of columns. The issue is that the columns need to reference the datamember of the "ReportView" object to be able to show a drop-down list of fields in the designer dialog box. How do I do this?
Public Class ReportViewColumn
<system.componentmodel.editor("system.windows.forms.design.datamemberfieldeditor, system.design",="" _
="" "system.drawing.design.uitypeeditor,="" system.drawing")=""> _
Public Property DataPropertyName() As String
Get
Return gstrDataField
End Get
Set(ByVal value As String)
gstrDataField = value
End Set
End Property
End Class
<designerattribute(gettype(reportviewdesigner))> _
Public Class ReportView
Inherits System.Windows.Forms.Control
<editor(gettype(buttoncollectioneditor), gettype(uitypeeditor))=""> _
<designerserializationvisibility(designerserializationvisibility.content)> _
Public Property Columns() As ReportViewColumnCollection
Get
Return gobjColumns
End Get
Set(ByVal value As ReportViewColumnCollection)
gobjColumns = value
End Set
End Property
<typeconverter("system.windows.forms.design.datasourceconverter, system.design")=""> _
<category("data")> _
<defaultvalue(ctype(nothing, object))=""> _
Public Property DataSource() As Object
Get
Return source
End Get
Set(ByVal value As Object)
source = value
If (TypeOf source Is DataSet) And DataMember > "" Then
'Call bind()
End If
End Set
End Property
<category("data"), bindable(false)=""> _
<editor("system.windows.forms.design.datamemberlisteditor, system.design",="" "system.drawing.design.uitypeeditor,="" system.drawing")=""> _
<refreshproperties(refreshproperties.all)> _
<defaultvalue("")> _
Public Property DataMember() As String
Get
Return data
End Get
Set(ByVal value As String)
data = value
If (TypeOf source Is DataSet) And DataMember > "" Then
'Call bind()
End If
End Set
End Property
#End Region
End Class
|
|
|
|
|
im curious and unsure (and wading through a fog of nondeterministic destruction)...
if one was to obtain a System.Runtime.InteropServices.GCHandle for each reference field of a class, and that class becomes eligible for finalization (implying that all its internal referenced objects also became eligible), would that class be finalized before any of its references (for sake of argument, the GCHandles were stored say, in an array in another reference type and both the array and its host object were also GCHandle'd in the array) ?
would it be safe to assume all reference fields are still accessible at finalization time, allowing a controlled cleanup ?
how might this be affected when the AppDomain unloads or CLR exits ?
would the System.Environment.HasShutdownStarted property be of any use/relevance ?
I worship his divine shadow. ^
|
|
|
|
|
The first question would be, why would you want to prevent the garbage collection from running?
mikewinny wrote: would that class be finalized before any of its references
I don't think so. The runtime doesn't guarantee when the objects will be collected and it doesn't provide any guarantees on the order the collection will occur.
mikewinny wrote: would it be safe to assume all reference fields are still accessible at finalization time
If you are writing your own finalizer, you shouldn't be accessing other finalizable fields. Again, since the runtime doesn't guarantee any ordering, I would say that it isn't safe to make that assumption.
The Environment.HasShutdownStarted property will tell you if your finalizer has started to run, but not much more than that. It is also only available in .NET 2.0 and later.
Check out the latest updates to my article Implementing IDisposable and the Dispose Pattern Properly[^]. Hopefully, it will answer these questions in a little more detail.
You may also find some additional answers here:
SafeHandle and Constrained Execution Regions[^]
|
|
|
|
|
Hello All,
Can I install Visual Studio 2005 any edition on Windows XP Home edition. Please help me in this.
Thank you all in advance,
Nagaraju.
Naga Raju Epuri
+91 9885758884
|
|
|
|
|
VS 2005 Standard Edition works fine on XP Home Edition. Not sure about other VS 2005 editions.
Best,
Jun
|
|
|
|
|
|
Using VS 2005 is there a standard way to save user settings (ie form sizes, locations)? If there is could someone point me in the right direction. I am having no luck with google.
Thanks in advance.
Mike Lasseter
|
|
|
|
|
Not sure about what you wanted. The property page from VS 2005 can help at design time. Saving the UI at run-time requires significant thinking and coding. But there should be more information on the web including this site for you to check.
Best,
Jun
|
|
|
|
|
Tools\Import and Export Settings
|
|
|
|
|
I want to make installer of my project. I want to integrate msxml6.dll with my project.
as far as i know there are two ways in which i can instanciate msxml6.dll object.
1. Put it in system32 so it can be retrieved by application at run time : But this will break if someone else updates it or repairs OS.
2. Put it in my program directory, make a registry entry in my namespace and While instanciating [CreateInstance()] I supply exact path (from registry) of DLL to be instanciated.
Now, I am not sure about how second option to be coded.
Is there any other approach ?
I went through tutorial given by msdn for the same.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/303f788a-b58a-497c-9e15-ab85294cd882.asp
The have merge module for msxml4. I am not sure how to do it for msxml6. Please help.
|
|
|
|
|
how can I find diagram that show relation beetwen database classes in .net (for example dataset,datareader,dataadapter...)
|
|
|
|
|
Hi All!
I have a app written in C# for .net 1.1 with a standard windows installer project.
It seems as if the app is installed in a two step process because if one deletes the msi package after successful install but before first start of the newly installed app, then the app wont's start!
Anyone else who have seen this behaviour before or has a guess as to whats realy happening?
Greatful for all ideas
Ulf Rosvall
|
|
|
|
|
Hi All,
I want to transfer the data form webpage to any other own application which is running in backend.How i develop this web page. which technology is good for this or any particular protocol i have to use for this. Please suggest if any idea regarding data transfer.
Thanks
Shiva Vrata Anand
shiva vrata
|
|
|
|
|
Hi All,
I want to transfer the data form webpage to any other own application which is running in backend.How i develop this web page. which technology is good for this or any particular protocol i have to use for this. Please suggest if any idea regarding data transfer.
gfds
|
|
|
|
|
I would like to know how to create a setup project, which can be upgraded (Repair Option).
Is it one of the project properties?
Thanks.
|
|
|
|
|
Upgrade and repair are different things. Repair is intended to restore files and settings that have been modified or deleted since the program was installed. It's a fundamental capability of Windows Installer. Shortcuts created by Windows Installer will invoke a repair automatically by default, if the need for a repair is detected.
There are really three sorts of upgrades for a Windows Installer package: major upgrades, minor upgrades, and patches. Visual Studio doesn't really make it easy to do either minor upgrades or patches. It's simplest to just do a major upgrade, which is effectively installing a new version, but including logic that will remove the old version first. To do this, set the RemovePreviousVersions property to True. Every time you change the package, change the Version property. Windows Installer will then automatically remove any version that has a version number lower than the package being installed. If you leave the DetectNewerInstalledVersion property set to True (the default), Windows Installer will produce an error message if you try to install an older version on a system with a newer version.
If you want old and new versions to co-exist side-by-side and be installed in any order, change the UpgradeCode when creating a new version that will sit side-by-side.
For more information get the book "The Definitive Guide to Windows Installer" by Phil Wilson (Apress, 2004). This has helped me a lot in understanding what the package is really doing.
|
|
|
|
|
I would like to thank you for your helpful explanation.
I tried all the properties and learn a lot from your detailed answer.
If it is possible, I would like to ask you more specific question, as I see that you are very professional at this area.
What I need for my project is maybe a patch or a minor upgrade:
After installing once the program, changes are done and new build is ready, and I want to install it again on the same directory, without any questions from the user (the installer). If old files are there, they should be left and if there are new files, they should be installed. It is like the repair option but with new rebuild of the program and the setup project (all the projects of the program are at the same solution including the setup project).
Can I do it or it is not possible at the Setup project of the .NET environment?
Thanks a lot,
Reli.
|
|
|
|
|
Hi All,
How to hook file handling routines in windows using .Net..I have to hook a file
Open routine through an application in .Net...i.e i should call my dll defare the call goes to the windows procedure ..Any sample codes/ideas are appreciated.
Luck is Opportunity with hardwork
|
|
|
|
|
There's no such thing in Managed code. This requires Black Belt level knowledge of NTFS and a specially written shim that sits on top of the NT kernel to intercept the call. I don't know of any examples, short of FileMon from SysInternals. They DON'T supply the source code for the NT driver that's required to do this.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks for the reply and yes! it is a sort of FileMon from SysInternals..
Luck is Opportunity with hardwork
|
|
|
|
|
If you're trying to hook one application then you could do API hooking on the CreateFile, ReadFile, WriteFile APIs. This is a task that really needs to be done in C++. See here[^] for an example.
Otherwise you'll be writing a File System Filter Driver which runs in kernel mode, and for that you'll basically need to write in C. You'll need the Driver Development Kit[^] (I think - file system filters might be an advanced driver type only permitted in the Installable File System Kit[^]). Don't do this unless absolutely necessary - unstable applications merely crash the application, but unstable drivers crash the system. Kernel mode is very very hard, and you should at least read Windows Internals, Fourth Edition[^] by Mark Russinovich and David Solomon before starting.
|
|
|
|