|
Hi,
Thanks.
Same think I have done. I thought that I am missing some thing. But if you have another solution for my User Control just tell me.
Also I have another query...
What is the use of RowHeader in DataGridView? Can I add a column (1st column) such that it will show index (automatically increasing/decreasing) of each row? i.e. same as Numbering done in Word Document
Thanks & Best Regards,
Aniket Salunkhe
|
|
|
|
|
Hello,
I have a problem with DataTable.
I read records by Stored Procedure and I put records in MyDataTable.
My DataGridView.DataSource = MyDataTable;
When I click "Next Record" button, the property
of
MyDataTable.Rows[this.BindingContext[dtNominativi].Position].RowState
become Modified, but I haven't modified filed.
WHY????
HELP ME PLEASE!!!!!
|
|
|
|
|
BindingContext is reactive to you location in the table, so by clicking next you are modifing it.
Why where you hoping for it not to be changed?
|
|
|
|
|
Hi,
Can anyone tell me how to send images in the mail. Not as a attachment, I want to embed images in the mail.
Thanks,
Sushant Duggal.
|
|
|
|
|
If you use Outlook automation to send the mails, just insert the attachement at a position in (not after) the text:
outlookItem.Attachments.Add(
fileName,
OlAttachmentType.olByValue,
newItem.Body.Length+1,
fileNameWithoutPath);
If you don't send the mails in an Outlook/Exchange environment, I suggest you forget it, because most email clients won't display the attachment inline unless you format a proper HTML email body with image tags referencing the attachments.
|
|
|
|
|
HI,
Do you know how to get or from where to get an editor like the one provided in Microsoft Outlook?
I'll be greatful for for help.
Thanks,
Sushant Duggal.
|
|
|
|
|
Hi
<br />
Form frm = new Form()<br />
frm.Cursor = new Cursor(filename);<br />
Works fine if you have a form and the mouse cursor is over the form.
I would like to get at the default mouse cursor so that I can change the pointer even if there is no form.
Cheers
Si
|
|
|
|
|
I'll explain further as nobody has replied
I'm writing a server app' that is started from a scheduled task, it requires no gui as the config file contains everything it needs to start and another app feeds it with data.
I'd like something to show the application is running on the server so that people don't think the computer needs rebooting due to laggyness (if there is such a word).
I have made an animated cursor that could be used to show this application is running.
The only method of showing it I know of requires the application to have a form and the mouse cursor to be within its area.
Please help if you can.
|
|
|
|
|
That might prove a bit trickier than anticipated. There might be no users logged in when the application starts, or there may be several. You would also have to monitor the users so that anyone logging in after the application started gets the custom cursor.
I suggest that you instead write a small monitor application that shows when the server application is running. You can put it as an icon in the system tray.
---
b { font-weight: normal; }
|
|
|
|
|
Good point, if I hooked the user32.dll it'd be current user presumably.
I had considered systray but thought it could be easily overlooked. I suppose I could use alternating bright colours to draw the eye...
cheers
|
|
|
|
|
What is it that you are trying to accomplish, really? Who is going to monitor the appplication, and why?
If you change the default cursor, that could easily be overlooked too. The pointer could be at the edge of the screen. The pointer can be set to be hidden while typing.
---
b { font-weight: normal; }
|
|
|
|
|
Good question, in actuallity I'm probably more determined to change the cursor in this manner because I'm quite pleased with the animation I've created.
|
|
|
|
|
Can't you use the animation as an icon in the system tray?
---
b { font-weight: normal; }
|
|
|
|
|
Yeah, i've settled for SysTray but i'm having this problem now
|
|
|
|
|
Yeah, i've settled for SysTray but i'm having this problem now http://www.codeproject.com/script/comments/forums.asp?msg=1561813&forumid=1649&XtraIDs=1649&searchkw=synunn&sd=4%2F6%2F2006&ed=7%2F5%2F2006#xx1561813xx
|
|
|
|
|
Hello
I want to reduce the length of an integer number to transmit the number.
e.g. I have an number e.g. 123456789 and I want to compress it to something like 3a34z1
Is there a standard solution in C#/.net for that?
Thanks and best regards,
Martin
|
|
|
|
|
What kind of algorithm is that ?
|
|
|
|
|
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.
|
|
|
|