944,050 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 1735
  • C# RSS
Oct 31st, 2009
0

not able to see form design in C#

Expand Post »
the design form show following error...
pls help...
C# Syntax (Toggle Plain Text)
  1.  
  2. <html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><title></title><style>.ErrorStyle { font-family: tahoma; font-size: 11 pt; text-align: left}.DetailsStyle { font-family: tahoma; font-size: 10pt; text-align: left;text-indent: 0; word-spacing: 0; line-height: 100%; float: left; margin-top: 0; margin-bottom: 0}.StackStyleVisible { font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}.StackStyleHidden { display:none; font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}</style></head><body><DIV class="DetailsStyle" width="100%"><table border="0" width="100%" id="table1" height="100%" cellspacing="0" cellpadding="0"><tr><td height="40" bgcolor="#FF9999" width="8%" style="letter-spacing: 0" align="center"><img border="0" src="C:\Documents and Settings\fagmann09\Local Settings\Temp\1502A4.tmp" width="35" height="35" alt="ErrorImage" ></td><td height="40" bgcolor="#FF9999" width="91%" style="vertical-align: top; letter-spacing: 0" align="left"><b><font size="2" face="Arial" fontsize="70%">One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.</font><font size="2" face="Arial"></font></b></td></tr><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>The type 'System.Windows.Forms.OpenFileDialog' has no field named 'file'. </span><br><a href="" id="details0">Hide</a><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp</font><a href="" id="task0">Edit</a><font color="#0000FF"></font></span></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div20" class="StackStyleVisible" width="100%"><br> at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)<br> at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)<br> at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)</DIV></td></tr></table></div></body></html>
Last edited by bk_bhupendra; Oct 31st, 2009 at 10:34 am.
Reputation Points: 8
Solved Threads: 1
Newbie Poster
bk_bhupendra is offline Offline
22 posts
since Oct 2009
Oct 31st, 2009
0
Re: not able to see form design in C#
Please use code tags when posting code on daniweb:

[code]
...code here....
[/code]


Please go back and edit your last post, or post the error message again in code tags. I cannot read your post with the formatting the way it is.
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009
Oct 31st, 2009
0
Re: not able to see form design in C#
Hello, there's a suggestion in error message:
Quote originally posted by Error ...
Some errors can be fixed by rebuilding your project, while others may require code changes.
Have you tried rebuilding?

One more thing:
Quote originally posted by Error ...
The type 'System.Windows.Forms.OpenFileDialog' has no field named 'file'.
Do you have such one? If no - remove the reference to it. Seems like the error lays somewhere near this field ..
Reputation Points: 293
Solved Threads: 82
Posting Whiz
Antenka is offline Offline
361 posts
since Nov 2008
Nov 1st, 2009
0

sucuess after rebuilding

thanxs...
Reputation Points: 8
Solved Threads: 1
Newbie Poster
bk_bhupendra is offline Offline
22 posts
since Oct 2009
Nov 1st, 2009
0

...help.....

HI, My new problem...


im developing a Lan chatting System...
i wnt to recieve data and accept at the same page....
its working only ig there is only two systems... 1 server n anthr 1 as client.....

can u help me....

also im new to ths community ...
im not able to strt new thread 4 new posts....
give solution....


C# Syntax (Toggle Plain Text)
  1. System.InvalidCastException was unhandled
  2. Message="Unable to cast object of type 'CSocketPacket1' to type 'CSocketPacket'."
  3. Source="AsyncClient"
  4. StackTrace:
  5. at AsyncClient.Connect.OnDataReceived(IAsyncResult asyn) in F:\BK1\projects asp\Lan Chatting sockets\Async_client\Connect.cs:line 124
  6. at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
  7. at System.Net.ContextAwareResult.CompleteCallback(Object state)
  8. at System.Threading.ExecutionContext.runTryCode(Object userData)
  9. at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
  10. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  11. at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
  12. at System.Net.ContextAwareResult.Complete(IntPtr userToken)
  13. at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
  14. at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
  15. at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
Reputation Points: 8
Solved Threads: 1
Newbie Poster
bk_bhupendra is offline Offline
22 posts
since Oct 2009
Nov 1st, 2009
0
Re: not able to see form design in C#
Hello again and welcome to DaniWeb
Ok, let's start from error, that you get:
Quote originally posted by Error message ...
"Unable to cast object of type 'CSocketPacket1' to type 'CSocketPacket'."
I'm not sure if I'm right .. depends on what is CSocketPacket1 . Looks like a typo If it's not - is there any relationship between CSocketPacket1 and CSocketPacket (I mean inheritance)? If not - C# doesn't support implicit conversion from user-defined types to pre-defined types.

And regarding this:
Quote originally posted by bk_bhupendra ...
im developing a Lan chatting System...
i wnt to recieve data and accept at the same page....
its working only ig there is only two systems... 1 server n anthr 1 as client.....
Could you provide more information about problem you're facing .. and maybe some code, that gives errors or is incorrect?
Reputation Points: 293
Solved Threads: 82
Posting Whiz
Antenka is offline Offline
361 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Ship applications developed in .net using C#
Next Thread in C# Forum Timeline: Issues on uninstallation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC