|
In that case I am not sure whether you can do it or not. However, when you build applications using designer you can embed images in the application so I believe the same is true for dlls too.
|
|
|
|
|
Whenever I need my hour glass MessageBox in a project, I want to simply grab one .cs file from my source control software and insert it into my project. Therefore, I prefer not to use the designer because then there are various dependencies. Thank you anyway for your input.
|
|
|
|
|
You can build a dll for you messagebox and just add reference to it whenever you need it. Then you can just use ilmerge or the tool suggested by me to merge dlls and application.
Another way is to include your image as byte[] in your source code and then create memorystream from it. Than you will be able to get the image too. Though I don't like this solution.
|
|
|
|
|
I don't like to make DLLs if I don't have to. If I find a bug in my MessageBox in the 10th project I'm using it in, I can easily step through the code and locate bug in the same project. Also, source code is always king when it comes to configuration management. Memorystream seems to be exactly what I was looking for. Thanks a bunch!
|
|
|
|
|
You are welcome
|
|
|
|
|
Hi all,
One way of displaying map of an area for a gps application is to have simple map image (e.g., jpg) together with geo coordinates of its each corner. since, I am just starting with this kind of application can anyone let me know if there is a better (standard) map file format? I need to display current location in the map and possible navigate user to certain point. the area of coverage is quite small (factory area).
regards,
rnv
|
|
|
|
|
Hi,
Refer to the following link:
GPS Mapping[^]
Map Grabber[^]
I hope this would give you better idea to start from.
John Adams
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
thank you John,
I already had a look but maybe i missed it..i could not get it correctly. If I have an image of an area (jpg) somehow i should specify its coordinates. is it specified in a separate file from the jpg file itself?
I managed to run map grabber example but it only creates jpg images. where are coordinates saved?
regards,
rnv
|
|
|
|
|
Hi There,
I would like to know if someone can assist me with the following:
I need to display data in a tabular format, but I would like to group the relevant data together. In the sample below I am using a asp:repeater to populate a table. The select statement in my code behind file would return data from different employees within different companies ordered by the company name. I want to group all employees from one company together and do a basic summary line before starting with the next company i.e. Number of employees found per company.
<asp:repeater id="employeeList" Runat="server">
<HeaderTemplate>
<tr>
<td width="200">
Company ID
</td>
<td width="200">
First Name
</td>
<td width="200">
Last Name
</td>
<td width="200">
Company
</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr bgcolor="#ccffff" style="FONT-SIZE: 12px; COLOR: red">
<td><%# DataBinder.Eval(Container.DataItem,"COID") %></td>
<td><%# DataBinder.Eval(Container.DataItem,"FIRSTNAME") %></td>
<td><%# DataBinder.Eval(Container.DataItem,"LASTNAME") %></td>
<td><%# DataBinder.Eval(Container.DataItem,"COMPANY") %></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:repeater>
|
|
|
|
|
Hai
Give me solution for converting the following
1) Ensure safe and proper custody of the proximity card at all times .2) Report to authorities, in case of a) Malfunctioning of card b) Loss of card
to:
1) Ensure safe and proper custody of the proximity card at all times .
2) Report to authorities, in case of
a) Malfunctioning of card
b) Loss of card
Thanks in advance
Praji
|
|
|
|
|
KP_Prajilal wrote: Give me
Thats a bad start.
You could use IndexOf or regex to help you find any instaces of ')' in your string, then once you've found a ')' you could replace the preceding space with an Environment.Newline
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Hi,
I am looking at a way to do zip compression in C#. Is there any free library that do zip compression as fast as winzip?
Thanks
|
|
|
|
|
|
GZipStream is very limited. If you have multiple files, after you archive them with GzipStream you will end up with a single file which has the same name as the archive.
|
|
|
|
|
May be, but that's the only thing that the .NET framework has to offer.
So, my other suggestion was the LZMA SDK, which is one of the most powerful compression SDKs (isn't written on managed code though, but can be used from managed code).
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Hi Rajesh,
I tried the LZMA, but the compressed file can't be open in Winzip.
Cheers
|
|
|
|
|
|
Hi Giorgi,
I have tried this. It is extremely slow for big files. But will try all other people suggestion tomorrow.
Thanks for your help
|
|
|
|
|
In .NET 3.0 there is also a ZipPackage Class[^].
Is something more than just a zip file (Office 2007 documents are based on it), but can also be used to manage archive files.
As the prevoius answers, I have no idea about its speed compared to WinZip.
|
|
|
|
|
Hi Mirko,
I have tested this class, it is very slow for big files. In fact, SharpZipLib is faster. But thanks though for this info. I have learned something new
Cheers
|
|
|
|
|
|
Yes!! That is exactly what I am looking for. I have to modify the code a little bit to support compression. Thanks Programm3r for your help
|
|
|
|
|
Hello once again. Just found this: DotNetZip[^] looks quite powrfull. Any ideas about speed/compression?
|
|
|
|
|
Works great, very speedy, good compression, good features. Recommended!
|
|
|
|
|
Hello all
i ma trying to learn how to program a windows service application
i had add an event log and a timer that used to write to file
here is the code
protected override void OnStart(string[] args)
{
eventLog1.WriteEntry("In OnStart");
timer1.Start();
}
protected override void OnStop()
{
eventLog1.WriteEntry("In onStop");
timer1.Stop();
}
protected override void OnContinue()
{
eventLog1.WriteEntry("In OnContinue");
timer1.Start();
}
FileStream fs;
StreamWriter sw;
private void timer1_Tick(object sender, EventArgs e)
{
fs = new FileStream(@"C:\tem.txt", FileMode.OpenOrCreate, FileAccess.Write);
sw = new StreamWriter(fs);
sw.BaseStream.Seek(0, SeekOrigin.End);
sw.WriteLine(DateTime.Now.ToString());
sw.Flush();
sw.Close();
}
and i had added an installer to install the windows service, i followed the instructions that is in the MSDN
http://msdn.microsoft.com/en-us/library/zt39148a%28VS.80%29.aspx
first it works and installed but when i tried to run it from the windows management console
it run and ends immediatly and i got a message telling me that some services closed coze it is not doing anything
when i tried to make a new installation package, and reninstall the service, the installation package failed to install the service and give me 2 messages
the first one saying that source of the service is on the local machine
and finally i got a meesage that the installation is interupted and ended not successfuly
plz help to resolve that.....
|
|
|
|