|
Sorry that my question was kind of non-descript. I'm trying to get access to the background color of an MDI parent. In the MSDN documentation for MDI, it states "be aware that the edge of the MDI parent form will pick up the system color (set in the Windows System control panel), rather than the back color you set using the Control.BackColor property." I want to know where Visual Studio gets access to this color and how I pick it.
|
|
|
|
|
Hi,
I have a process that batch prints reports to the default printer on a client
machine.
However some reports are longer than others so it would be useful to know
when the printing of each reports is complete (at least in the eyes of the driver/spooler...)
Is there a way using C# where I can check the state of the current job therefore
delaying the printing of the next item?
It would also help with delaying printing when the printer has run out of paper etc...
Thanks in advance.
Andrew
|
|
|
|
|
Hi everyone !!
I am using nUnit to test my production code. I came to know that nCover will pinpoint the code that has not been tested yet.
How to use it in VS.net...
Can any one give me a quick start...thanks
ihtesham
|
|
|
|
|
If I want to add an item to the windows explorer right-click menu for my C# WinApp. How do I do?
_____________________________
...and justice for all
APe
|
|
|
|
|
Hello
You mean shell??
Here, take a look at this article[^].
Regards
|
|
|
|
|
I have the need to output text to a file in which when its printed on a pre-printed form, the values in the outputted text file will match up with the boxes on the form. Like an automated typewriter of sorts. I'm doing this so far with the System.IO namespace. The issue i'm having is the space between carrage returns. I'm using a char[] and creating 5000 ' ' char in it and ever 80 chars i'm putting a '\n' char. Then using that to insert at a specific point in that char[] so when it prints its on the specified line and distance from L to R. But on a carrage return, there is a default gap, that gap is throwing off some of the lines. Does anyone know how to correct this, or have a better way of achieving this?
Think of it as a Doctor form that is preprinted blank... and I need to access data from a database and write it to a text file in such a way that when the text file is printed on this preprinted template... the outcome is matched up like you did it on a type writer. Make sense?
Thanks in Advance,
Scott
|
|
|
|
|
Hi
i want to know memory function in c#
just like
we use in vc++ are
memcpy();
memcmp();
memset();
what we call in c#
|
|
|
|
|
System.Buffer
|
|
|
|
|
I am using Multi-Column ListBox Control in my project and now i am facing a problem whenever i click on scroll bar side i am getting an exception -Cross-thread operation not valid: Control 'McListBox1' accessed from a thread other than the thread it was created on. i am not in a position to handle that exception , please help me in this regards.
REFRERENCE:
http://www.codeproject.com/vb/net/mclb.asp
|
|
|
|
|
If you are dynamically creating the control in your code, please check what thread that code is executing on. If it is not executing on the main thread of the application you might get these types of errors. Try doing the adding within a BeginInvoke or Invoke. That might resolve the issue.
--------------------------------------------------
|
|
|
|
|
Hello eveyone,
I wonder if I can make a webservice work via a desktop application in which this webservice manipulates a web application (for example change a label) ?
Lets me explain in detail. I want to click a button on my destop application (which is currently viewing a web application) and this will make a webservice start to work. This webservice -then- will change a label on the web applications.
Thanks for your helps and best regards.
.:: Something is Wrong ::.
|
|
|
|
|
Hi
I have a problem. I need your help.
In my Program, have file: app.Config
In file app.Config, I wrote.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="strConn" value="Data source = (local);Integrated Security =SSPI;Initial Catalog = Northwind">
</add>
</appSettings>
</configuration>
<
Now, I want change content in "value". New value put in from textbox.after it will update to file app.Config
|
|
|
|
|
The built in code doesn't allow this. You'd be better to move the values you want to be able to write to your own config file, although I believe you can open app.config with an XmlDocument and treat it as normal XML for the purposes of editing/writing.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
why wouldn't you use the Properties.Settings.Default ?
.:: Something is Wrong ::.
|
|
|
|
|
How to create a single instance of a application.Like when I will click the new button in an editor only one window will appear.when I will click the new submenu next time if the window is already exists then no window will appear.How to do it.
|
|
|
|
|
|
:-Dwhen u open the application ,u check the appliction thread in system at first,not have,go!else show info!
|
|
|
|
|
in an editor when I will click the new submenu,a dialog box will appear where I can put the filename.so when I will click the the save button in the dialog box,whatever the file name entered that will appear on the main menu.like msword
|
|
|
|
|
So where's the question?
Here's a site that explains how to open a file dialog: MSDN
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I have this line of code in a partially trusted assembly:
List<string> files = UpdateController.GetUpdateContents(updateFile);
It generates a SecurityException with the message "That assembly does not allow partially trusted callers.". However, I do have the following attribute in the UpdateController assembly, as follows:
[assembly: AllowPartiallyTrustedCallers]
Any ideas why this attribute is seemingly ignored?
|
|
|
|
|
I would delete my previous post if I didn't think this follow up may help some people. It was an easy mistake for me to have not checked the UpdateController assembly references as well. One of the referenced projects didn't allow partially trusted callers.
Always remember to check the whole chain.
|
|
|
|
|
I want to write a data base application that I have two application client and server.
The client send request to server and server process this request then send result to it.
Server always should waiting for request from clients.
Fam
|
|
|
|
|
Hi All,
i am using C#.net.And i am reading a file and then writing it to another file.
The code is as follows:
StreamReader reader = new StreamReader("Some Path"); <br />
StreamWriter writer = new StreamWriter( "Some Path", false );<br />
string line;<br />
<br />
while ( (line = reader.ReadLine()) != null )<br />
{<br />
if(some condition)<br />
{<br />
throw new ApplicationException("Unrecognised File Format");<br />
}<br />
.....<br />
.....some more "if" conditions..<br />
<br />
writer.WriteLine( "\n {0} = {1},", sometext, somevalue);<br />
}<br />
writer.Close();<br />
reader.Close();
So now if we observe,when any exception occurs, the application prints "Unrecognised File Format" and it doesn't write anything to the file.Also the output file is created first.
Now what i require is: Output File should be created only when there are no exceptions in the reading of the file."Some text" and "some values" are set when using the while loop..So how can i create a file when there are no exceptions in reading.
Plz Help Me!! Thanx in ADVANCE..
|
|
|
|
|
Why don't you first entirely read the file and [b]then[/b] create the StreamWriter object.
You can put the contents of the file to be read into an array first.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi all,
I want to match a string let say
{begin}
<img src="images/barrow.gif" align="middle"><a href="{=NavLink=}" class="topnav">{=LinkName=}</a>
{end}
from {begin} to {end} and put it in a variable so that I can replace the value of {=NavLink=} and {=LinkName=} coming from the database...
Can you please help me to find the exact regular expression syntax..
Thanks in advance for your help...
Suman Singh
|
|
|
|