|
Display the full file path and then see if the file is there. I'll bet it is a relative path and its wrong.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I have a windows application, where i should find the spelling mistakes from a list of xml files.I used the following code and am able to list the misspelled words. The problem is, I have more than 1000 such xml files. Everytime a spell check is happening in an xml file, one Microsoft Word window is opening. To spell chek 1000 such xml files, 1000 word windows are opened at the sametime. But still, i have closed all those windows using code. Eventhen, every window is opened and then it is getting closed. This is visible to the user. Is there any way to hide the Microsoft Word window to the user? Or can i do spell checking without opening word? Please suggest me.
Thanks in advance.
The code i used is
Word._Document doc= app.Documents.Add(ref template,ref newTemplate,ref documentType,ref visible);
app.Visible=false;
doc.Windows.Application.Visible=false;
doc.Words.First.InsertBefore(strDesc);
Word.ProofreadingErrors we=doc.SpellingErrors;
iErrors=we.Count;
for (int i=1; i<=we.Count;i++)
strErrArray.Add(we.Item(i).Text);
app.Documents.Close(ref SaveChanges,ref OriginalFormat,ref RouteDocument);
Please suggest me a good solution.
|
|
|
|
|
I need to display a list which have a text and a button in each row. Which control will be good for this ?
I did this by creating a custom control that wraps TableLayoutPanel. I have create another control which has Label and a Button. Second control will be added to each row in the TableLayoutPanel. Inner control's events are handled by the control which wraps TableLayoutPanel and this control's events are handled on the form. Is this right approach ? Or is there any similar kind of controls available ?
|
|
|
|
|
If I am understanding your question correctly, a TableLayoutPanel having buttons in one column and textboxes in other alone would work.
|
|
|
|
|
|
How is this related to Windows forms?
|
|
|
|
|
Hi!
I have an application that has a keyboard-listener (system-hook).
It is being notified on any keyboad-event, even if the app-windows is not active.
As far as that it works as designed.
My problem is, that it is possible, that someone pushed the space-bar or the cursor-buttons, what effects on the GUI, e.g. to buttons, list-views, etc... So if someone presses the curser-buttons a highlight wanders around my gui. And if the spacebar is hit and a button was highlighted this button will be pressed. This is what i´d like to avoid.
What i´d like to have is to make the gui ignore these keyboard inputs (except textboxes, where you need the keyboard).
Is there a way of making the GUI-elements not react on keyboard-actions?
Thanx
J.
|
|
|
|
|
Handle the KeyDown event and set SupressKeyPress to True.
|
|
|
|
|
This didn´t work the way i need it.
For testing i just built a small App, containing a form with 9 buttons.
I handled the KeyDown-Event and set SupressKeyPress to true, but i still could navigation through my buttons with the cursor-keys and click them using the space-bar. I checked that with handling the Click-event, which behaved exactly like it did without SupressKeyPress set to true.
I guess that this keyboard events are handled BEFOR they even arrive at my KeyDown-handler.
The question is, if this prior handling can be suppressed in any way...
|
|
|
|
|
I tried the same and found one strange thing. Here it is:
I have three buttons and a textbox. On buttons click, button name will be displayed in the textbox. If I put breakpoint at keydown event, click event is not fired. But remove the breakpoint and its fired.
I guess you will need to override WndProc method to achieve your task.
|
|
|
|
|
That´s the same thing i experienced.
Strange...
Thanx anyway!
|
|
|
|
|
Hi all,
i working with windows applications(C#).i used webservice in this
.Application is working fine in vs 2005 but after deploying it is giving
error as - Unable to connect to the remote server .
can any body explain me how to resolve this problem ...
|
|
|
|
|
Well, if it gets this far, then it's not a deployment issue, .NET must be present. Firewall perhaps ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi ,
Thanks for ur reply . i disabled firewall and .net 2005 is there where im trying to installed this application.
one more thing i have to say .. here that deployed application is executing fine if first the application is exeuted in IDE .because the the service is still running after executing the application .
that webservice is not running when we execute exe file ..
i think u got what im trying to say ...
pls let me know if u get the solution ..
thanks
CSN
|
|
|
|
|
Hi,
excuse me if there is any error in my english
I think that the problem is not your application but the publication of the webservice in IIS, make sure that the webservice is accessible, typing the address in the browser.
Il principe
|
|
|
|
|
Dear sir,
1.we are developing one video-email project. in that we are using "CODEC" com object for video recording & displaying.
2.Coder records the viddeo. Decoder Disply the video.
3.We used Windows Media Encoder 9 series SDK.
4.we used WME-Interfaces(we used WMEncoder & IWMensouce Interfaces,... ) for recordig video,displying video etc....
5.NOW I WANT TO CHANGE VIDEO SETTINGS LIKE: "Brightness" & "color" & "sharpness" of the video
6.to change the video settings i want one API. i dont knoew how to use the the API call for changing the video settings
7.i have UI (User Interface) with 3 SLIDER BARS(track bars) to increase or decrease the brightness,color,sharpness.
8.i have 3 buttons(APPLY,CANCEL,OK) in that UI to change the settings.
9.And i have a DEFAULT button to set the brightness,color,sharpness to default.
9. while drag the SLIDER BAR forward/backward the brightness,color will increase/decrease respectively.
10.when i click on apply the settings will apply to the video.
this is my requirement please help me to complete my project.its urgent.
Regards,
Balaji.
|
|
|
|
|
How would one draw something onto the desktop (preferably just by using a Windows Forms control), so that it stays even when somebody presses Windows key + D?
Would I have to install a hook to intercept desktop paint messages, and draw using a window pointer that I had previously retrieved of the desktop's listview?
Or is there a way to make a window always stay visible, even after the command Show Desktop?
Why doesn't the window progman and its children disappear when Show Desktop is called? Is it because they are a special exception or because there is a list somewhere of windows not to hide when show desktop is called?
|
|
|
|
|
|
Unfortunately, the drawing disappears with any sort of screen refresh, when it should stay.
Do you think the idea in my original post is feasible?
An infinite loop could be used, but that would be a waste of processor.
|
|
|
|
|
Unfortunately I'm not aware of any solutions to your problem.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Hi,
I'm using VS2005 WinForms .NET 2.0, and noticed the following problem with the combobox control:
(Populate the combobox with some items first, and make sure one of the items is named "test" for this example)
Run the app:
1. Click the dropdown icon of the combobox so that the dropdownlist comes out
2. Enter the text "te" into the combobox. Now click on any other control. You will notice that the combobox's text has changed to "test." I want to CANCEL this behavior. I need the combobox's original text to be kept intact as "te".
Any help would be appreciated.
Much Thanks In Advance.
|
|
|
|
|
Hi,
Is this related to the setting of the AutoCompleteMode property?
Alan.
|
|
|
|
|
Hi,
I'm outputting some logging output to a TextBox, using the following code:
public void AddNewMessage( String message )
{
lock (this)
{
if (disposed)
throw new ObjectDisposedException( "PeerMessagesDisplay" );
String text = this.textBox1.Text.Insert( this.textBox1.Text.Length, message );
SetText( text );
}
}
private void SetText( String text )
{
if (this.InvokeRequired)
this.textBox1.Invoke( new Action<string>( SetTextHelper ), text );
else
SetTextHelper( text );
}
private void SetTextHelper( String text )
{
this.textBox1.Text = text;
}
</string>
But, whenever text is appended to the textbox, it automatically scrolls up to the top. This is bad when I'm trying to observe the output at the bottom or somewhere in the middle. How can I maintain the textbox's scroll position?
Thanks,
klk
madness ? this.isSparta = true : this.isSparta = false;
|
|
|
|
|
Use the AppendText method on the TextBox. I think that maintains the scroll position.
"An eye for an eye only ends up making the whole world blind"
|
|
|
|
|
Hey Rob,
This is a better solution, you are right. Unfortunately, it still always keeps the textbox's scroll position locked at the bottom. Is there a way around that?
klk
madness ? this.isSparta = true : this.isSparta = false;
|
|
|
|