|
I don't care if it's version 5 or 12. I just need an example.
|
|
|
|
|
Look at your first post:
"Microsoft Excel 12.0 Object Library" or
"Microsoft Excel 5.0 Object Library"
I have no clue which of them to use.
That is why you got the reply you did.
Mc_Topaz wrote: I just need an example.
Quote Selected Text
There's plenty on MSDN and Google if you know where to look
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
No I don't in that case. I have search on google and MSDN but those solutions did not worked when I have tried.
|
|
|
|
|
Hello, I am using the WebBrowser control in an application for it's user interface. So far I have been using links (#something) and the Navigating event of the WebBrowser so that the app knows what to do when the user clicks a link, however I have seen some applications that has the WebBrowser control embedded and use javascript to talk with the app (the link is visible, it's something like javascript:"some_function();").
My question is how to should I create custom javascript functions that map to functions from inside the app (built with c#, something like a javascript API for the app).
Thanks for your help
|
|
|
|
|
WebBrowser Control has a property named ObjectForScripting. You can assign it to any object whose class is marked as Com Visible.
That object will be exposed to javascript code as window.external. You can call any method exposed by the original object.
For reference and examples, look here: System.Windows.Forms.WebBrowser.ObjectForScripting[^]
|
|
|
|
|
hello forum
can anybody tell me how can i export and import text from rich text box to word file (.doc) in c# window application
regards
rahul
|
|
|
|
|
Hello,
I have a piece of code that should be subject to conditional compilation. I'm trying to compare the use of a conditional directive vs. using an if-condition over a const variable. The second approach looks safer from compilation perspective, but the first one has its advantages (e.g. save memory by not declaring unused variables).
I'd appreciate your help on best practices regarding this issue...
Many thanks to all helpful guys here in CP!
I really appreciate your help.
Know me better
|
|
|
|
|
Another alternative is to make it configurable.
It depends on just what it is you're trying to do.
|
|
|
|
|
Yes, but I don't need that level at the moment.
Additionally, making it configurable doesn't allow the compiler to do certain optimizations. For example, checking a const variable which is statically known to be either true or false gives the compiler an opportunity to optimize the check away, and keep only the relevant code (with unreachable code detected warning).
Many thanks to all helpful guys here in CP!
I really appreciate your help.
Know me better
|
|
|
|
|
Then use conditional compilation.
|
|
|
|
|
Hi there,
I am developing a C# program to record voice simultaneously from some microphones.
I need to save(record) audio inputs on some separate memory streams.
I use Visual studio 2005, a Delta 1010-LT soundcard which has 8inputs.
My problem is in two points, let's suppose that we have just two inputs to record from,
then 1st when I try to save two audio input streams on two separate files, just one of them
saves audio & at the same time two audio inputs get mixed together on just one file while the other one
is saved empty! I want to save them separately not mixed!
The 2nd problem is voice that been recorded; While it is mixed of two audio inputs, it has some gaps just
because of switching job of CPU during recording. I believe if the 1st prob get solved then the 2nd one
will be solved automatically.
How should I do that? Is there any Mixer API that can help me?Confused
Thanks in advance Smile
|
|
|
|
|
I'd work on getting one channel to record properly before
worrying about multiple channels.
If you have gaps you're doing something wrong.
How are you getting audio from the sound card?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hello forum
i need to change the font of text in hindi on runtime.For that i need to installs new fonts of hindi langauage to visual studio.
Do i need that??
How can i do that??
Regards
Rahul Adya
modified on Sunday, September 21, 2008 9:37 AM
|
|
|
|
|
Fonts are installed in the OS. Control panel|fonts
|
|
|
|
|
Hi guys
I want to know how to display a picture stored in an attachment field in an Access 2007 database in a Visual C# picture box or more generally exporting a file from an attachment field in access 2007, I searched a lot but couldn't find, Please help.
Thanks.
©2008 NukeWare
|
|
|
|
|
|
hey guys
Im working on a project that connect users to a recording server.
so i have one ocx file that need to be dragged to a from(win froms),
then im using his fucntions (connnecting to the server and so...)
i would like to work with that ocx file on asp .net ...
is there a way to do it ?
|
|
|
|
|
Hello.
I have been creating a simple irc client that connects to a server and sends some simple commands to it
I have also figured out how to retrive data from the server by using streams
The problem is I have to run a never-ending while to keep retriving all the data from the server
I do it like this:
while ((inputLine = reader.ReadLine()) == null)
{
listBox1.Items.Add(reader.ReadLine());
}
The problem is that my form doesent respond (I cant use buttons, and such) since the while is never-ending
Is there any way of adding a event that triggers when there is new data from the server?
Here is my project:
dumpen.dk/include/files/IrcBot.rar
And a bonus question: When connecting to Quakenet and joining a channel it says: 451 Register first
Why is that?
|
|
|
|
|
Casper Hansen wrote: while ((inputLine = reader.ReadLine()) == null)
{
listBox1.Items.Add(reader.ReadLine());
}
Are you sure that logic is correct? You have essentially written this: While the reader is exhausted add the next line to the list box.
This will go into an infinite loop and effectively block your program for eternity, or until you externally kill the process, or until the memory of all those empty items in the list box is exhausted.
|
|
|
|
|
Well no :P
Thats why I ask here since I cant seem to come up with a solution
|
|
|
|
|
Actually, your question was about whether a specific feature was available in a framework. You did not question the logic.
|
|
|
|
|
I would like help with the logic as well or just some other soloution for my problem
|
|
|
|
|
Is this the correct way of using thread?
using System;
using System.Windows.Forms;
namespace mutlithread
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
void FakeUIUpdater(string textboxText)
{
UIUpdaterDelegate updateUI = new UIUpdaterDelegate(UpdateUI);
this.Invoke(updateUI, new object[] { textboxText });
}
delegate void UIUpdaterDelegate(string textboxText);
protected void UpdateUI(string textboxText)
{
textBox1.Text = textboxText;
}
private void button1_Click(object sender, EventArgs e)
{
FakeUIUpdater("test");
}
}
}
|
|
|
|
|
I have a form 'frmProgressBar', which is shown as popup using obj.showDialog(). This form has a backgroundworker thread running, which keeps running till the processing in other forms is not compleated. I want to hide this form whenever the main form is minimised and this form is getting hidden also. But the problem is, when the main form is maximized, I want to show the popup form again. I checked !IsDestroyed which returns false, so the backgroundworker thread is still running, but the form on it is not displayed in the foreground. I tried Show(), BringToFront(), TopLayer = True, but nothing seems to work. Any hellp please.It is very urgent.
Thank You,
Prashant
|
|
|
|
|
bool bContinue = true;
public frmProgressBar(string Message)
{
InitializeComponent();
this.ShowInTaskbar = false;
lblMessage.Text = Message ;
backgroundWorker = new BackgroundWorker();
backgroundWorker.DoWork += new DoWorkEventHandler(backgroundWorker_DoWork);
backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorker_RunWorkerCompleted);
}
//This is called when my main window is resized
private void setWindowStateAccordingToMainForm(FormWindowState State)
{
if (this.InvokeRequired)
{
setWindowState d = new setWindowState(setWindowStateAccordingToMainForm);
this.Invoke(d, new object[] { State });
}
else
{
if ((State == FormWindowState.Maximized) || (State == FormWindowState.Normal))
{
if (!this.IsDisposed)
{
WindowState = FormWindowState.Minimized;
Show();
}
}
else if (State == FormWindowState.Minimized)
{
if (!this.IsDisposed)
{
WindowState = FormWindowState.Minimized;
Hide();
}
}
}
}
void backgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
this.Close();
this.Dispose();
}
void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
{
while (bContinue)
{
}
}
|
|
|
|