|
sathishtl007 wrote: how to place a image over an image?
gr.DrawImage will draw an image into a graphics object. If that graphics object is made from another Image, they get drawn onto each other
sathishtl007 wrote: and how can i save this grouped images?
That's two questions
Just to be clear - you have only one bitmap, the bitmap you draw over it is not a grouping of images, it's a bitmap where a block of pixels has been changed to look like the source bitmap.
The Bitmap class has a Save method.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Im using an external dll called yWorks. I need to strong name it to work with my project. I've read into sn.exe and al.exe, but cant seem to get it working.
Any help would be greatful.
Regards,
Gareth.
|
|
|
|
|
I found the answer to my question, thus i thought i would reply to my self incase anyone else ever searched for the same problem.
http://research.microsoft.com/~mbarnett/ILMerge.aspx
The above link is what you should use if you ever need to sign a dll which you have not created with a strong name.
Regards,
Gareth.
|
|
|
|
|
Clickety[^]
Use the link[^] command below to make your link usable.
|
|
|
|
|
Hi I am sure this is a stupid question, but I can't work it out and its driving me mad.
I have a asp.net C# web page. (Visual Studio 2005)
In the class declarations at the top I have declared a
<br />
Public String strTeacherName;<br />
In a button click method I give the string a value
<br />
protected void btnBook_Click(object sender, EventArgs e)<br />
{<br />
strTeachername = "xxx";<br />
}<br />
In a second button click methods I try to use the variable, but it is empty
<br />
protected void btnConfirm_Click(object sender, EventArgs e)<br />
{<br />
lblMessage.Text = "You booked your lesson with " + strTeacherName;<br />
}<br />
I am assuming that the second postback is clearing the value of strTeachername. What is the best way of passing the variable from one method to the other. At the moment I am using a Session variable, but that can't be the best way.
Any advice greatly appreciated...
Words fade as the meanings change, but somehow, it don't bother me.
|
|
|
|
|
i can not see any error in the way u are using the variable. you should look on another place where you are using this variable and making it empty. Try the find utility (Ctrl + F) and type the variable name it will lead u at all the places where the variable is found.
if you can provide all the code, maybe i can help more
Jamil abou khalil
|
|
|
|
|
That's because it's an ASP.NET question.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
This question is better in the ASP.NET Message-Board
I'm not so good in ASP.NET but i think you must it store in the session variable.
Because the page is loaded all the time aat new, so all informations are cleared (re-settet)
The Session-Object is all the time avaible. There you stock normally the choises of the Visitor or his
entered infos ...
So, why not the Teachers Name
You can also pass the Name by sending it to your requested page via URL, for example
But that isn't a good idea
|
|
|
|
|
Your class is regenerated every time you postback. Think of each postback as a new instance of the same class. You have several options, including session state ( lives on the server ) and viewstate ( gets encoded in the page, so goes down to the client ).
Typically, I would do what you're wanting to do with a property, like this:
private const string teacherName = "TeacherName";
private string strTeacherName
{
get
{
string s = ViewState[teacherName];
return string.IsNullOrEmpty(s) ? "" : s;
}
set
{
ViewState[teacherName] = value;
}
}
I put the key for the viewstate into a constant string so that there is never a mix up between them, and use IsNullOrEmpty to not have to deal with nulls in the rest of my code ( it will be null to start with, obviously. )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Making it static will also cause the value to persist between postbacks.
public static string strTeacherName;
|
|
|
|
|
Thanks everyone. I thought the Postback was the problem.
I will try your method Christian, thanks.
Words fade as the meanings change, but somehow, it don't bother me.
|
|
|
|
|
That works! Thanks very much.
I tried Christian's method but I was just getting a stack overflow exception caused by the Set contructor, for some reason. I still have much to learn.
Thank you all for you help.
Words fade as the meanings change, but somehow, it don't bother me.
|
|
|
|
|
No worries. You should probably do some reading as well, to get a better idea of the nature of ASP.NET and how your classes are used to generate HTML.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Yes. I have got a C# book which is good for describing classes and object orientation, and asp.net books which are good for other aspects, but none of them seemed to be able answer this one for me. I think they are too basic. If you have any good suggestions for a suitable book... I have an online voucher for www.ComputerManuals.co.uk to use up.
Words fade as the meanings change, but somehow, it don't bother me.
|
|
|
|
|
Hi everyone,
In a bit of a knot here chasing my tail. I have a webbrowser control embedded in a C# windows app which is calling a .CFM page to provide XML data as an output. I need a way to get this content into a text box in the C# application so as further processing can be carried out.
I am new to C# and would welcome any help that may be provided. The interface works and the webbrowser carries out the action required on the .cfm page it is just the farming of the form fiedl data that is required.
Thank you in advance.
Jarlath
|
|
|
|
|
If you're getting the data as XML, use an XMLDocument and XPath to pull it out.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thank you Christian,
but i know little or nothing of syntax operations and logic in C# as i have coldfusion background. Trying to make the switch to .Net technologies.
Any pointers on how to implement this???
I have an XMLDoc on the .cfm page ready to be extracted
Thanks a million.
Jarlath
|
|
|
|
|
Hi.
I'm designing a diary using a datagrid. The rows are the time in intervals of 15minutes and the columns are the staff members.
I'm able to load the appointments into the grid and what I currently do is calculate the timespan between the end of the appoinment and the start of the appointment, then is have the duration, from there I calculate the duration in minutes and devide that by 15 to get the amount of rows that must be occupied on the grid.
Is there some way that I can merge that amount of rows so that when I enter the details of the appointment I don't have to do it over and over for each row?
Many thanks in advance.
He who laughs last is a bit on the slow side
|
|
|
|
|
HI all,
i have a proble with the list box i am using.
When the user clicks in the list box i want to know if he click an item or he clicked in the white space inside the list box.
Thanks
Jamil abou khalil
|
|
|
|
|
There's a selected index property, I'd imagine that changes to -1 if you click on the box but not an item ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi christian
it is true that when u click in the box but not on an item the selected index will be -1 but whenever you click on an item and it is selected if you click another time in the box but not on an item the selected index will remain the index of that item.
Maybe u didn't understand my question: My problem is that whenever a user clicks inside the list box but not over an item; i want to un-select any selected item in the box (if any).
thanks
Jamil abou khalil
|
|
|
|
|
Hi,
use the "SelectedIndexChanged" Event
But if the user clicks on the same item it won't work ( if i'm remembering good )
private void listBox1_SelectedIndexChanged(object sender, System.EventArgs e)
{
// THE CODE
}
i hope it helps you
|
|
|
|
|
hi
i want to copy large file bye File.Copy method and show a progressbar for copying . how to do ??
thanks
|
|
|
|
|
File.Copy is a blocking function, so it doesn't report its progress. If you want to do so, I suggest you use 2 file streams to copy your file (use Stream, File.Open, Stream.BeginRead and Stream.BeginWrite).
|
|
|
|
|
Hi there,
I am trying to include a procedure where my application can write some information to a filethat 'might' be a help for me to understand why the application crashed. In C and C++, miini dump was used, what can I use for C# projects? Also, is there any way I can obtain this file remotly?
Many thnx
raff
|
|
|
|