|
Try:
Password Textbox[^]
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Thanks dear.
For your valuable suggetion.
But for installation time textbox there is no such property exist.
This textbox is textbox dialog box which is provided in .net in set up project.
|
|
|
|
|
Then what you have to do is provide a Custom Action[^] which should allow your own dialog.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Apart from this you will need to use the Orca [^]utility to change the textual style of textbox.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi all,
I am developing a winforms application and, in order to store some data on the client side I am using a dataset. My problem is that for a particular table (nothing different in settings compared to other datatables in my dataset), I get an exception when I try to insert a new Row.
I will not paste any code in here as I don't think that it will help anyone, but what I do is:
* create new row object using: MyDataSet.MyDatatableRow row = datasetInstance.MyDataTable.NewMyDataTableRow();
* I populate the columns I need
* I try to add the row to the datatable: datasetInstance.MyDataTable.AddMyDataTableRow(row);
At the very last step (add to datatable), I get an exception saying: "Cannot perform '=' operation on System.Char and System.Boolean."
I tried to see if I am doing something wrong while setting the column value, but everything looks fine... also I already waste lots of time on google trying to find an answer, but no success.
Can anyone explain to me why this exeption occurs? Any idea what could be wrong, what should I try in order to fix this?
Thank you in advance!
Andrei
|
|
|
|
|
Can we see the code ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
To be honest, I don't see how this will help. Besides the code (which is quite long as there is business logic), I should paste also the datatable structure. Anyway, I have similar logic with many other datatables in the dataset, and I didn't get this exception so far. If you think that this is related to the way I populate the data, I will try to prepare the copy of my code and maybe a description of the datatable structure in case you think it will help.
|
|
|
|
|
Well most likely, you are trying to store a boolean value in a field that takes char. Without code or a crystal ball I don't see how we can offer any more help. Just post the relavent bits (in <pre></pre> tags). Stripping out some of the chaff and validation/business logic will not only make it readable, but you might see where the problem lies.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Someone has to check the code, if you don't, and you don't publish any, who will?
here is a twin suggestion:
- exceptions most often contain file name, line number and method name information; to see it all, make sure you output Exception.ToString() and not just Exception.Message
- your IDE is capable of showing line numbers in all editor windows; make sure to switch that on. For Visual Studio, see here[^].
|
|
|
|
|
... thanks for the tips I use them for a few years now + log4net to print exception. However, it's the first time when I get this exception - EVER! As soon as I will get 10-15 minutes free I will strip the code of business logic and post it here.
|
|
|
|
|
so you know what line is failing
|
|
|
|
|
Yes, as I initially mention, the exception occurs when the AddMyDataTableRow method is called. When I say AddMyDataTableRow I mean the datatable specific method that is generated for every datatable to add new row: AddxxxRow
|
|
|
|
|
OK, problem fixed. By some stupid mistake a field was defined as char in the datatable, but it was used as boolean in an expression. After fixing this issue everything worked fine.
|
|
|
|
|
how can i make the the font of text in messagbox as i want?
|
|
|
|
|
|
|
|
|
if you're not satisfied by some simple component, such as MessageBox, roll your own. It ain't hard at all. It is easier than getting it to do what you want against it's own will.
|
|
|
|
|
Hi,
I have images of human body parts. Is it possible to view the image at its actual real world size.
How can I achieve this ?
How do I confirm whether current size of the image is same as its real world size?
Thanks in advance for all the help & suggestions.....
|
|
|
|
|
You must get the DPI. For example the picture has 96dpi and the size is 1024x768 pixel.
1024/96 -> 10.67 inch
768/96 -> 8 inch
That means : the print size is 10.67 x 8 inch
|
|
|
|
|
thanks stancrm,
will this ensure that the image, say that of a knee will be exactly of the same size of the person's knee whose knee was pictured ?
|
|
|
|
|
if you have a camera that can take a picture 1:1, then yes...
|
|
|
|
|
Hi,
you will need the following:
1. most camera's generate JPG files, with embedded tags containing a lot of parameters;
2. GDI+ can paint images at their actual size, see Graphics.DrawImageUnscaled;
3. your system has a DPI setting (defaults to 96) which you can change to correspond to the actual resolution (in dpi) of your monitor; you can calculate the required value like so:
Math.Sqrt(screenWidthPixels^2+screenHeightPixels^2)/screenDiagonalInches*100/96
the square root calculates number of pixels on the diagonal;
the final 100/96 is needed because Windows expects the number as a percentage of 96dpi, the default value.
You may be a bit out of luck if you use multiple monitors with different DPI values.
4. Your printer drivers should take care of DPI settings all by themselves.
|
|
|
|
|
Have you really thought this out?
Are you sure your monitor is big enough to display say a full length shot of a spine? You will also need a very good camera otherwise the picture will be rubbish.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|