|
You will need a Graphics object for the image and then you can draw directly into it:
using (Graphics g = Graphics.FromImage(myImage)) {
g.DrawRectangle(new Pen(Color.Black), 10, 10, 20, 20);
}
|
|
|
|
|
Code for Keyboard hooks in VB .Net
|
|
|
|
|
|
Yes there is. Google for any requirements you may have. We are not in the habit of just giving code away. You don't learn anything like that. We will help you with your code, but we won't write it for you.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
For some reason, the CurrencyManager will not let me remove the last item in the collection. For example, if I have a CurrencyManager bound to a collection with a Form and Control bound to the CurrencyManager. I can remove any item from the CurrencyManager just fine with RemoveAt. However, if it is the last item , it simply ignores the call. It doesn't throw and error, it simply doesn't do anything. Count remains Same, Position remains 0. Even if I try calling CurrencyManagerVar.List.Clear(),
it ignores the call. Again, no error, just doesn't do anything.
But in my Another form it has worked fine with CurrencyManager.RemoveAt(CurrencyManger.Position)
Any Problem in my code?
My code is :
CurrencyManager.RemoveAt(CurrencyManager.Position)
I have also tried with
Dataview.Delete(CurrencyManager.Position)
And
Dataview.Delete(CurrencyManager.Count-1)
And also with
DatarowView = CurrencyManager.Current
DataTable.Remove(DatarowView.row)
above all are not working
|
|
|
|
|
Any examples out there of adding automation capabilities to a vb.net application?
|
|
|
|
|
|
hi
i have a form with toolbar.
if i use application.enablevisualstyles, all images on toolbar doesnt seem at run time, if i dont use application.enablevisualstyles, u can see images on toolbar buttons. What is problem?
Thank u
|
|
|
|
|
This has been well documented all over the 'Net. A simple Google for "EnableVisualStyles Toolbar" would have revealed hundreds of hits. After the Application.EnableVisualStyles() line, add Application.DoEvents() . This will take care of the problem for you.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Relative Newbie would like to know what strategy to take to sharing classes, modules etc between projects.
|
|
|
|
|
|
how to derived from tabcontrol with dialog window
hai
|
|
|
|
|
What? This doesn't make any sense. Are you looking to create your own TabControl?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I request to give some guidence how to open a exe in the mdi form using vb.
Thanks in advance
goood
|
|
|
|
|
You can't.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Does the process class not work in an mdi form? I've never tried it on an MDI form, but I thought you could use process.start just about anywhere.
|
|
|
|
|
Yes, it does work. What it won't do is put the window of the process you launch in the client area of the MDI Parent form.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi all,
can we put a checkboxlist and a datagrid in the same panel????
how to make the checkboxlist and the datagrid being placed beside each other in a panel???
can someone give some guide.....
besah
|
|
|
|
|
Is there something wrong with dropping a Panel control on the form and then dropping the controls you need on the Panel?
If you do this programatically, just add the controls to the Panel's Controls collection. You can see an example of this if you read the documentation on the Panel[^] class on MSDN.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Can anybody suggest a free command button control with the following features :
Dropdown items list
Assigning icons for the items
Separator bar for the items
Rollover / mouseover effects or picture assignment
I am currently using ButtonPlus by Innovasys but it doesn't provide separator bar for items, icons assignment, title for the list and background color chaning for the list.
Thanks
mecracked
|
|
|
|
|
I've seen button that will do all that for a price, but never a free one.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
And which would that be ?
|
|
|
|
|
It's part of Infragistics NetAdvantage 2005 Vol.1[^] controls package. Product only runs about $500US add another $400 if you want support...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
please show me how can i preview crystal report using crystalreport component of vb
|
|
|
|
|
Hi Everyone, i'm working on a photo album in VB.net but i'd like it to have more of the XP styles. Can anyone help me out with accomplishing that. (Menus, Rounded Buttons etc.) Does anyone who has already done such a project have any sourcecode i could look at? thanks Much.
Niq
|
|
|
|