|
were would i find them or how would i play the note 'a' from the computer are there pre-recorded things, how would i do this?
IM PROUD TO BE A GMAIL;
|
|
|
|
|
It seems like your second or third time asking this question and you still didn't get an answer. I did a 10 second google search and found the perfect solution for you:
http://www.codeproject.com/cs/media/MIDIToolkit.asp[^]
What you want to do is play notes. In Windows the easiest way to do this is MIDI. The above link seems like a highly rated MIDI toolkit. I hope you figure it out
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
Hi,
I want to receive mail from my mailserver in c#. Could any one pls help with code.
Thanks,
Jr
jr
|
|
|
|
|
|
Hi there,
I'm trying to find a free NET excel spreadsheet style grid control that works well. Any ideas anyone...It has too be very easy, fast and comfortable to use, specially intended for input of a huge amount of data: easy navigation, extended copy and paste, row/colum reordering, dynamic row and column insert, etc.
Any help appreciated. The closest thing to what I need is a DataGrid MFC control posted in this web:
<url>http://www.codeproject.com/miscctrl/gridctrl.asp
...but I need it to be in Managed code if posible. Dont need source code, .dll would be enough.
P.D. dont need any incorporated databinding, will manage that myself.
|
|
|
|
|
|
|
Its not possible to insert negative sign into double textbox. Maybe anybody knows how to correct double textbox
control ?
|
|
|
|
|
Hello all
Thanks for your help
i check a some thing with if conditian i need it true check another condtion but if false cancel all the next steps
Regards
hay
|
|
|
|
|
Beginner question obviously.
if (<condition>)
{
}
else
{
}
If you need more help please be more specific.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
If it helps you you can use the following block:
bool success = false;
do {
success = DoWork1();
if (!success)
break;
success = DoWork2();
if (!success)
break;
...
success = true;
}while(false);
if (!success)
{
}
The do{...}while(false); is a clean way not to use a goto statement.
Another way is write something like:
bool success = true;
success = success && DoWork1();
success = success && DoWork2();
if (!success)
{
}
Regards,
Ami
|
|
|
|
|
Hi gurus,
Using WMI & C#, is it possible to monitor the CPU and graphic card temperature? If so, how? What is the query? I see that there is a Win32_TemperatureProbe class. Is the start point?
Thanks for the help.
Best regards.
There is no spoon.
|
|
|
|
|
I believe its possible. It depends if your hardware supports it though.
Yes Win32_TemperatureProbe is the correct place to start with. More information can be obtained here: MSDN[^]
If you need further help with something specific please ask.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
In addition to what Alex said, most motherboard manufacturers DON'T supply WMI providers for the chipset probes (temp, fan speed, ...).
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ok, that's why I have 0 item when I query the interafce.
maybe my motherboard does not provide WMI interface.
There is no spoon.
|
|
|
|
|
It's not the motherboard, but the drivers for the motherboard. You might want to check with the manufacturer to see if they offer any WMI Providers.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm attempting to write a "SQL Replication Watcher".
Basically I need to link into SQL somehow and determine 4 things:
1 - Is replication currently enabled
2 - Is replication currently active
3 - Are there changes on my machine waiting to be pushed
4 - Are there changes on the server waiting to be pulled
Assume that the subscriber/publisher relationship is already established and the SQL connection is completely reliable. I'm looking for very basic (ie: easy to follow) information here.
Thanks in advance!
Z - I never met a proof of concept I didn't like.
|
|
|
|
|
You should have posted this question in SQL forum. C# forum is for C# only.
As you might know replication is done through SQL Agent. There are programmatic interfaces available for controlling replication - I believe its an ActiveX lib. Google for it.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
But since I'm writing it in C#, and the SQL forum is going to be primarily people familiar only with SQL (and therefore not C#) this would end up being the appropriate place.
I'll see if I can find anything using the information given. Thanks.
|
|
|
|
|
No it wouldn't. You asking about funcitonality specific to SQL Server. It doesn't matter what language your writing your tool in. Any language you use is going to use the same SQL Server Replication API.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am creating a UserControl that is a collection of Panles setup in a grid format. Each element of the grid is a Panel. I allow the user to add text to the panel in one of Nine locations described by the ContentAllingment Structure.
The Text object is nothing more than a Label control. I'm using a gradient brush to paint the background of each panel in the grid and am setting the background color or each Label control to transparent. My problem is on the initial paintof the control, all the grid boxes are transparent until I move the window or resize the control. If I choose to not set the Label control's background property to transparent, then all the Panels get painted correctly, but the Label controls llok bad because they have a flat backgournd color while it's parent Panel gas a gradient background color. My question is, why would nothing be getting painted until the control is resized or moved.
Here is the OnPaint handler override
protected override void OnPaint(PaintEventArgs e)
{
try
{
LinearGradientBrush brush;
brush = new LinearGradientBrush(
ClientRectangle.Location,
new Point(ClientRectangle.Left,ClientRectangle.Bottom),
this.BackColor,
ControlPaint.Light(this.BackColor));
e.Graphics.FillRectangle(brush, ClientRectangle);
brush.Dispose();
foreach(PanelLabel PL in LabelArray)
{
PanelLabel lb=null;
bool LabelFound=false;
foreach(Control ctrl in this.Controls)
{
if(ctrl is PanelLabel)
{
lb = (PanelLabel)ctrl;
if(lb!=null)
{
ContentAlignment CA = (ContentAlignment)lb.SimpleLocation;
if(lb.Text==PL.Text && CA==PL.SimpleLocation)
{
LabelFound=true;
break;
}
}
}
else
continue;
}
if(!LabelFound)
{
lb = new PanelLabel();
lb.Font=new Font(lb.Font,PL.TextStyle);
lb.Text=PL.Text;
lb.SimpleLocation=PL.SimpleLocation;
lb.BackColor=Color.Transparent;
}
lb.Bounds=SetLabelLocation(lb,PL.SimpleLocation,e.Graphics);
if(lb.Bounds!=Rectangle.Empty && lb.Bounds!=ClientRectangle)
this.Controls.Add(lb);
else
throw new Exception("Label bounds are empty");
}
base.OnPaint (e);
}
catch(Exception Err)
{
MessageBox.Show("On Paint Error:"+Err.Message);
}
}
Any ideas are appreciated
|
|
|
|
|
Don't I know I understood if well the problem, but and if you force the shot of the event?
protected override void OnResize(EventArgs e)
{
base.OnResize (e);
using (Graphics g = this.CreateGraphics())
{
this.OnPaint(new PaintEventArgs(g,
this.ClientRectangle));
}
}
protected override void OnMove(EventArgs e)
{
base.OnMove (e);
using (Graphics g = this.CreateGraphics())
{
this.OnPaint(new PaintEventArgs(g,
this.ClientRectangle));
}
}
Marcelo Palladino
Brazil
|
|
|
|
|
(DR["Name"] is DBNull) vs (DR["Name"] == DBNull.Value)
I am curious as to which has better performance?
Thanks.
|
|
|
|
|
Neither. DBNull is a singleton class, the sole instance of which is returned by DBNull.Value . The code generated by the is and == operators is exactly the same.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello all
I need to search about space in string i tryed indexof but i dont know the space Code.how can i do this
regards
Hay
|
|
|
|