|
Actually when I declare teh public Properties for the Picture element of the activeX control what sort of object do I pass to the property like in the following declaration:
Public Property Get Picture () AS ????
what do I get teh piucture as in what format a string or an image?
I also have another simple problem on how to create instances of the line control at run time through code.
|
|
|
|
|
The Picture component loads a picture file into its image. So to load a picture you usually specify the file name of the picture to be loaded...a file name is a string. So you need to GET the file name as string
Public Property Get Picture () As String
|
|
|
|
|
i am not able to handle events (SelectedIndexChanged) fired by a combo box inside a datagrid
this is in VB.net
can anyone help me
thank u
Srikanth
|
|
|
|
|
Hello,
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). After a few hours of trying to find a method, I'm giving up and asking if anyone knows how to do this? I find it hard to believe that there's no "hit test" contained in the Rectangle or Point object types and that I cannot get a rectangle type directly from the text box itself!
thanks!
JennyP
|
|
|
|
|
By definition, the enabled property "Gets or sets a value indicating whether the control can respond to user interaction"-MSDN. It can't catch any user interaction, including the click, double-click events and the mousemove, mouseup, mousedown events that you may need to hittest. Try setting the read-only property instead. This makes the control able to receive user interaction but will still be uneditable. Good Luck!
|
|
|
|
|
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.
|
|
|
|