|
Thank you, that builds.
Finally: Can you point me to the right direction what this does/means?
SomeControl.SiteReached += (s, ea) => miBack.Enabled = false;
SomeControl.SiteOpened += (s, ea) => miBack.Enabled = true;
SomeControl.ListOpened += new EventHandler(SomeControl_ListOpened);
Should I ask in C# forum?
|
|
|
|
|
The last one is easy
SomeControl.ListOpened += new EventHandler(SomeControl_ListOpened);
converts to
AddHandler SomeControl.ListOpened, Addressof SomeControl_ListOpened
The other two are rather tricky. They use lambda functions which VB doesn't really support. Essentially
SomeControl.SiteReached += (s, ea) => miBack.Enabled = false;
Says, "Add a new handler for SiteReached that takes two parameters (s and ea). This function will set miBack.Enabled = False ."
Making the Sub in VB is rather easy
Sub SomeControl_SiteReached(s as Sender, ea as System.EventArgs)
The hard part is duplicating the middle. If miBack is global or accessible from SomeControl_SiteReached then you are fine. If miBack is local to ManuItem1_Click , then you have a problem. You will have to find some way to change the Enabled state for miBack .
|
|
|
|
|
Hello,
I want to display menu list on specified hot key such as 'ALT + S'.But i m unable to get key combination.as i press Alt the keydown event is fire it does not accept combination .Please help .
'Keypreview = true'.
|
|
|
|
|
If its Menu then in menu you can specify the Short key by just setting the Values , you dont need to do anything Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Just wondering if the keypreview is causing the problem. I never use it but unless it is handled correctly it could zap the key combination as far as the menu is concerned. Just set Alt+S on your menu hotkeys
|
|
|
|
|
I like to calculate the total to a field [trn_qty] from Dtb1 [Datatable]. For that any ideas...?
My Query is
Dim Numbers = Dtb1.AsEnumerable()
Dim SvQy = (From n In Numbers Select n.Field(Of Decimal)("trn_qty")).Sum()
But Iam not getting any O/P. Also I don't know whether its correct or not... Any better ideas?
Thanks
|
|
|
|
|
I haven't tried your syntax but if you have null values, then you need to add a where clause to filter those out. 'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
dear friends, i need a vb.net project of "information visualizing system".in this project,generally we enter data inform of cost which is spend to carry out the project or any organization will display in form of pie chart or histo diagram.
|
|
|
|
|
Without wishing to put too fine a point on it then I suggest that you write one.modified on Monday, February 15, 2010 8:26 AM
|
|
|
|
|
TheComputerMan wrote: put too fine a point on it
I read your message and when i read the text above, instantly thought of 'They Might be Giants - Birdhouse in your Soul' http://www.youtube.com/watch?v=NAbZzdalZh4[^]
Strange how song lyrics just pop out of nowhere!
|
|
|
|
|
In which case, try specifying the system, then code it, test it and document it. Come back with specific problems, complete with your code Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thanks in advance
Is there any way to send email without using SMTP protocol Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
modified on Tuesday, February 16, 2010 5:41 AM
|
|
|
|
|
Not that I am aware of, but you could try a Google search to see if anyone has solved the problem. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Yes i had tried on google and other search engines etc but all most of them use SMTP Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
I don't know whether it's appropriate under your current restrictions, but you might be interested in this[^] CodeProject article on MAPI I are Troll
|
|
|
|
|
You could write out your email by hand and pop it in an envelope and send it using snail mail! Alternatively, you could fax it to someone.
|
|
|
|
|
Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
What are you trying to achieve?
You could use an IMAP client...........
|
|
|
|
|
I thought IMAP was for receiving mail, not sending? I may be wrong, I am not an expert but I thought you had to use SMTP to send mail.
|
|
|
|
|
yes man i have to only send email but because of the business nature of the client , he cannot enable SMTP . i also dont know much about Exchange , but will try to read now the documentation of the Exchange and gonna try web service provided by exchange as told by Ashfield
Any how thanks alot Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Hi For all
How we save image in table in sql server by vb.net code?
please guid me
thanks for all
|
|
|
|
|
Saving the image in your database isn't recommended.
It will only make the database grow fast.
Better way would be to save the path to the image.
If you have a multi-user environment (with network) you'll best copy the image to a network share and save the network share path in the database.
Be sure to use the correct name of the network share, so: '\\servername\sharename\...' and NOT 'Z:\'
In the last case Z: is a network drive pointing to: '\\servername\sharename\'
If you use that ALL your users need to have the same Z: pointing tot the sharename and it can never change, so using the full path (\\servername\sharenama\...') is safer.
If you would still like to actually store the image in the database, google gives you plenty of help:
goolge your friend[^]
|
|
|
|
|
I am making a costing software for a pharmaceutical company in VB6.The software has following details in it.
DataBase: Access (It includes following tables)
01. MatMaster (Material Master)
02. ProMaster (Product Master)
03. ForMaster (Formula Master)
Now i want to connect formula master with product master and material master, can anyone help me.(Formula Master includes a unique code which related to Product Master & Material Master) - Frankly speaking it just like making a "Invoice Software".
I also want to know which grid control should i use because i have to insert data as well as i have view it simultaneously.
thanks in advance.
|
|
|
|
|
you can use Datagrid or Flexgrid in VB for your issue.
|
|
|
|
|
The people who will tell you, that VB6 is obsolete and that it's a bad idea to write a new application with such old tools, will be here in a minute. "I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|