|
Friends,
We all know that there are three buttons on titlebar i.e minimize, maximize and close.
I want to add my custom button on the titlebar near minimize button. How can i do so ?
Imtiaz
|
|
|
|
|
With Interop wizardry
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
But how ? What APIs to call ?
Imtiaz
|
|
|
|
|
Try typing in your question (in the subject line) as it is into Google. Take a look at the fourth or fifth result which is the first CodeProject hit. That should explain it all (but it is in C++).
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Hello
The best practice I can think of is to inherit a class from Windows.Form, and handle its drawing yourself
Otherwise putting a control outside the client area at runtime -though I think it's not impossible- would be extremely difficult
Regards
|
|
|
|
|
hi
you can use this code Smile |
private void btnmin_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}
|
|
|
|
|
Dear gurus,
I need your help.
For configuration I Sometimes see two typical files with a name as
"app.config" and "myprog.exe.config".
They seem to have similiar impact/meaning.
Can you give me some advice?
Thanks a log
|
|
|
|
|
After building, app.config gets copied to your bin folder and is renamed as myprog.exe.config. So, as a developer app.config is the one you need to modify as required.
Kevin
|
|
|
|
|
|
Hi.
using the follow code I can answer to a call, but in the while loop, I want to receive data from the calling phone, that a person is speaking.
serialPort1.BaudRate = 56000;
serialPort1.PortName = "COM3";
serialPort1.ReadTimeout = 1000000;
serialPort1.Open();
serialPort1.Write("ATA\n\r"); //Answer a call
string str;
while (true)
{
str = serialPort1.ReadExisting();
}
Best wishes
|
|
|
|
|
If you want to receive "data", then use :
while(true)
{
try
{
string receivedMessage = serialPort1.ReadLine();
Console.WriteLine(receivedMessage);
}
catch(TimeoutException)
{
}
}
Put this method in a new thread.
If you want to receive the "sound" from the person, I don't know how to do that.
I think, the "sound" is analog, that's why the modem is an analog modem.
You need something to digitalized it, something like Analog-Digital-Converter.
|
|
|
|
|
No,
now it's important for me that when the person speaking, I receive data.
no exactly sound.
in the str I receive data.
how ?
Best wishes
|
|
|
|
|
A normal analog modem doesn't do that.
If the modem receive a "sound", you receive nothing
from serial port. You can only hear from the modem
speaker that your partner say something.
|
|
|
|
|
And if he presses any key of phone device, then again I can't receive any data ?
Best wishes
|
|
|
|
|
Hello
When a caller presses a button in a voice call something called DTMF tone is generated. To learn how to handle DTMF tones revise your TAPI documentation in MSDN
Regards
|
|
|
|
|
Hello
mehrdadc48 wrote: I want to receive data from the calling phone, that a person is speaking.
Modems actually work in several modes. Two of them are
1- Voice calls
2- Data calls
You can not transfer data in a voice call. On the other hand you can transfer voice -as a data stream- in a data call. This is called Voice Over IP.
If you are making a voice call -for example an ordinary phone is calling your phone line, and you want to record this using your computer-. In this case you should capture the audio stream from the modme speaker's audio line.
If you are developing something like a messanger that works on phone line instead of the internet. Transfer your voice as an audio stream. This way you can transfer data with it-eg. files, pictures, text, etc...-
Your loop should work if it's a data call -supposing that your modem's AT command is working-. Yet take care that this loop will go forever until you call a break;
It it's not working for some reason or another, post more details on your problem, so that we could get more oriented with it.
Regards
|
|
|
|
|
"you should capture the audio stream from the modme speaker's audio line"
please tell me how to do this ?
And how this?
"Transfer your voice as an audio stream"
I prefer that do this in managed code in c#
-- modified at 11:34 Tuesday 15th August, 2006
Best wishes
|
|
|
|
|
|
My freind,
I want to capture analog sound from modem ..
"You can not transfer data in a voice call"
I want to recieve voice in voice call(not data call), in my application not on modem speaker
-- modified at 5:37 Wednesday 16th August, 2006
Best wishes
|
|
|
|
|
Hello
I was only giving you all the possible options in using the modem.
If it's only voice you want to receive then using voice call would work fine. As I told you before you would use TAPI -ie. Telephony Application Programming Interface-.
Read TAPI documentations for details. For more specific help, you may repost.
Regards
|
|
|
|
|
Hi,
I have a variable called 'fromDate' which is a DateTime value and I need to pass it into the following scenario:
DataTable table = myclubDataSet.Tables["TresReports"];<br />
string expression;<br />
expression = "ReportDate = #1/01/2006#";
DataRow[] foundRows;<br />
foundRows = table.Select(expression);<br />
for (int i = 0; i < foundRows.Length; i++)<br />
{<br />
int rowis = (int) (foundRows[i][0]);<br />
totalBF = Convert.ToDecimal(myclubDataSet.Tables["TresReports"].Rows[rowis]["BalanceOH"]);<br />
}<br />
Thanks,
Glen Harvy
|
|
|
|
|
Like this:
expression = "ReportDate = #" + fromDate.ToString("dd/MM/yyyy") + "#"
Verify the date format, though. I had to guess, as you are using a date format that doesn't follow the ISO 8601 standard.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for the response. I should have remembered this - it's getting late at night here
Format's OK - we're just different here in Australia
Glen Harvy
|
|
|
|
|
In my MasterPage I have this code:
private string _callbackResult = null;
protected void Page_Load(object sender, EventArgs e)
{
string cbReference = Page.ClientScript.GetCallbackEventReference(this, "arg", "Result1", "context");
string cbScript = "function UseCallback1(arg, context)" + "{" + cbReference + ";" + "}";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "UseCallback1", cbScript, true);
}
public void RaiseCallbackEvent(string eventArg)
{
string res = AgentLogin(eventArg).ToString();
_callbackResult = res;
}
public string GetCallbackResult()
{
return _callbackResult;
}
When I open the first page - everything is ok! But when I move to the second page I can see that there is no "UseCallback1" JavaScript function in HTML!
Help me please to fix this problem!
-- modified at 4:16 Tuesday 15th August, 2006
|
|
|
|
|
How could i set righttoleft for listbox when im using draw item event and the listbox Drawmode is set as OwnerDrawFixed.
i tried following code in drawitem event:
this.li_author_persian.RightToLeft=RightToLeft.Yes;
but it doesnt work.
|
|
|
|