|
Does Word even support this ? Or do you mean replace ( not merge ) the image ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
actually i have inserted a image of a windows now i want to put mouse icon image on some specific point over previously inserted image.i don't know whether word support this or not.if possible then please let me know.
thanks,
praveen
|
|
|
|
|
I don't believe so, no. If you can't do it in Word, I doubt you can do it by controlling Word.
You want to draw an icon as you move the mouse, or make a permanent watermark ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
i have an icon image of mouse arrow i just want to put it somewhere over the image.
|
|
|
|
|
OK, if you want to merge it on once, perhaps you can retrieve the bitmap and draw your arrow on it.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
You just have to change the properties of the images so that they can overlap. Normaly, when images are defined "in front of text", they are able to overlap. Then you just need to change the position of the images. Try to make it manualy by recording in a macro your action, then get the code and adapt it to offie automation. it should work.
David Domingues at webrickco@gmail.com. Feel free to visit http://webrick.athost.net/index.php
|
|
|
|
|
Good People,
Why is the following code not compiling:
<br />
Random myRandom = new Random();<br />
int iNumber = 0;<br />
iNumber = myRandom.Next(1, 8);<br />
It keeps telling me that:
Error 1: Invalid token '=' in class, struct, or interface member declaration
and in reference to the function "Next(...)" of class Random, it tells me:
Error 2: Invalid token '(' in class, struct, or interface member declaration
Furthermore, when I try to use myRandom auto-complete does not see it. I am truly puzzled since I have the following usings:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
I am truly puzzled about what's going on. Any help you can provide would be greatly appreicated. Below is the entire partial class for reference:
namespace Chris<br />
{<br />
public partial class Chris : Form<br />
{<br />
public Chris()<br />
{<br />
InitializeComponent();<br />
}<br />
<br />
Random myRandom = new Random();<br />
int iNumber = 0;<br />
<br />
iNumber = myRandom.Next(1, 8);<br />
<br />
bool shouldDraw = false;<br />
<br />
private void OnMouseDown(object sender, MouseEventArgs e)<br />
{<br />
shouldDraw = true;<br />
}<br />
<br />
private void OnMouseUp(object sender, MouseEventArgs e)<br />
{<br />
shouldDraw = false;<br />
}<br />
<br />
private void OnMouseMove(object sender, MouseEventArgs e)<br />
{<br />
if (shouldDraw)<br />
{<br />
Graphics myGraphics = CreateGraphics();<br />
<br />
myGraphics.FillRectangle(new SolidBrush(Color.FromArgb(250, 155, 59)), e.X, e.Y, 5, 5);<br />
<br />
myGraphics.Dispose();<br />
}<br />
}<br />
}<br />
}
|
|
|
|
|
BlitzPackage wrote: int iNumber = 0;
iNumber = myRandom.Next(1, 8);
This code needs to be in a method, you can't set a value outside of a method, except the way you did it first ( to 0 )
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Thanks Christian, you're absolutely right!
|
|
|
|
|
Hello i am trying to override a listview's Items property i have created a new ListItems method that implements a custom UITypEeditor for ListViewItem allowing my to insert my own type that inherits from ListViewItem called ControlItem now sow far all of this seems to work properly however my problem is that when the designer serialized the newly created item it uses the wrong constructor
ControlItem controlItem1 = ((ControlItem)(new System.Windows.Forms.ListViewItem("")));
it is calling the constructor of the base class, is there a way for me to ovveride this behavior and tell it my own type to instantiate? i have tried the DesignerSerializationVisibility attribute but it does not seem to work.
here is the definition of the ListItems method
//[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
[Editor(typeof(ControlItemCollectionEditor), typeof(System.Drawing.Design.UITypeEditor))]
public ListView.ListViewItemCollection ListItems
{
get { return Items; }
}
i would appreciate any help that could be provided. thank you.
|
|
|
|
|
This doesn't really answer your question, but rather than use inheritance to add functionality to the ListView class, why not create a user control that simply consists of a fully-docked ListView? This way, you can expose a Items collection of any type you wish. Admittedly it's more work, but you end up with a better fitting control (rather than simply tacking on new specific behavior to a very generic control).
-Phil
|
|
|
|
|
Is there a way to do this? Have been unsuccessful sofar...
Wout
|
|
|
|
|
|
Thanks Colin, I suspected so too.
Wout
|
|
|
|
|
I've got a DataGridViewComboBoxColumn that I want to bind to a datasource. However, on load, I want the DataGridViewComboBoxColumn to display values in from the column of a table.
So I'm sort of looking at a double purpose DataGridViewComboBoxColumn: i.e When in Read mode it displays values from the tables Columns, and when in Edit mode it populates the DataGridViewComboBoxColumn with additional items.
I just cant figure out how to do this.
Live in fragments no longer. Only connect.
|
|
|
|
|
Have you tried to set the datasource property? , Also Set the Display member and the value member for that specific table values you want to display in the DatagridComboBox.
Let me know how it goes
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
It sounds like you want to set the DataGridViewComboBoxColumn's DisplayStyleForCurrentCellOnly property to True.
|
|
|
|
|
Hello,
I have a MasterPage with a Label that I want to display a custom description of the page and when the user clicks to different links on my website I would like that description to change. Anyone have any examples of how to do this or a site with an example?
Thanks
|
|
|
|
|
((MyMasterPage)Page.MasterPage).Label1.Text = "This is my description";
only two letters away from being an asset
|
|
|
|
|
Thanks for the prompt reply.
I'm having a hard time getting this to work.
My MasterPage is just called MasterPage.master and I tried putting the above code in the Page Load event for the content page.
I tried:
((MasterPage)Page.MasterPage).MenuLabel.Text = "Description";
After I type the first . after Page in the code Visual Studio's intellisense doesn't pick up MasterPage. I continued typing just to see what would happen and after the last ). intellisense also can't find the id for the label control. Am I doing something wrong or is there something else I may need to do?
Thanks
|
|
|
|
|
// In master page
public void SetLabel(string Text)
{
Label1.Text = Text;
}
// In default.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
((MasterPage)Page.Master).SetLabel("Default Page");
}
}
only two letters away from being an asset
|
|
|
|
|
hi
i was installed WebApplicationProjectSetup, but i don't found where does it.. can anybody help me for find it ?
thanks ..
|
|
|
|
|
Please help.., how do i load a file in the application i made upon double-clicking on the file itself? I need this without going through setup and deployment actions...Please anyone?
............
|
|
|
|
|
Lyfkcd wrote: how do i load a file in the application i made upon double-clicking on the file itself
Try looking here
http://www.codeproject.com/csharp/dateparser.asp[^]
Lyfkcd wrote: I need this without going through setup and deployment actions
I have no idea what you mean by this.
only two letters away from being an asset
|
|
|
|
|
Sorry for not describing my prblem well, im just new in programming. anyway, i meant modifying the registry.., didnt had the idea before, so i wasnt able to explain it very well. I meant, the file having default icons, file type, opens my own application through clicking the file itself...etc. Thanks 4 your help...
|
|
|
|