|
Once again I have a problem!!!!!!! I m using 2 pictiurebox one 4 the face image and 1 for the hairstyle.... But cannot do brightnessa nd contrast on both picture boxes. I have also tried drawing the image instead of picture box but It isn't working tooo. Wht will u recomment to use picture box or draw them???????
And one thing more plz recomment me any book from where I can get help in this project...........
THANX BYE
|
|
|
|
|
you can do any which you like
for adjusting the brightness / contrast you should edit the image respectively
you should read this article[^]
[edit]
for reading you should read any book with basic concepts of image processing
go through articles here and you will gain a lot
[/edit]
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
we are doing a project for streaming video over the network in c#.net.
it is a client-server based model. the server sends bytestream to the client and stores it in the memory(memorystream). we are planning to use the directshow functions to play the video.
the renderfile function plays videos from a location in the hard drive. what we want is to play the video data streamed over the network directly from the memory of the client computer. this is really important, so please help us
thank you in advance.
are there any alternatives to this?
|
|
|
|
|
hey,
im also working on something similar, I need to stream video to a client from my server, how do i do that? i need a sample code.
thanks,
|
|
|
|
|
How to create crystal report in asp.net, C#
|
|
|
|
|
hi
GRAPH PLOTTING
if some one knows the method to plot the values in the array
|
|
|
|
|
There are lots of articles here on Codeproject.com, just use the search function
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi! All,
I am .net programmer (bigenner), whant to develop a mail application using .Net, can any one please help me how to start of withh the mail application development. preferabaly using C#, than vb.net
Please do help me out....
chandu
|
|
|
|
|
You can use the MailMessage Object to fill the from, to, subject, address. and then use the smtpclient object to set the SMTP server to be used and to send the mail Message.
jamil Abou khalil
|
|
|
|
|
Thanks!for the information you have given i have found a lot of details about how to go witht the mail application developement. but still if you would provide me some links which can give me the download of the sample mail application right from the scratch. it would be more help full.....
chandu
|
|
|
|
|
well i have made this app long back.. so here is the details..
first include namespace
using System.Web.Mail;
then follow these steps :-
MailMessage mail = new MailMessage();
mail.From = from;
mail.To = to;
mail.Subject = sub;
mail.Body = body;
SmtpMail.SmtpServer = server;
SmtpMail.Send(mail);
I should this should help you. and if you still fce any problem contact me
<<realin wuzz="" here="">>
|
|
|
|
|
Thanks! a lot for the help now i have got a bit idea how to go ahead with the Application. but now i am planning the desktop mail application like Outlook, so if you help me out how to go ahead it will be more helpfull...
chandu
|
|
|
|
|
Hi…
In my application…I am trying to add data received on comport in a rich text box. Rich text box is on second form & my SerialPort.datareceived event is on first form. Here is my sample code…
form2 f2 = new form2();
Serialport.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);
private void port_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
ReceivedData = comport.ReadExisting();
f2.Controls[0].Invoke(new EventHandler(delegate{f2.Controls[0].AppendTextReceivedData);}));
}
But I am getting error on the staement-
f2.Controls[0].AppendText(ReceivedData);
Error is - ('System.Windows.Forms.Control' does not contain a definition for 'AppendText')
I have only one rich textbox control on form2…
What is the problem…why I am unable to access "Appendext" method for the rich text box on ‘form2’ from 'form1'
Thanks,
Vinay
|
|
|
|
|
test two point:
1, is the RichTextBox in f2 accessable? use public test it again.
2, f2.Controls[0] is a control. if you can sure it is a RichTextBox, then test these
<br />
RichTextBox r = f2.Controls[0] as RichTextBox;<br />
if (r != null)<br />
{<br />
}
hoping this help.
|
|
|
|
|
I tried with u told...
But my richtextbox in f2 is not accessable from f1...Although declared it as public.
& RichTextBox's TabIndex is 0...
Thanks for your reply,
Vinay
|
|
|
|
|
Sorry 1 braket was missing...
Statement should me like this...
f2.Controls[0].Invoke(new EventHandler(delegate{f2.Controls[0].AppendText(ReceivedData);}));
& i am getting error on this staement for AppendText method...
Thanks,
Vinay
|
|
|
|
|
Hi!
If you read the error message (that's usually the prerequisite for finding out what's wrong ) you'll see that the compiler tells you that Control doesn't have a method AppendText .
The Controls collection holds Control s, not RichTextBox es, so the error message can be explained easily.
Use ((RichTextBox)f2.Controls[0]).AppendText(...) to get rid of the compiler error.
But keep in mind that the code above is bad style. It's easy to add another control to the form and suddenly your RichTextBox isn't Controls[0] anymore - an InvalidCastException will result.
I think it's better to explicitely expose the RichTextBox as a property of f2.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi...
i tried your suggestion
((RichTextBox)f2.Controls[0]).AppendText(...)
but its didnt worked.
Can u tell me what you want to say exactly with-
"explicitely expose the RichTextBox as a property of f2."
Thanks,
Vinay
|
|
|
|
|
Modify your class form2 to contain
public RichTextBox MyRichTextBox
{
get {
return richTextBox1;
}
} and use f2.MyRichTextBox instead of f2.Controls[0] .
And by the way "its didnt worked" is not helpful at all - if you don't tell us what the problem/error message is exactly we cannot help you.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Thanks but...its not working...
Here is some more information ...Can u please help me...?
<br />
<br />
<br />
public SerialPort comport = new SerialPort();<br />
<br />
public Form f1;<br />
<br />
f1 = new ChildForm();<br />
f1.MdiParent = this;<br />
<br />
comport.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);<br />
<br />
<br />
private void btn_Senddata_Click(object sender, EventArgs e)<br />
{<br />
comport.open();<br />
comport.Write("This is the text to be transmitted");<br />
<br />
}<br />
<br />
public void port_DataReceived(object sender, SerialDataReceivedEventArgs e)<br />
{<br />
string ReceivedData = comport.ReadExisting();<br />
<br />
ReceiveLog(LogMsgType.Incoming, ReceivedData);<br />
<br />
if(f1.Controls[0].InvokeRequired)<br />
{<br />
f1.Controls[0].Invoke(new EventHandler(delegate<br />
{ f1.Controls[0].AppendText(ReceivedData); <br />
}));<br />
}<br />
<br />
<br />
<br />
<br />
<br />
RichTextBox MyRichTextBox = new RichTextBox();
<br />
<br />
<br />
<br />
What is the problem,i am not able to understand...
Thanks,
Vinay
|
|
|
|
|
Once again: Please read the error messages you get and try to understand them.
If you don't understand them, post them here so that we can help you!
With the code snipplet you posted I think the problem could be that you declared f1 as Form but in fact it's an instance of ChildForm .
The class ChildForm does have a public RichTextBox named MyRichTextBox , the class Form doesn't.
So to get your code to work you should change public Form f1; to public ChildForm f1; and your DataReceived event handler should read
string ReceivedData = comport.ReadExisting();
ReceiveLog(LogMsgType.Incoming, ReceivedData);
if(f1.MyRichTextBox.InvokeRequired)
{
this.Invoke(new EventHandler(delegate
{ f1.MyRichTextBox.AppendText(ReceivedData); }
));
} else {
f1.MyRichTextBox.AppendText(ReceivedData);
}
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
I am designing a workflow for SPS2007.In this i am creating six task by workflow.I got problem when I want to use InfoPath form, in Task Edit form in Task List.
Also I want to open All the detials of Six task created in Single Form and want to edit that InfoPath form.
bharat sukhwal
|
|
|
|
|
Hi All,
I have a compeleted project that uses ms access database and some images and crystal reports, how can I make an installation file (Setup file). concerning the directory path for db file. Also, in crystal reports I had to specify the db file path in side the code. I tried the built in component in VS2005 but I couldn't.
Very Urgent, Could any one help
|
|
|
|
|
You may set the db connection of Crystal Reports in code.
I used CrystalReport before, but I don't have these sample code at home.
Please get this from MSDN.
hoping this help.
|
|
|
|
|
I am replying for what i got to know about your unclear statements, i guess your problem is that when u install some application, then it doesnt find it resources like images,icons, bitmaps after installation, well mate.. for that while making setup file, Include them in a wizard and then include this line
AppDomain.CurrentDomain.BaseDirectory
it will refer to the current installation directry or from where the exe is being run
enjoy !
if u face any problem do contact me
|
|
|
|