|
Why don^t you just send the integer in stead of a string representation of the number?
|
|
|
|
|
Because it is a long number and I have to pass it manually, e.g. by telephone. So the main target of the algorithm I am looking for is to shorten the integer.
|
|
|
|
|
You can output it to hex, or you can search for the Base36 number article here on CP.
|
|
|
|
|
I want to add Images at runtime in Datacolumn.
|
|
|
|
|
I assume you want to add images to datagrid via datacolumn.
There is no direct way of adding images to datacolumn or datagrid.
Surf thru the attached link, it will give you a sample code as how to add images to the column.
http://www.windowsforms.net/FAQs/default.aspx?PageID=2&ItemID=536&CategoryID=3&tabindex=3
The above example is for displaying the icon. Just change the icon to gif image and it will work.
Regards,
Kais
|
|
|
|
|
Hello
First, I'd like you to forgive me if the question is a bit irritating - it irritatedme personally -.
Now:
I have a program that should read -and only read- Adobe acrobat files -for example-, even if Adobe Acrobat reader wasn't installed on the user's machine. I tried to achive this using ActiveX supplied by Adobe, but of course it didn't work.
I tried to make a setup project and register the ActiveX as isolated -stupid isn't it? -, again it didn't work.
Important note is that I don't want to use 3rd party COM objects.
Is it possible??
if(Possible)
{
return "How?";
}
else
{
return "Thank you anyway for reading";
}
I'm not that expert in COMand activeX objects. Yet I can do my homework. I just need a push in the right direction.
Any ideas, articles, suggestions, or comments would be appreciated.
Regards.
|
|
|
|
|
Try this: http://www.codeproject.com/dotnet/activexnet.asp
|
|
|
|
|
Thank stancrm.
But that wasn't what I was looking for. With this article I still need the program already installed on the user's machine, otherwise it won't work.
Thanks again.
|
|
|
|
|
Hi All,
Can someone recommend a good application framework to run under dot net 2005.
Prefferable C# based with source. I am looking for something to handle the security, management of users etc etc.
Thanks
|
|
|
|
|
How about Enterprise Library 2.0? Or is it too heavyweight for you?
Kevin
|
|
|
|
|
Hi Kevin, thanks for the response. Where do I get it from?
Thanks
|
|
|
|
|
http://tinyurl.com/ap4no[^]
There are versions for .NET 1.1 and 2.0. I've downloaded the .NET 1.1 version but haven't had the chance to delve much into it though. But I notice they have a Security Application Block.
Kevin
|
|
|
|
|
Hi,
I am making windows app using C#.
In this app if i drag a form to any location and click a button on that form that displays a message box,message box always appears center screen and not on center of form that has been dragged.It looks very odd.
How can I make message box to always appear on center of form irrespective of position of form.
Regards,
Amit
Amit
|
|
|
|
|
The first parameter passed to MessageBox.Show can be any implementor of IWin32Window , which includes a Form , a Control etc. If you pass a reference to your form to this, the MessageBox will show up on top of that form/control
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
I tried but its not working do you have code for same
|
|
|
|
|
I tried MessageBox.Show(this, "Hello"); but still the message is centre of screen, not centre of form as wanted.
Regards
bigJim
|
|
|
|
|
Its looks like you cannot change this behavior of MessageBox. One solution is to derive your own MessageForm class from Form to display your message. Then call its ShowDialog method to show it after you set its Size, Location and StartPosition properties. (If you don't set the StartPosition , then the Location is ignored.) One of the values for StartPosition is CenterParent which would center your new MessageForm.
|
|
|
|
|
How do I set the colour of a cell depending on the value of an adjacent cell? How can I access the data of an adjacent cell? I can set the different colours successfully using overwriting the Paint method of my own Datagrid column.
Regards
bigJim
|
|
|
|
|
Hi,
If u want each column value of selected row then loop it with ColumnNumber
TextBox2.Text = DataGrid1.Item(DataGrid1.CurrentCell.RowNumber,
DataGrid1.CurrentCell.ColumnNumber)
|
|
|
|
|
You can access the previous column cell value pretty easily,
string previousCellValue = DataGrid1[DataGrid1.CurrentCell.RowNumber, DataGrid1.CurrentCell.ColumnNumber -1].toString();
Now based on the previousCellValue, repaint the row by calling your overrided grid paint method. Hope this work for you
Regards,
Kais
|
|
|
|
|
hi
i am trying to create a deployment project for .net + crystal report windows application and using bundled version of Crystal Report in Visual Studio .NET 2003.
when i try to build the deployment project i receive a build error which says keycode is non-nullable.
I am adding 4 merge modules crystal-database-access2003.msm,crystal_database-access2003_enu.msm, crystal_regwiz2003.msm,crystal_managed2003.msm.
i add the licence key to the crystal_regwiz2003.msm file even then i get the error property 'keycode' is non-nullable.
what could be the possible reason for this error.
please help.
This is my sign
-- modified at 5:38 Thursday 29th June, 2006
|
|
|
|
|
ersinsivaz wrote: help please !
Everyone on this forums is looking for help - Try using a more descriptive subject such as "Problem deploying app with Crystal"
|
|
|
|
|
More than likely.
You have eval assemblies on your pc. delete all assemblies then re-install crystal reports and it should be fine. Make sure to delete of all of them. thier in 3 different places I believe.
Nick
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
I have a Button (btnGet) on a UserControl which I am setting Image property of to a GIF.
The problem :
It does show in design time but doesnt on runtime.
(The UserControl has few other buttons which has their image property set to other images and working fine. However if I change their images to other, it doesnt work.)
Investigation :
I checked the .resx file and it contains the image data in the "btnGet.Image" element.
Put breakpoint in the InitializeComponents() where it assigns the image to button.
this.btnGet.Image = ((System.Drawing.Image)(resources.GetObject("btnGet.Image")));
resources.GetObject("btnGet.Image") returns null.
I tried this after deleting all the intermediate files like .pdb, .obj
When I set the image to a Button in other form in the same project (as well as in other). Works perfect!
Solution :
What could it be?
Every bit counts
|
|
|
|
|
Have you tried GetManifestResourceNames() to see if the image is present? that is asuming resources is an Assembly .
|
|
|
|