15,896,314 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Hermann Jung (Top 11 by date)
Hermann Jung
10-Feb-18 3:43am
View
It looks like the old client ignores some fields of new service response. You have already checked the mapping. So the only reason I can see is datamember order - the datacontractserializer depends on it. Try as follows:
Edit your sample service datacontract:
Add DataMember-Attribute if not already present.
Set DataMember(Order = 1) on members of original version.
Set DataMember(Order = 2) on members of new version.
If you already specified DataMember-Order - do not update order of original members; instead make sure new members have a higher order than highest original member order.
I hope this will solve your issue - good luck.
PS: Soap service versioning is a common scenario, the are many articles on web.
Another idea:
Diff generated service client code before vs after update. Pay attention on member names, namespaces and order.
Hermann Jung
21-Jan-18 4:20am
View
Why don't use "view.Table" or "view.Cast<DataRowView>().Select(drv => drv.Row).ToArray()" for update?
Hermann Jung
9-Jan-18 2:37am
View
Do you ever remove the old control before adding a new one to panel1.Controls?
Hermann Jung
31-Dec-17 1:59am
View
Creating ScreenDrawing transparent (CreateParam: WS_EX_TRANSPARENT) harms internal visibility-order logic. You can fix it calling:
foreach (var drawControl in Controls.OfType<DrawControl>()) drawControl.Invalidate();
or similar in Form.Resize or:
1.) Use an image specific region (Control.Region property) instead of transparency. See https://www.codeproject.com/articles/6048/creating-bitmap-regions-for-forms-and-buttons
or 2.)
Handle paint event of your PictureBox to draw the sprites. This approach will require some additional code to invalidate drawing area when moving sprites.
Hermann Jung
30-Dec-17 3:05am
View
I assume Form1.GameWindow is a DrawControl instance. You are updating its size in Form1.Resize and in DrawControl.Paint with different values. You should never update control properties in Paint-event.
Have a look at Form.SetStyle, ControlStyles.AllPaintingInWmPaint and Form.OnPaintBackground documentation. It looks like you want to paint the image as background.
Hermann Jung
11-Nov-17 3:15am
View
Try this:
- copy the form containing your tab control
- rename copied files and class name (in .cs and .desinger.cs)
- open copy in designer and remove all unwanted control and components
- save file
- unload project
- change baseclass of copied form to UserControl
- reload project
- there may be some code-issues in .cs and designer.cs because of changed baseclass; repair them
Good luck!
Hermann Jung
24-Oct-17 2:17am
View
Open a second VS instance, attach debugger to first instance, enable exceptions "break when thrown" in second instance. Now try to open form-designer in first instance. I hope this will give you a clue - good luck.
Hermann Jung
19-Jul-16 5:17am
View
WeakReference.Target will be null when the GarbageCollector has collected the Form. Form.Close() does not call GC.Collect() - and you should not do it in your code (see GarbageCollector documentation). You should probably perform another check on Form.IsDisposed.
Hermann Jung
10-Jun-16 12:29pm
View
Copy...()-method will be called when you start the service at 11:40 AM (hour == 11 && minute == 40). Create_ServiceStoptextfile always when the service stops.
Hermann Jung
16-Dec-15 8:11am
View
Tells the 'unspecified' exception you there is no ACE.OLEDB-Provider installed? If yes, the issue is probably that there is not 64-bit provider installed.
Hermann Jung
10-Jul-14 10:40am
View
This means your code is executed within the static constructor or initialization of static fields and your code fails.
I) Typeinitializer should never cause exceptions.
II) See InnerException for the reason.
Show More