|
This event, is called when something got changed within the fields. What i want to do is that if a user want to make any changes I want to display a form, so through that they can do the editing.
|
|
|
|
|
I was afraid of that. Good to know!
Then the only thing that comes in mind is that you wire Click/MouseUp... and KeyPress/KeyUp and keep track in code, what is SelectedGridItem.
Mika
P.s. You can control editors for properties (windows for editing collections, complex types etc...) using attributes if that's what you want.
|
|
|
|
|
Hello Friends,
I am a .Net Developer. I have implemented FAX Utility into my application by using FAXCOMLib. It allows me to send a FAX using phone line. I usually send a PDF file on FAX. But from last few days when i send FAX using my application it send FAX successfully, but at the destination machine, half FAX is printed & half is empty.
Can any one help me out.
I shall be very thankful.
Regards
Dinker Batra
|
|
|
|
|
Perhaps the destination is running low on ink
But seriously, if no problems (exceptions or other) occur on the sending side, you could use two different destination machines to test if the problem is in sending or receiving.
|
|
|
|
|
Hi Mika,
Thanks, You are probably right, but is it a chance that the error is due to some Document Translation or Temporary Memory (Buffer) is full. Because for small PDF files its running very well.
But when i send some large file, it gives send half empty report.
What do u say
|
|
|
|
|
Most definitely if this problem occurs only on large documents, you are running low on memory on either side (propably at destination).
However, if you could test the same document against two different receivers, it would clarify the situation. Could you possible use the same machine as receiver. Also double check that you are not getting any errors from the code sending the fax.
|
|
|
|
|
I got a project from teacher but I can't do it. Anyone have any idea or any sample to show me as a guideline --> please help.
My project : I need to create a calculator program using any language but if it is C# it would be great. However, the input of this calculator must be assemble and output is binary. So, it means calculator program must accept assembly as input and print out binary as output.
Input sample:
MOV AX, 3 AX <- 3
ADD AX, 2 AX <- AX +2
MUL AX, 8 AX:BX <- AX *8
DIV AX, 5 AX:BX <- AX / 5
Pleaseeeeeee help me as soon as possible.
Thanks a lot.
|
|
|
|
|
nanaka9 wrote: I got a project from teacher but I can't do it
We don't do the homework here.
I would suggest you to start with the application and in between if you have any problems than you can post a question to get it clarified.
All the best.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I assume your teacher set this task for you because it would be a challenge? Have a think about it - look up some C# examples on the Internet or read up on some of the available namespaces/APIs. Then plan out your app and if need be, ask questions relating to the specifics of your app if you run into problems.
Regards,
--Perspx
Don't trust a computer you can't throw out a window
-- Steve Wozniak
|
|
|
|
|
Start Visual Studio.NET and create C# project then begin to work by yourself, in case of any specific problem post here and someone will answer you.
Regards
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
C# may not be the best language for this. C++ would b better as you can use inline assembly[^].
If you want to do it in C#, I beleive you'll have to simulate the registers with variables, parse the assembly to get the operators and values, do the math line by line then use the Convert.ToString(value, base) method to convert the output to a binary string.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
nanaka9 wrote: I got a project from teacher but I can't do it
Then you will fail. Use the experience to either learn, or decide if this course is for you.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;
namespace NeedsCode
{
class Program
{
static void Main(string[] args)
{
throw new NotImplementedException("The program code needs to be implemented.");
}
}
}
“It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.”
-Edsger Dijkstra
|
|
|
|
|
I'm curious as to whether or not I'd be able to do the following things to list view items:
#1 - Make it so that even when the list view does not have focus, a selected item shows up with the dark blue background color. If you set ListView.HideSelection = false, a selected item without focus will have a grey background, which unfortunately, I haven't been able to figure out how to change.
#2 - Allow selected ListView items to fully select the row. This is not ListView.FullRowSelect, but rather what I mean is... say I have the item "Item1" in the ListView, yet the ListView is wider than that text, the highlighted portion will only cover that text, but will not cover the entire row.
Thanks.
|
|
|
|
|
For the first question: Not sure but I think owner drawn items could be the answer.
For the second: If your column(s) is as wide as the listview, the full row should be selected so setting column width helps here.
Hope this helps,
Mika
|
|
|
|
|
Ok here you are going outside the design limitations of the control you are using. You have 2 basic choices, find an alternative control that meets your requirements (Infragistics and DevExpress are 2 suppliers) or create your own control.
1. The background colour of the selected item is probably managed by the skin/style windows is using.
2. You are asking it to paint the listviews backgound area according to a control (item) that is not there. As Eric said expand the last subitem to the full width, except then you need to deal with the horizontal scroll bar.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Yeah, I see that it may be a little tough to do this. I ended up taking the ListBox and overriding some of its functionality.
|
|
|
|
|
I have two type of objects - Person and PersonEx.
The difference between Person and PersonEx is that PersonEx contains an array of strings, whereas Person does not.
Here's a sample:
class Person
{
public string FirstName;
public string LastName;
public string City;
}
class Details
{
public string attribute1;
public string attribute2;
}
class PersonEx
{
public string FirstName;
public string LastName;
public string City;
public Details[] theDetails;
}
I need to convert from Person to PersonEx and from PersonEx to Person . I don't mind loosing the information in PersonEx.theDetails when converting to Person and leaving PersonEx.theDetails null when converting from a Person is ok.
So far, I have been writing helper methods that do a member-by-member copy of each field (InstanceOfPerson.FirstName = InstanceOfPersonEx.FirstName; ). This is not ideal since there are a lot of fields.
I'd like to walk over each type in the source and copy the value to the target so I could write something like this... public TO_TYPE Convert< FROM_TYPE, TO_TYPE >(instanceOfFromType) .
I looked into reflection, but that can be painful. I had a similar problem when converting between two types that are identical except that the type names are different - I solved that problem through serialization, but this problem is quite different.
One option is, I suppose, to continue to use serialization, and then 'fix' the resulting XML to more closely align with the type to which I am converting so that I end up with a working instance on deserialization.
The types I'm converting between don't change often - they just have a lot of fields and I am looking for a more reliable means of copying common information that is better and less error prone than member-by-member copying.
Any advice?
Erik Westermann - wWorkflow.net - BizTalk Consulting Services
SOA * ESB * BPI * SaaS ... forget the alphabet soup - get the main course with our consulting services!
wWorkflow.net or +1 416-809-1453
|
|
|
|
|
If you can use inheritance (PersonEx : Person), it could be helpful.
If not, reflection should help you to copy values. It's not so painfull at all if you take a closer look.
Mika
|
|
|
|
|
I should have mentioned - I cannot modify the types, so setting up and inheritance hierarchy is out of the question.
I'm experimenting with reflection now - I'll see how it goes.
Thanks -Erik
Erik Westermann - wWorkflow.net - BizTalk Consulting Services
SOA * ESB * BPI * SaaS ... forget the alphabet soup - get the main course with our consulting services!
wWorkflow.net or +1 416-809-1453
|
|
|
|
|
Okay, I see. Based on my experiences it wouldn't take many lines of code to copy property values from class to another as long as property names and their types match.
Happy coding
Mika
|
|
|
|
|
|
I hate to say it but your sig has a typo (well 2).
|
|
|
|
|
What do you mean ?
With greate code, comes greate complexity, so keep it simple stupid...
|
|
|
|
|
There's only 1 e in great.
|
|
|
|