|
You excel at avoiding words such as buy, book, and study. Ran out of horses?
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Actually it's fairly straightforward.
You start with one. Then comes two. Three. Four. Five.
How far do you need to count?
|
|
|
|
|
Hi,
do as below for displaying number of count of click event.
Public Class Form1
Public count As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
count += 1
Me.Label1.Text = count.ToString()
End Sub
End Class
|
|
|
|
|
Hi,
We are writing an WPF application using .NET 3.5 with Enterprise Library 4.1. We have created an custom handler - UIExceptionHandler within our exe project. When we try to invoke the ExceptionPolicy.HandleException(e, "UI Message Policy"); method, we encounter the below [1] error.
Find below my code for
namespace CName.DName.AName.UI
{
[ConfigurationElementType(typeof(CustomHandlerData))]
public class UIExceptionHandler : IExceptionHandler
{
public UIExceptionHandler(NameValueCollection ignore)
{
}
public Exception HandleException(Exception exception, Guid handlingInstanceId) {
DialogResult result = this.ShowThreadExceptionDialog(exception);
return exception;
}
private DialogResult ShowThreadExceptionDialog(Exception ex)
{return MessageBox.Show("Some Error Message", "Application Error", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
}
}
Also find below the implementation of the custom handler in the app.config file
<
add name="UIExceptionPolicy">
<exceptionTypes>
<add type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="NotifyRethrow" name="Exception">
<exceptionHandlers>
<add logCategory="General" eventId="100" severity="Error" title="Enterprise Library Exception Handling" formatterType="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" priority="0" useDefaultLogger="false" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="Logging Handler" />
<add type="CName.DName.AName.UI.UIExceptionHandler, CName.DName.AName.UI" name="UI Message Handler"/>
</exceptionHandlers>
</add>
</exceptionTypes>
</add>
FYI - When I tried implementing the UIExceptionHandler custom handler class in an DLL and provided the full name in the app.config, it worked fine. But this fails when I create the handler within the exe project. The name of our exe project is Test.
What might be wrong here?
[1]
The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyImpl, UIExceptionPolicy]) failed: The type 'CName.DName.AName.UI.UIExceptionHandler, CName.DName.AName.UI.' cannot be resolved. Please verify the spelling is correct or that the full type name is provided. (Strategy type ConfiguredObjectStrategy, index 2)
Regards,
Vipul
Regards,
Vipul Mehta
|
|
|
|
|
I don't think anybody will be able to answer your question. Try wrapping it around a bit so that it fits on the page.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I got this resolved.
Within the project properties of my exe project the Assembly name was set as Test. So within the UIExceptionHandler class, I had to change the namespace from namespace CName.DName.AName.UI to namespace Test and this resolved the issue
Regards,
Vipul Mehta
|
|
|
|
|
hai all
I want chinese characters to suggest in intelligence when typing.
An exe available from google named "googlePinYinInstaller.exe".
It will suggest chinese characters.
I want the idea behind this pinyin.
How i can do this in c#.
thanks in advance
|
|
|
|
|
How IMEMode of each control is used for this concept?
Any idea
|
|
|
|
|
Hi there! I've just released an Alpha 1 of a new .NET database migration toolkit and hope you'll find it interesting.
It's pretty much inspired by Ruby on Rails (namely, ActiveRecord Migrations). Most notable features are: a special DSL for writing migrations
migration "Oxite" revision => 1:
version 20090323103239:
oxite_Language:
LanguageID type => Guid, nullable => false, primary-key => true
LanguageName type => AnsiString, length => 8, nullable => false
LanguageDisplayName type => String, length => 50, nullable => false
index "" columns => [LanguageName, [LanguageDisplayName, desc]]
automatic version tracking, automatic generation of "downgrade" migrations and generally a very seamless experience while dealing with the DB.
Project is open-source (MIT License) and is available at http://code.google.com/p/octalforty-wizardby/[^]
|
|
|
|
|
A post about this technology is less effective than a fullblown-article; here it might even attract flames, since it's not a programmingquestion.
An article OTOH doesn't have to contain a question, but can also be used to introduce new idea's or frameworks. Plus they're easier to find through Google
I are troll
|
|
|
|
|
Hi,
Can any one tell the difference between visual studio 2008 pro with MS Visual Studio 2005.
I want to migrate my code from Visual studio 2005 to visual studio 2008 pro.
What kind of problem i will face if i did so...
Please guide me.
Thank in Advance
Senthil.S
A Software Engineer
|
|
|
|
|
You can read from Microsoft msdn site http://msdn.microsoft.com/en-us/library/bb386063.aspx.
if you are migrate your code to VS05 to VS08 then you have face some new problem.
Like : Functions, Methods which have a new name and new definiction.
Best Regard
Anubhava Dimri
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
You will certainly not have any problems with new method names. First, VS-2008 allows you to choose which FrameWork version you want to target. Second, the 3.5 FrameWork is in fact the 2.0 FrameWork plus additional libraries - it is not a new version of the 2.0 libraries.
Perhaps it is possible to have issues when migrating but I've seen none. And that is very much the opposite of what was the case when we migrated from 1.x to 2.0.
|
|
|
|
|
Hi,
I'm using COM component(Axis Media Control) in .NET framework with language tool c#.
"Play()" is a member function of Axis Media Control(network camera). When I use it in WinForm, after I execute the sentence "AMC.play()", it works all right and shows the image.
But When I try to use it in webservice ,using the sentences like "AxisMediaControl AMC = new AxisMediaControl()" and "AMC.play()",after execute the "play()", it doesn't show any thing nor occur errors. I don't why. I wonder if in webservice there doesn't have any place to show the image( not like in winform can add the control in [design] ) , or if i need to offer a place or window to show the image in webservice.
I also want to know the difference between webservice and winform when using the axis media control. Thanks!!
|
|
|
|
|
lynn1007 wrote: it doesn't show any thing
Show it where? A WebService has no display to display anything on.
lynn1007 wrote: I don't why.
Hopefully my first comment clears that up for you, yes?
Also someone developing a WebService that doesn't already know this, indicates they are working on a subject that they don't understand anywhere near well enough to be working on it. I mean rather than developing a WebService you should be reading, studying the subject to understand it clear enough before developing.
|
|
|
|
|
Thank you so much.
Your reply does cleat that up for me. But I have some more questions.
"A webservice has no diplay to display anything on" does it mean that I cannot realize the function "play()" of the Axis Media Control(an Activex Control)? Does it also mean that I cannot use the control in webservice for web develop,it can only be developed in website and winform?
I'm trying to use the COM component in webservice, and the problem I encountered really puzzles me. I've been confused for many days.
Any advice is appreciated. Thanks!! 
|
|
|
|
|
lynn1007 wrote: I've been confused for many days.
Indeed and I know why, and I spoke to that in my last post. You either didn't read it or chose to ignore it.
led mike wrote: Also someone developing a WebService that doesn't already know this, indicates they are working on a subject that they don't understand anywhere near well enough to be working on it. I mean rather than developing a WebService you should be reading, studying the subject to understand it clear enough before developing.
You lack understanding very important factors of client/server computing. In some cases these fundamental factors are laws of the universe and must be understood otherwise days of confusion will follow. I strongly urge you to go learn some things about the technology you are working with. If you choose to ignore my advice many more dark days of confusion surely await you. 
|
|
|
|
|
Thank you again!
I'll read some books before study this problem. Hope I can solve it. 
|
|
|
|
|
hi i m new to asp.net.....
i wanted to knw how to giv the server.mappath??
i hav given like this...........
String connectionstring="Provider=Microsoft.Jet.OLEDB.4.0;"+"DataSource="+Server.MapPath("C://Inetpub/wwwroot/test5/PersonalDetails1.xls")+";"+"Extended Properties=Excel 8.0";
but it is showin error.....invalid path for mappath, virtual path is expected.......
plz any1 can guide me.........
|
|
|
|
|
hi,
When you are giving the server.mappth there is no need of specifying the full path.
just specify
String connectionstring="Provider=Microsoft.Jet.OLEDB.4.0;"+"DataSource="+Server.MapPath("PersonalDetails1.xls")+";"+"Extended Properties=Excel 8.0";
If the Excel file is in the root folder it will be automatically taken out.
Thanks,
Thani
|
|
|
|
|
lbuttonDown out of a mode window, this mode window will refresh, but no message of paint spring.
witch message is spring?
handsome boy and beautiful girl!
who get this?
please tell me. thank you!
|
|
|
|
|
Can you be a little more clear on this .
Thanks,
Thani
|
|
|
|
|
hi everybody I wish have anyone help me about my broblem that has when I develop system with backup and restore database.
In my form on client I've design for backup/Restore and this form when open this is used connection that connected to database that I want to restore.for ex(current Connection on MYDB and want to restore MYDB that has a new file backup) if I work with server 2000 by manual and force database it's ok.
but that problem has when I do in form on client.
rithylyc@gmail.com
lyrihy_it@yahoo.com
LY RITHY
Tel : 012 649 097
Cambodia,Phnom Penh, Build Bright University
|
|
|
|
|
We've developed an application using .NET, and have installed this on our LAN web server. Part of the application uses Crystal Reports, and we've got this working using the "Merge Modules". All OK so far.
But we would now like to deploy the application onto an ISP Webserver running IIS. Obviously we don't manage the web server, we can only upload our application.
Can anybody offer any advice on how to get Crystal report components on an ISP web server, and exactly what do we need to ask the ISP to do.
Please Send Me The Process That I Can Deploye Crystal Reports Into Webserver, or It Will Run Inside Webserver.pleaseeeeeeeeeeeeeeeeeeee send me the process
Thanks
Sourav Chakraborty
|
|
|
|
|
Hi all. I have this problem that I hope somebody can help me with. I am working on a windows 2003 64 bit system and at first the ASP.NET tab wouldn't show in iis. I got this sorted out with a bit of Registery magic but now none of my ASP.NET websites will run in iis. I unregistered and reregistered the framework but that did not help. Does anybody have any ideas what else I can do. Thanks in advance
Stephen
Stephen Lintott Bsc IT (RAU)
|
|
|
|