|
I don't think so. But you could adjust the alpha values of 'all pixels at the edges' prior to call DrawImage. Probably this helps a bit...
|
|
|
|
|
Thanks mate. I forgot about trying that. I'm using PNG images so it should work.
Cheers!
|
|
|
|
|
I have a DataGridView object and I added a ContextMenuStrip control to the DataGridView.ContextMenu. This works well, if I right-click the datagrid view I get the context menu I wanted. The problem is, I would like to, just before the context menu appears perform a left click to also select the cell or row under the mouse at that moment. Not sure what is the best way to do this.
Thanks.
|
|
|
|
|
Hi, Johnny. This CellMouseDown event handler should work:
private void dataGridView_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
{
if ((e.RowIndex >= 0) && (e.ColumnIndex >= 0))
{
dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Selected = true;
}
}
|
|
|
|
|
WOW, that was so simple, thanks a million times Andrew
|
|
|
|
|
Hi,
Scenario:
1. User opens browser on their laptop/desktop.
2. User connects to remote web application.
3. User browses and clicks required button on web application.
4. As a result of clicking the button the web application activates/calls a web service on the client machine.
5. The web service then makes call back to web application and downloads the required data.
No data is delivered to the client ALL that happens is the action in (4) that allows a method to be called in the client and then the data is requested after necessary security checks.
Note: The desktop/laptop will always have .NET Framework installed. The call to the web service will always be to the current desktop/laptop.
Is the above possible? If not is there any suggestions as to a possible solution.
Thanks in advance.
Andrew
P.S I have done what I require with all the actions being driven by actions/calls from the client standalone windows application.
|
|
|
|
|
Hi all I m new for .net and i m working on network system ...
my server name is "midserver" ..i was trying to create a new project with VS.Net named "test1" and i got error "The Default Web Access mode for this project is set to file share,but the project folder at 'http://midserver/test1' cannot be opend with the path'\\midserver\wwwroot$\test1' . The error returned was:
Unable to create Web project 'test1' . the UNC share'\\midserver\wwwroot$\test1' does not exist or you do not have access." ..
how i can overcome to this problem ..
thankyou in advance.
Life is not easy ,let's make it.
|
|
|
|
|
I don't want to be rude, but....
asprajesh wrote: the UNC share'\\midserver\wwwroot$\test1' does not exist or you do not have access
should give you a clue, why not try reading the error message first.
|
|
|
|
|
I'm working with a smart card and need to get the certificates in to the store. I don't know much about certificates but I think it's something wrong with the root-certificate. When I add it, it won't show up in the certificate list in IE. I get this fault message when I run the program:
Unhandled Exception: Microsoft.Web.Services2.Security.SecurityFault: The securit
y token could not be authenticated or authorized ---> System.Security.SecurityEx
ception: WSE537: The certificate's trust chain could not be verified with the fo
llowing reason: Ett internt certifikatkedjningsfel har inträffat.
Ett internt certifikatkedjningsfel har inträffat. = An Internal certification chain fault has occured.
I have search a lot on the internet but can find any thing about this.
Can any one help me or does any one know a good book about certificates in .Net?
//Ken Q
|
|
|
|
|
Hi
Is there any way I could use a TimeSpan as a interval for a Timer? milliseconds doesnt quite cover it when dealing with large intervals.
What I am making is a way for the application to get an event every day at the stroke of midnight. The code I use now is here:
This is for starting the timer with a interval that make is trigger on the exact hour of midnight.
DateTime now = DateTime.Now.AddDays(1);<br />
DateTime time2 = new DateTime(now.Year, now.Month, now.Day, 0, 0, 0);<br />
TimeSpan dif = time2 - DateTime.Now;<br />
<br />
timer1.Interval = (int)dif.TotalMilliseconds;<br />
timer1.Enabled = true;
If anyone know a more elegant way of doing this then PLEASE let me know. At least I want to get rid of the millisecond interval as a whole day is something more suited for TimeSpan object.
|
|
|
|
|
The Today property contains the current date at midnight.
TimeSpan dif = DateTime.Today.AddDays(1).Subtract(DateTime.Now);
---
b { font-weight: normal; }
|
|
|
|
|
Thanks.
What if I want it to happen at every hour instead of every day then?
-- modified at 15:13 Tuesday 25th July, 2006
|
|
|
|
|
Then you're back at your first method.
---
b { font-weight: normal; }
|
|
|
|
|
I have an application which use has a DLL with 100+ (auto-generated) Managed C++ wrapper around some native API.
Compare to a purely version my application has some performance issue and I just realized it is probably due to the security check which happen just before each of the (numerous) call into this native API.
Now I know that, perhaps, I could tag my MC++ wrapper with
<suppressunmanagedcodesecurityattribute>
But I wonder if there is not an other call I could place in the Main() function (such as Permission.Demand() or stuff like that) which will achieve the same result?
After all my code this is for a desktop application with as much right as the user.
|
|
|
|
|
|
Hi All,
My task with combobox is:
When I Type a letter in combobox it should select the Item which is starting
with the letter.
for example the Combobox items are One,two,three,Four,Five,thirty,forty,fifty etc.
When I type 't',it should select "three" which is first in combobox items and the focus on remaining "hree".agian when i type 'h'(becomes"th") and the focus on "ree",on typing 'i'(becomes"thi"),combo should select "thirty",and focus on "rty".like that it should go on.
Please suggest.
Thanks In advance
G.Nagaraju
|
|
|
|
|
Set the AutoCompleteSource property of the ComboBox to ListItems (if in .NET 2)
If you're using .NET 1.x then you'll need to write or use a combo box which supports autocomplete. There are a few articles on this site regarding this.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
I have set that option,but not able to get wat i want.
please can u explain with code or give me a url please
Thank u very much
Nagraj
|
|
|
|
|
Nagaraju_Focus wrote: give me a url please
Can you give more information?
Nagaraju_Focus wrote: I have set that option,but not able to get wat i want.
http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.autocompletesource.aspx[^]
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Hello All .I am workin in a very small company .we have our network system .We want to work on .net so tell us how n where we should install .net.
We have 20 system in which one is server .We want to use our server to work on .net and its project.
tell me exact process to .net installetion on network system . I know about single system which is work through localhost.
My server have NT 2000 operating system.
Thankyou in advance.
Life is not easy ,let's make it.
|
|
|
|
|
Install it on each machine that is going to be used for development.
I'd like to help but I am too lazy to Google it for you.
|
|
|
|
|
Hi All , i m very new in .net erra and i want work on .net So help me that where i can download latest .net framwork.
Send me url.
Thankyou in advance.
Life is not easy ,let's make it.
|
|
|
|
|
Go here[^] and do a search for downloading .net frameworks.
I'd like to help but I am too lazy to Google it for you.
|
|
|
|
|
I'm trying to make Outlook addin that will add one button to outlook context menu---
(VB.net / C# .net (NO C++ .net))
first,
ActiveExplorerCBars = applicationObject.ActiveExplorer.CommandBars
then
cmdbar = ActiveExplorerCBars.Item("Context Menu") 'cmdbar is commandbar object "^getting error here"
control = cmdbar.Controls.Add(MsoControlType.msoControlButton)
With control
.Caption = "kedar"
.visible = true
..... other props
End With
but i'm gettin an error that the parameter "Context Menu" is incorrect @ cmdbar = Active......
"i have seen code working in vb but not in vb.net so keep that in mind and reply for vb.net"
i've refered -- http://www.outlookcode.com/codedetail.aspx?id=526
http://www.outlookcode.com/codedetail.aspx?id=314 ?
and similar codes but they'r not of any use to me,.....
I think "Context Menu" is not a valid parameter. But accordg to other resources i've cometo know that outlook has that Named menu.
I'd like if anyone can post a code to add the button to context menu.
thnx in advance
"You can do any thing you set to your mind" - theGhost_k8
|
|
|
|
|
In VC++.Net , I have to create an VScrollBar,it usually has one Up arrow End and
One down arrow end
My Application is like this:
I have to create vscrollBar which is Having Both Up and Down arrows at both ends.
means
At UpEnd:UpArrow+DownArrow
at DownEnd:UpArrow+DownArrow
I dont know how to create These type of requirements in MC++.
Please Suggest me ,to get rid of this.
Thanks In advance
G.Nagaraju
|
|
|
|