|
You should create an Image and all graphics save to it. For example:
Graphics grafika;
Bitmap obr = New Bitmap(this.Width, this.Height);
grafika = Graphics.FromImage(obr);
e.Graphics.DrawImage(obr, 0, 0);
Zło to zło. Mniejsze, większe, średnie, wszystko jedno, proporcje są umowne, a granice zatarte.
|
|
|
|
|
Dear All,
I have a DataSet which has a relation, table A is parent table B. I want to show only data of A on Datagrid. But in front of each row of datagrid, have "+" mark. I want to hide the "+" for each row ( don't clear Relation in this Dataset).
Please help me solve this problem.
Thanks alot.
inew
|
|
|
|
|
I haven't tried this just now, but have you tried dataGrid.DataSource = dataSet.Tables["tableA"]; assuming that your table is called tableA?
HTH.
Cheers,
Vikram. "When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.
|
|
|
|
|
why i can't install ms sql server en version on italian xp ???
|
|
|
|
|
Hi
Where i cand download some free version of ms-sql server cloud you give me exacly url becaus i know is exsist some free version but i don't find it???
|
|
|
|
|
You're probably looking for SQL Server 2005 Express edition. It's available from the MSDN website http://msdn.microsoft.com/[^]
WM.
What about weapons of mass-construction?
|
|
|
|
|
how to create excel sheet using c# withoue excel objects
.
can anyone help...
thanking in advance..
byeeeeeee
sree
|
|
|
|
|
Can you be more specific?
If you just want to be able to view the output of your program in Excel, you can create a CSV file.
Cheers,
Vikram.
http://www.geocities.com/vpunathambekar
Google talk: binarybandit After all is said and done, much is said and little is done.
|
|
|
|
|
Hi Sree,
ComponentOne has a component, C1XLS for .NET, that will allow you to create Excel spreadsheets. Excel does not need to be present on the development or end user's systems to create the xls file. The evaluation version includes samples and documentation that will show you how to get started. Versions of the component exist for both the 1.x and 2.0 .NET Frameworks. For more information, please refer to the following link: XLS for .NET Information[^]
Suelinda W
Customer Engagement, ComponentOne LLC
|
|
|
|
|
How can I create a windows service in such a way that it allows me to install multiple instances with same name (may be someting like versioning) on a single machine???
Any help to accomplish this task will be greatly appriciated.
I would love to change the world, but they won't give me the source code.
|
|
|
|
|
You can't create multiple instances of a service with the same service name. This is because a registry key is created using the service name. The only way around this is to use a different service name for each instance (i.e. Service.1, Service.2, Service.3, etc.)
|
|
|
|
|
I want to retrive all the files in a directory of certian types (.bmp, .jpg, .gif) etc etc. But I seem to only be able to pass in a single filer to the functiond
filesInDirectory = Directory.GetFiles(PictureDirectory, "*.jpg");
Works fine but:
filesInDirectory = Directory.GetFiles(PictureDirectory, "*.jpg;*.bmp");
Does not work correctly at all, Is there any way to do this, without calling multiple times and joining arrays?
Also it seems to just return them in alphabetical order, is there anyway to return them in the way they are sorted/being viewed in Explorer?
Thanks!
|
|
|
|
|
I googled a bit and tried using ; and | as separators, but they don't work. In fact, using | as a filter separator throws an exception. I suppose the best bet is to call the method multiple times and club the results together.
Kluch wrote:
Also it seems to just return them in alphabetical order, is there anyway to return them in the way they are sorted/being viewed in Explorer?
Are you saying that if the contents of folder Foo appear sorted by name in Explorer, your app should offer them sorted by name; and if the contents of folder Foo appear sorted by date created in Explorer, your app should offer them sorted by date created? AFAIK, there's no way to do this.
Cheers,
Vikram.
http://www.geocities.com/vpunathambekar
Google talk: binarybandit After all is said and done, much is said and little is done.
|
|
|
|
|
ive got a problem, and i dont understand why it happens. when a function is called, it is suppoed to open a new form:
namespace.cmdfeedback feedbackform = new namespace.cmdfeedback();
feedbackform.OtherForm = this;
feedbackform.ShowDialog(); but the form isnt displayed. however, if i add a messagebox.show(""); to the new form, the form gets displayed (as well as the messagebox). how can i get the form to display without the messagebox? i have no clue wat is causing this. here is the code for the form that should be shown.
public cmdfeedback()
{
InitializeComponent();
}
private void cmdfeedback_Load(object sender, EventArgs e)
{
timer1.Enabled = false;
this.Show();
OtherForm.statusbox.AppendText(Environment.NewLine + "Data recieved from client.");
try
{
richTextBox1.Text = "something";
}
catch (someexception)
{
richTextBox1.Text = "Error recieving data.";
}
}
-- modified at 19:57 Friday 25th November, 2005
|
|
|
|
|
This is a shot in the dark, but can you try feedbackform.Focus() ?
Cheers,
Vikram. "When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.
|
|
|
|
|
Well, this happens because the form, normally, won't show itself until the Load event is completed.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a program that has a form1.cs which calls and starts each thread in the workerthreaded.cs file. While the program is running it fully freezes until it stops. How can you make this so it always runs and the interface can still be used while the code is still running?
|
|
|
|
|
the code is:
<br />
Application.DoEvents();<br />
You can write it before the thread starts...
I hope it helps
Enrico
|
|
|
|
|
|
I have opened a Word Document and done a compare to another document, setting WdCompareTarget to New. Where I am stuck is saving the new document without user interaction.
Here is the code that compares the documents:
WordDoc1.Activate();
WordDoc1.TrackRevisions = true;
WordDoc1.ShowRevisions = true;
WordDoc1.PrintRevisions = true;
object CompareTarget = Word.WdCompareTarget.wdCompareTargetNew;
WordDoc1.Compare(
secondfile,
ref missing,
ref CompareTarget,
ref missing,
ref missing,
ref missing,
ref missing,
ref missing
);
If I do:
object SaveChanges = true;
WordApp.Documents.Close(
ref SaveChanges,
ref missing,
ref missing
);
then the Word Close box comes up and I can specify a name, but I'd like to save to a file specified in a variable. How do I get a reference to the new document?
Thanks ...
|
|
|
|
|
Word.ApplicationClass WordApp;
WordApp = new Word.ApplicationClass();
Word.Document WordDoc2;
Then, after the compare:
WordDoc2 = WordApp.ActiveDocument;
|
|
|
|
|
The program I'm creating allows a user to scroll through a waveform consisting of 10,000+ data points. As the user scrolls through the waveform, a magnified portion of it is displayed on another area of the screen. The magnified portion can plot anywhere from 0 to the entire length of the waveform's points.
Right now I'm having a major refresh slow down when the number of data points for the magnified portion is too large. To plot all of the points I'm using the Graphics.DrawLines() method. To help the performance I also added a Timer (50ms) to limit the number of Invalidate()'s when the user is scrolling, which helps a little bit.
I tried drawing the magnified portion with an offscreen memory bitmap, but it didn't really me.
Can direct draw help me with this in any way?
|
|
|
|
|
Well, you can only plot as many points as the width of your display window for this graph, which is what? 1024 points at most? If you show all 10,000 points, your overdrawing the same column of pixels 10 times before moving to the next one. Figure out how wide your client window is, this will be the number of datapoints you can show. Then do a little math to figure out how many datapoints to skip between adjacent pixels. For example, you'll only look at every 25th datapoint when plotting your graph.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
The magnified portion is plotting a lissajous signal, so the display width isn't a factor. I thought about "skipping" datapoints, but wouldn't that misinterpret the data being displayed?
Thanks for the reply
|
|
|
|
|
I am writing two programs, one in c++ and one in c#. These programs are using windows messaging to talk to each other. In the c++ program, I used this line of code to register the message to send...
UINT MSG_TAKEPICTURE = RegisterWindowMessage("CMD_TAKEPICTURE");
In the c# program I also needed to register the message. I did that with this line of code...
private const int CMD_TAKEPICTURE = 49855;
I got the number from stepping through the c++ code to find what number MSG_TAKEPICTURE was being assigned with. The message transfers worked fine. But when I rebooted the computer, this number changed. Is there a wildcard variable that I need to put in place of the number in the c# code?
Thanks,
Roy K
|
|
|
|