|
|
I have Master-Detail datagrid. The detail datagrid is embedded in the Master datagrid. In the detail datagrid I want to implement paging ,sorting etc. I have addes the event handlers delegates manually. For some reason the pageindexchanged or sort events for the detail datagrid. Does anyone know of this behaviour? I saw a lot Master-Details datagrids on the internet, nobody seems to have implemented paging-sorting for details grid embedded within a datagrid. thanks
Madhuri Mittal
|
|
|
|
|
Hello everybody,
Perhaps someone has experienced the same problem as I had:
I have developped an application and this application is a bit complexe to configure: several DBs, some parameters that depends on the system (such as log files path) and so on. These configuration item are stored in the .config file.
Now, I want to distribute my application. So I built a setup project for it. My problem is that the msi file contains my .config parameters which will not work on an other system. The simple solution is to edit manually the config file after install, which is not very convenient.
I was wondering if there is a way to automaticaly add screens in the setup wizard to configure the application and write the config file while installing.
tahnks in advance.
|
|
|
|
|
I don't think the setup stuff that comes with VS.NET can do this directly. You would have to create some custom actions which would then do the work of editing the .config file.
Some time last year I tried to create a custom action, but eventually gave up on it. I can't remember what I was trying to do though.
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
I have .NET 1.0 (v1.0.3705) and .NET 1.1 (v1.1.4322), but my programs use .NET 1.0. I noticed the presence of the FrameworkVersion=v1.0.3705 environment variable on VS.NET command prompt, which I don't know how to change.
How do you make your programs use the .NET 1.1 version?
|
|
|
|
|
Your programs should automatically use the 1.1 version when it is available (unless you specify otherwise in a .config file). But you probably want to compile with 1.1 so you can use the new features as well
When you installed the SDK, a batch file was installed that sets up the environment variables. On my computer this is at: C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\sdkvars.bat. If you point a shortcut to: %comspec% /k C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\sdkvars.bat then when you open that shortcut you can compile with .NET 1.1.
VS.NET 2002 cannot target 1.1, it was hard coded to target 1.0; so unless someone "patches" it you are stuck with 1.0 for builds through it.
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
How do you know your apps are using .NET Framework v1.0 and not v1.1?
There is one test I know for sure; With ADO.NET try to use the RowCount</count> property of a <code>SqlDataReader If that works then you are using 1.1 because it is not available in 1.0.
Also that VS.NET cmd prmpt env var: Do you have VS.NET 2003 installed? If not then you have 2002 installed and it will be setup with v1.0.3705 . Once you install 2003 then normally the cmd prmpt in the 2003 folder will be v1.1.
Paul Watson Bluegrass Cape Town, South Africa
Chris Losinger wrote:
i hate needles so much i can't even imagine allowing one near The Little Programmer
|
|
|
|
|
Paul Watson wrote:
try to use the RowCount property of a SqlDataReader
Have you tested this out at all yet performance wise? Just curious because I have not installed 1.1 yet. I wonder who much this effects the performance of the datareader.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
I'm currently working on a Softwareproject where it must be possible that two applications could talk togeter (with RPC's and only local). My Project bases on the .NET Framework and I'm new to it (without the .NET Framework i would it implement with COM).
I read on a few Articles that Remoting is the "COM" in the .NET Framework. But theres one thing that bothers me: When I'd like to use Remoting only local, why must I allways declare a port?
Can I use Remoting without a port or is there any other possibility for implementing RPC's?
Thanks for any help in advance!
And sorry for my bad english...
Regards Stefan
|
|
|
|
|
I downloaded and installed the .NET Framework 1.1. I then downloaded the .NET Framework SDK 1.1 and installed. I then downloaded the SharpDevelop IDE and proceeded to use that.
I tried to create a C# Service. When I tried to compile the template C# Service it creates it informed me that the namespace "Installer" could not be found. I looked this up in the SDK documentation and it said that it was part of System.Configuration.Installer
Everything I read says this is where it is. I can't find this anywhere on my system. It wasn't installed. Does it get installed with something else other than the .NET Framework SDK?
Help please.
--
"The money power of the country will endeavor to prolong its rule by preying upon the prejudices of the people until all wealth is concentrated in a few hands and the Republic destroyed."
-- Abraham Lincoln
|
|
|
|
|
OK, I created a new service, compiled it, and it gave the same error. Added this code to the top (w/ the other "using" statements):
using System.Configuration.Install;
Then it compiled correctly.
This declare should be in the template file, but it's not. I shall mention this to the #D team.
HTH,
J Dunlap
"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
|
|
|
|
|
That did it. Thanks. Just starting to use .NET and C# finally! I'll keep in mind that the IDE is a little rough when it comes to certain things and try to learn to type.
--
"The money power of the country will endeavor to prolong its rule by preying upon the prejudices of the people until all wealth is concentrated in a few hands and the Republic destroyed."
-- Abraham Lincoln
|
|
|
|
|
Okay the help file says it exists, and the Class Library Referance says it exists, but intellsense can't find it and it creates a compiler error . What am I doing wrong? did I miss a posting and fall off of the bus?
The Offending code --
<Bindable(False), _
Category("Appearance"), _
EditorAttribute(GetType(System.Web.UI.Design.UrlEditor), _
GetType(System.Drawing.Design.UITypeEditor)), _
DefaultValue(""), _
Description("This is the primary image we will display to the web surfer.")> _
Public Property MainImageUrl() As String
Get ...
Set() ...
End Property
The Compiler Error --
C:\Documents and Settings\jmcburney.WALNUTCREEK\My Documents\Visual Studio Projects\Garaibali\WebControlLibrary1\HoverButtons.vb(5): Namespace or type 'Design' for the Imports 'System.Web.UI.Design' cannot be found.
|
|
|
|
|
You need to reference the DLL...
In Solution Explorer, Right Click in references and click Add reference.
Add the System.Design.Dll
Pete
Insert Sig. Here!
|
|
|
|
|
Righto!
Why is all of the obvious stuff that eludes me?
It must be my VB heritage.
|
|
|
|
|
If I create a stored procedure that uses a temporary table, I cannot get a .NET data adapter to configure correctly for that stored procedure. A workaround is to create a stored procedure with the same data columns, generate a data adapter and dataset, then change the stored procedure called by the data adapter. Is there a better solution to this problem?
Thanx...
>>>-----> MikeO
|
|
|
|
|
|
I wrote a service that use VB6 MSCOMM32.OCX for serial communication.
I works perfectly on my development machine which has both .NET studio and VB6 installed. But when I bring it over to a computer w/o VB6 installed it doesn't work (i registered MSCOMM32.OCX).
I got the following error: System.InteropService.COMException from the service. The odd thing is that the service monitor tool which is a winform application, which also use MSCOMM32.OCX but has a wrapper class that generated by winform, works perfectly as well.
the Error when I debug it says: Class is not licensed to use
Please help.
Thanks
|
|
|
|
|
What was the COM exception?
|
|
|
|
|
The exception was thrown was System.InteropService.COMException, the error message was : class is not licensed for use.
Other than that, it doesn't have any other error. Please note that it works fine on the machine that has both .NET Studio and VB6 installed...but not others.
Jimmy
|
|
|
|
|
Is it the lciense file for the OCX. I think the corresponding OCA has something to do with this but what do I know...
|
|
|
|
|
I copied the OCA file with it as well...but nothing works. as I mention, this is odd since the winform version works fine, but the service one doesn't.
|
|
|
|
|
We are having the same problem and have talked with MS. It seems like MSCOMM32.OCX requires some kind of certificate before it can be used, and that certificate is installed when you install VB6.
Our way around it is this:
http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/
Hope this helps,
Mads
|
|
|
|
|
I am using both exception handling and inheritance in my visual basic project. I am curious how .NET handles exception handling between a base class and its derived classes. For example, if the base class method throws an exception and this method is invoked by the derived class, is it necessary to catch and handle that exception in the derived class? Or is the call to the base class method considered to be "inline"?
Thanks!
|
|
|
|
|
If an unhandled exception occurs in your base class, that exception will "bubble" up to your derived class. For example, the following:
Public Class BaseClassThrowsExceptions<br />
<br />
Public Sub MethodOne()<br />
Try<br />
Throw New ApplicationException("This is an handled exception")<br />
Catch ex As Exception<br />
Console.WriteLine("Exception: " + ex.Message + " -- handled by Base Class")<br />
End Try<br />
End Sub<br />
<br />
Public Sub MethodTwo()<br />
Throw New ApplicationException("This is an unhandled exception")<br />
End Sub<br />
<br />
End Class
when called from the following derived class:
Public Class DerivedClassThrowsExceptions<br />
Inherits BaseClassThrowsExceptions<br />
<br />
Public Shadows Sub MethodOne()<br />
Console.WriteLine("Derived class MethodOne calls base class MethodOne...")<br />
MyBase.MethodOne()<br />
End Sub<br />
<br />
Public Shadows Sub MethodTwo()<br />
Console.WriteLine("Derived class MethodTwo...")<br />
MyBase.MethodTwo()<br />
End Sub<br />
<br />
End Class
causes MethodTwo in the derived class to stop on an error when it calls the underlying method in the base class. If I put a Try...Catch block around it:
Public Class DerivedClassThrowsExceptions<br />
Inherits BaseClassThrowsExceptions<br />
<br />
Public Shadows Sub MethodOne()<br />
Console.WriteLine("Derived class MethodOne calls base class MethodOne...")<br />
MyBase.MethodOne()<br />
End Sub<br />
<br />
Public Shadows Sub MethodTwo()<br />
Console.WriteLine("Derived class MethodTwo...")<br />
Try<br />
MyBase.MethodTwo()<br />
Catch ex As Exception<br />
Console.WriteLine(ex.Message)<br />
End Try<br />
<br />
End Sub<br />
<br />
End Class<br />
then the exception is caught and displayed in the Catch region.
Is that what you're asking?
|
|
|
|