|
Thanks for all your help too! You are very helpful. I'm so glad I got past that and can debug my project now!!!! I'm definitely going to be having a meeting with people to see if I should pull some of the other solutions into the same project.
|
|
|
|
|
Do you have any thoughts on why this question isn't appearing in my question list?
|
|
|
|
|
Look in messages, not Q&A Questions. It's in there.
|
|
|
|
|
Let me clarify:
When I get cr back from the factory, during execution, I can hit the + to look inside cr, and the issue is with the class Sec, with variable name edfed. It shows the error message of "Could not evaluate expression" for edfed. However, I can not step into cr's methods, either once I get cr back from the factory, or in the constructor, which is obtained in the factory. In other classes that use Sec, everything looks good, so I think the problem isn't in Sec, it's in how I define or instantiate, or obtain the object for Sec in the cr object. Sorry for any confusion.
In case anyone wants to see something I didn't show above, iCR is an interface defined as:
public interface iCR
{
event ProgressChangeHandler2 ProgressChanged;
event PB_MaxHandler2 SetPB_Maximum;
event PB_LabelHandler2 SetPB_Label;
Boolean CB_IO_Init(int slaveIndex);
int WritePortReady();
int WritePortBusy();
void WritePortFailure();
void WritePortSuccess();
void initCRData(byte[] wBuffer, byte[] sBuffer, int SlaveIndex, USB_Comm.Cl cb, int crType);
int ProcessTWriting(ref byte[] wDat, bool isFastMode);
int ReadT(ref byte[] data);
void Failure(String message);
void Success(String message);
}
|
|
|
|
|
what is
edfed = new Sec();
this Sec class do here? have you tried to put a break point in Sec class constructor and see whether it hits or not
Jibesh V P
|
|
|
|
|
Jibesh,
I can't put a breakpoint in Sec because I can't step into the class that instantiates it.
|
|
|
|
|
Thanks Jibesh.
The code you reference above is in the constructor of cr5 and edfed is the variable name and Sec is the class. In this example, I also have
Sec edfed = null;
in the variable declaration section above the constructor. I have also tried putting the whole thing above the constructor as a class variable:
Sec edfed = new Sec();
But I still see "could not evaluate expression" for edfed in cr5 class.
|
|
|
|
|
I'll throw you a bone...
I've copied code into a C# program that introduced unprintable characters that wound up generating bizarre compiler errors.
Delete the offending code and re-type it.
P.S. I find your obfusticating of code snippets ... obfusticating (it's all been done before) ... unless you're worried about your "boss" seeing what you're posting.
|
|
|
|
|
Deleting and re-typing is a good idea. Thanks anyway.
|
|
|
|
|
BTW, my boss is quite aware that I ask questions on websites and approves of the changes I make. He knows that we have a very small user's group and I'm the only programmer (and there's only one other c# programmer), so understands when I need to ask other people's opinion. I'm sorry if the snippets don't encompass the entire project, but I've had people complain about the opposite. They complain when I show too much code and info. Luckily, I figured it out, and I'm all set.
|
|
|
|
|
Looking for a code to start a webcam, would you please help
|
|
|
|
|
Versatile WebCam C# library[^] is an excellent article on this.
Enjoy.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
You could also check out my OpenSource TeboCam Project[^] (source code homepage[^]) which is a movement detection security system that uses webcams for image input.
It's based on the Aforge framework.
The code needs some tidying up but it shows you how to integrate a webcam and C#.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Hi all,
If I were creating a CMS that allows users to create webpages with fluid layout where the height and width of web pages shrink or expand based on the amount of contents and other things, how would I make the winform expand or shrink to accommodate this? I would also like to know if I can make winforms scrollable like web pages when their contents reach a certain predefined height or width. Thanks in advance for your reply.
modified 6-Feb-13 1:10am.
|
|
|
|
|
The only way to do that would be to know the width of the various pieces of content you're trying to display. Given that HTML rendering is designed to be "rubbery" and flow with the available space, that's quite a challenge to figure out.
|
|
|
|
|
I'm pretty sure there is a scrollbar control that you can attach to panel that will allow you to implement scrollable content in winforms.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi Everyone, I'm not sure if this is the right forum to ask this question but here goes. I am attempting to create a desktop app that will enable a user to create web pages by dragging and dropping various components onto the design space in Visual Studio. The user can open an existing web page or create a new one by entering its dimensions, giving it a name, and then clicking the Save button to save it. This will create an HTML file and a cascading style sheet for the new web page. The user can then drag and drop various shapes, colors, images etc. onto the design space.
I want to be able to enter any number between 1 and 1440 pixel for the width of the web page but the size of the design space in Visual Studio has a limit that is a lot smaller than 1440. Essentially I want to be able to see the web page in the design space as it would appear when it's opened in a browser. I've thought of using the web browser control but I don't think it will allow me to do what I have mentioned. Any suggestions will be greatly appreciated, thanks in advance.
modified 5-Feb-13 12:05pm.
|
|
|
|
|
This is going to be hard. If you just want WYSIWYG design, then the built in design surface is going to be your best bet (well, that and running the app and viewing in the browser).
AFAICT the VS design surface is only limited to your monitor width: I just stretched VS2012 across three monitors @1920px each. I don't remember if earlier versions of VS have such a limitation (VS2010 doesn't IIRC).
As I see it, if you want a drag'n'drop design surface the alternative is to pretty much hand-roll your own control which would, in effect, be like writing your own browser plus all the drag'n'drop/html generation code.
Sorry I can't be more positive, hopefully someone will have done something similar and will have an easier solution.
|
|
|
|
|
Hi Keith, thanks for replying. I was able to create an HTML doc and a cascading style sheet using Textwriter. I am using 2008 and I noticed that I cannot stretch the design surface. It would be neat if I can some how make everything shrink down automatically like when you work on a large image in Photoshop. If I can choose the percentage by which to shrink the web page while in design mode it would solve my problem.
|
|
|
|
|
Hi everybody,I'm trying to bind a win control to a table in MySQL.But the MYSQL data base is not listed in the data source part of the creating a new database connection wizard!!(other databases such as sqlserver is listed!)
I've installed the MySQL and its connector to VS.
What is the problem??can you help me please?
|
|
|
|
|
sina rafati nia wrote: What is the problem??can you help me please?
I'd guess that the "Data Provider" isn't registered. Have a read here[^].
|
|
|
|
|
sorry your link doesn't load !
what is data provider??
|
|
|
|
|
The link works just fine.
As for "what is a data provider?", read this[^]
|
|
|
|
|
yeah thats right it works! but the problem is I dont know what to do now!! Is there any easier way??
|
|
|
|
|
When my clients have to make changes to their database, a MySQL transaction is commenced.
In time it is either committed or rolled back. Rollbacks happen in error scnarios and critically by user choice.
I am following Juval Lowy's method of implementing transactions with a view to picking up the ambient MySQL transaction being managed by the client.
So the client enteres a new row, WCF / MSMQ relays it to a service that calls another service and makes a database update - nothing is committed yet.
But the user has a change of mind - and hits Rollback rather than commit.
The row is rolled back on the client, but the remote update is committed.
Is what I am attempting techincally possible?
Ger
|
|
|
|