|
hi frnds..
i want to delete a row in datagrid when i select a row and press delete button,,, is there any event for that or how can i do this..
plse help me quick..
cheers..
|
|
|
|
|
Dear SamRST,
If you have added a delete column then can get the e on datagrid itemcommand event and the e.item.itemindex will give you the index and you can get the value of that row by this index and can delete that, or use select column and get the selected index changed event of that grid to do so.
Jwalant Soneji (BE IT)
Mobile: +91 9969059127
http://jnsoneji.spaces.live.com
http://jnsoneji.blogspot.com
|
|
|
|
|
thnks for reply,
its not enough bcose, i'm using windows forms , not web forms.. for web forms, its okay... but ..
cheers
|
|
|
|
|
ohh sorry, did not realize that...
Jwalant Soneji (BE IT)
Mobile: +91 9969059127
http://jnsoneji.spaces.live.com
http://jnsoneji.blogspot.com
|
|
|
|
|
I have just used the System.Windows.Forms.Application.EnableVisualStyles() method to enable the visual styles on an application but when I do it cuts the text off like there's too much padding around the text on the buttons.
Any help?
|
|
|
|
|
You're choices are obvious, but limited. Either make the buttons a bit bigger, or make the font you're using for the button text a bit smaller.
|
|
|
|
|
Well, it's not something that seems at all normal. Take a look...
PIC!
It's just wierd...
|
|
|
|
|
Since the text that is showing is missing the right side characters, but is still perfectly centered, it looks like the string being sent to the button is actually what's being displayed. In other words, it appears that the contents of the Text property is actually "Canc", not "Cancel".
|
|
|
|
|
That would appear to be the case but i would really like to know why it would only be passing that much to the form and why it hasn't happend to one of the other buttons...
This happens whether i use a dot manifest file or whether i use the activate visual styles method.
Has anyone else run into this problem, or could it just be my version of visual studio?
Cheers
Russ
|
|
|
|
|
Are you using .NET 1.1 (VS.NET 2003)???
If so, put this immediately after the EnableVisualStyles line:
Application.DoEvents()
<div class="ForumSig"><small><a href="http://www.codeproject.com/scrapbook/ForumGuidelines.asp">A guide to posting questions on CodeProject</a>[<a href="http://www.codeproject.com/scrapbook/ForumGuidelines.asp" target="_blank" title="New Window">^</a>]</small><br>
<font color="Blue">Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic<br> 2006, 2007</font>
</div>
|
|
|
|
|
Thanks, OK:
I tried adding the Apllication.DoEvents() line after it but there's no change.
Is this where I'm supposed to be putting these lines?
Public Sub New()
MyBase.New()
Application.EnableVisualStyles()
Application.DoEvents()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
Thanks again,
Russell
|
|
|
|
|
Are you using .NET 1.1 (VB.NET 2003)?? If not, which version?
|
|
|
|
|
Yes, it's .NET V1.1... is that going to make a difference?
|
|
|
|
|
Yep. There was a bug in the .NET 1.1 version. Where you put the EnableVisualStyles won't work. It's got to be launched before you instantiate your startup form, in a Sub Main. Something like this:
Public Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New MyStartupForm)
End Sub
Don't forget to change your project's Startup Form to Sub Main, instead of the actual form.
|
|
|
|
|
Thanks. I will give this a try tonight...
Cheers,
Russ
|
|
|
|
|
There must be something really wrong with my version coz even if I do that it still cuts stuff off!?
I'm downloading the express edition of 2005 as I type so I reckon that'll set me straight here. (HOPE SO ANYHOW!)
Cheers for the help,
Russ
|
|
|
|
|
hi all,
i want to block/unblock application (like MSword,internet explorer etc) using visual basic 6.0.
can anybody guide me or provide some link ?
any help will be appreciated.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
What do you mean by 'block' ? You can perhaps inject some code into another app and change how it runs using C++, but in VB6, your options are obviously limited.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi sir,
What do you mean by 'block' ?
sorry for my bad english
actually i want to that some user(system accout) should not be able to run(or use) some program(like MSword,paint,notepad etc or other exe).
i generate a window which show all user of system & lisst of program. Now i want to probihited some user for some program.
for this i want to block or unblock the application or program.
so how can acheive this thing using visual basic 6 ?
hope u understand my problem. Please guide me
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
Rupesh Kumar Swami wrote: so how can acheive this thing using visual basic 6 ?
You don't. This would require a technique that VB6 alone simply cannot do.
This ability already exists in the system though. It's controlled using Group Policy, no code required. Get the Windows XP or Windows Server 2003 Resource Kit and it's spelled out in there.
|
|
|
|
|
hi sir,
this is the part of my application. so i do not want to use this facility via operating system(XP,2003 etc)
can u explore bit more which technique i include to visual basic 6.0 to accomplish this task.
thanks for your response
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
You can't do it in VB6, period. End of story.
This can only be done using C++, and the technique is called "DLL Injection".
|
|
|
|
|
Hi
I am developing a windows application in vb.net.In my application
i want to download all mails from my server to my local machine
like Mozilla Thunderbird.I am passing a valid username,password
email and server name to function but how can i download mails
from my server to my local machine.Please guide me to solve it.
Thanks.
Rahul
|
|
|
|
|
Typically email is retrieved from a remote email server via either POP3 or IMAP.
To test whether either of these are running you can telnet to the server on port 110 (for POP3) or 143 (for IMAP) and see if you can connect.
Codeproject has a simple POP3 implementation article Here[^] in VB.Net, but it lacks MIME support. There are C# solutions on here that do support MIME.
Otherwise there's no shortage of resources on-line:
Google VB.Net IMAP[^]
Google VB.Net POP3[^]
I'm largely language agnostic
After a while they all bug me
|
|
|
|
|
Hi All,
I have developed some methods in VBA.
I am trying to get Dynamic Help using Ctrl+F1 for these methods.
I am not getting how to develop Dymanic Help for these APIs
Can any one help me on this.
Thanks and Regards
Jahnson
|
|
|
|