|
Hello,
Thanks for the suggestion. I would rather not allow the user to tab in to the control (and any other UI features) associated with an enabled control.
In C++, there's hit test tools for obtaining the mouse position and comparing this to the object's rectangle and I can do most of this in VB, but cannot get the coordinates to match.... but I suspect that there is a simpler (and tried and tested) way.
thanks,
JennyP
|
|
|
|
|
You could place an image box over the control and when that is double clicked enable the text box, quick and dirty but effective
"If i was king cigarettes would be free."
|
|
|
|
|
Hi Jenny!
bitpusher wrote:
I've a text box in a group box on a form and upon startup, this box is NOT enabled. My UI behavior is supposed to enable the box if the user double clicks on it (I cannot get messages from the box itself while not enabled).
You're talking about a groupbox so I guess you're programming in Visual Basic .NET. I spent some thoughts about your problem and worte a little class which should do exactly what you want. Just give me another day or two to write an article and demo application.
|
|
|
|
|
Hi there!
bitpusher wrote:
My UI behavior is supposed to enable the box if the user double clicks on it (I cannot get messages from the box itself while not enabled). After a few hours of trying to find a method, I'm giving up and asking if anyone knows how to do this?
Well, I just finished my new article. Maybe this will help (if it doesn't let me know):
http://www.codeproject.com/useritems/CtrlActivator.asp[^]
Best regards
Dennis
|
|
|
|
|
A button's functionality in a Word 2003 form is to prepare an e-mail to be sent, with the form as an attachment. Here is the code I used in the click handler:
ActiveDocument.HasRoutingSlip = True<br />
With ActiveDocument.RoutingSlip<br />
.Subject = "New subject goes here"<br />
.AddRecipient "email@company.com"<br />
.Delivery = wdAllAtOnce<br />
End With<br />
ActiveDocument.Route
It worked ONE time, and ever since has caused Word to crash on the .AddRecipient line. My co-workers and I are a bit confused, can somebody provide some insight? Thanks.
|
|
|
|
|
How can retrieve data from DataGrid.
|
|
|
|
|
99% of the time, a DataGrid just displays whatever data it is bound to. So, to answer your very vague question with a general answer, you already have the data. There's nothing to retrieve from the grid. All you have to do is look at the object that you bound the grid to and there it is.
You might want to explain what your trying to do and how trying to go about it. Without any more specific information, it's going to be very difficult giving you a helpful answer to your problem.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Go to the property builder of YourDG and add something like a Select Button Column. Then do this:
Private Sub YourDG_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles YourDG.ItemCommand
e.item.cells(2).text.trim
End Sub
This way when you click Select, it will grab what's in the 3rd column of the selected row(DG columns are zero-based).
You can also read cells when the DG is bound using this:
Private Sub YourDG_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs) Handles YourDG.ItemDataBound
YourDG.Items 'etc
End Sub
|
|
|
|
|
How can I in VB.net get the ip of a client that is connecting to my server.
I am using the TCP class.
Thanks
|
|
|
|
|
.NET Framework Class Library
Socket.RemoteEndPoint Property
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetsocketstcpclientclassclienttopic.asp
|
|
|
|
|
Does anyone know of any good WYSIWYG HTML generator controls? I am attempting to create a program that will load a list of contacts from a database and then send an HTML formatted email to those individuals. Any help would be greatly appreciated.
Thanks!
|
|
|
|
|
http://www.itwriting.com/htmleditor/index.php
|
|
|
|
|
Is it possible in .NET to send email via default mail client (i.e. Outlook, OutlookExpress, NetscapeMail, OperaMail…)
Email message should consist of:
To, CC, Subject
Body (HTML)
Attachments
In deed, I need HTML with pictures, and it would be the best if that HTML can be a part of Body.
I tried using mailto: but for security reasons, Outlook would not attach a file (not telling anything).
I don’t want to send mail via the SmtpMail, nor OutlookClass.
This is the scenario:
Program generates HTML code for email message, exports the message to default mail client, opens it, the user enters To, CC, Subject lines, and chooses to send or not to send message (maybe he/she wants to save the message…)
|
|
|
|
|
Well, the only method I know of that will open every default mail client is "mailto:". But, like you said, it won't work with attachments.
The only other method that will work generically is to use the SmtpMail classes. You could use the MAPI API, but it's ALOT of functions and structure you'll have to P/Invoke. Either way, the SmtpMail classes just wrap (in a round about way) the MAPI libraries anyway.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i would like to create a scheduler that could be put notes in each day when a user click on any day in a month.
i do not how, where, what to start, and what i should need to do my wish.
could anyone help me? show me the way out
regards
|
|
|
|
|
You'll need a plan as to how you want this thing to work first. Do you want it to be Web based or Windows Forms? What do you want to present to the user for an interface? Where are you going to store your data? It starts with alot of planning and design...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If you want to use ASP.NET web application in your intranet to share the calendar over the network, try to read the information from here.[^]
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
hi,
I have 2 tab pages. On each tab, I put a checked list box and fill data to each checked list box on form load.
When switching between 2 tab pages, it seem the checked list box is filled data again. So, all the items that I checked in the previous tab page is lost when I come back to that tab.
How can I solve this problem? (the checked item is losing when I swith to another tab and come back).
Thanks.
|
|
|
|
|
write this line at the tab click procedure before showing the other tab
tabcontrolname.bindingcontext = me.bindingcontext
ur problemwill be solved
|
|
|
|
|
Thank you for reply me.
But where should I put that line? Under TabControl_Click or TabPage_Click?
I try 2 way but there's no way. Please explain more details.
Thanks.
|
|
|
|
|
On my VB.NET Windows form, I want users to select a color, which will later be the background color of an excel sheet's cell. Now when placing the color in an excel cell, the red and bleu values are switched.
Is there a way to convert the ARGB to a RGB value? Like, i want to have the values in three seperated integers obviously red, green and blue in values between 0 and 255
thnx in advance!
EddyStyle!
|
|
|
|
|
Damn this is simple... after some real fooling around on the web and through some msdn file, I noticed an color object as R, G, and B properties, which represent exactly what I want...
Color.R
Color.G
Color.B
job's done!
|
|
|
|
|
Dear Memebers,
Wishes to all !
This is akszn.
Here i am looking for some tips to create my own utility to autofill the contents in a web page fields.
Please suggest do anybody have developed it yet. If somebody have any Idea about it. please let me know.
To know more about google toolbar please visit : http://www.google.com
I want to know can we create that toolbar like google and how ?
Please spare your time to reply this post, its urgent
With Regards
|
|
|
|
|
erhm, I don't know the exact code, but I know that several examples and samples ARE available for such a control. Search this site for controls, you'll defenitly find one!
|
|
|
|
|
Hi Folks!
I have a BIG problem, i can't work further because of a little thing who doesn't work...!
I want to draw a Line in a VBA Makro but it doesn't work!
The function from PictureBox -- Image.Line(....) -- is not existing!!
Is there another way to draw a line in a picture in VBA?
I have only the x / y koordinates form start an end and between these a wan't to draw a line, i don't need more!
I hope soooooo much that there is a (easy) way to draw such a line!!!
Please help me!!
Thank you very very very much!!!!
Greetings, Ronny
|
|
|
|