|
|
Hello there,
Can anyone name me a site where I can download a huge or a limited quantity of icon files (*.ico images)!
Your help will truly be appreciated,
Rajdeep.NET
|
|
|
|
|
Have a Google for free icons, loads of hits. You'll have to select what suits you, for yourself though.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Well I can give you advice If you are using visual basic . net Framework There you can make icon for you .exe files
Here I give you a link they have licence about you can free download there Icons for windows applicacion or what ever you want .
The link :
miloszwl.deviantart.com
|
|
|
|
|
|
Is it possible to somehow pass an image to a report? I have the byte[] but the ReportParameter only takes strings. So how do I pass the byte (which contains an image) and pass it to the report and display the image in the report?
Currently I'm passing this:
ReportParameter[] parameters = new ReportParameter[6];
parameters[0] = new ReportParameter("Tag", this.Tag);
parameters[1] = new ReportParameter("Completed", dateTimeCompleted.Value.ToLongDateString());
parameters[2] = new ReportParameter("HDModel", txtModel.Text);
parameters[3] = new ReportParameter("HDSerial", txtSerial.Text);
parameters[4] = new ReportParameter("HDSize", txtSize.Text);
parameters[5] = new ReportParameter("Signature", GetSig().ToString());
GetSig() gets the bytes:
byte[] GetSig()
{
MemoryStream ms = new MemoryStream();
Bitmap SaveBMP = new Bitmap(panelSig.Size.Width, panelSig.Size.Height);
panelSig.DrawToBitmap(SaveBMP, new Rectangle(0, 0, panelSig.Size.Width, panelSig.Size.Height));
SaveBMP.Save(ms, ImageFormat.Png);
byte[] sigPic = ms.ToArray();
ms.Close();
ms.Dispose();
SaveBMP.Dispose();
return sigPic;
}
But how do I display that in the reportviewer on the report?
|
|
|
|
|
hi
does return form a value such as function ???
|
|
|
|
|
Return[^] simply returns from the method (function). If the method signature specifies a return type then the return needs to return an instance of that type.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
thanks a lot
yes
but where must i write? in witch part??
|
|
|
|
|
Anywhere inside the method where it makes sense.
If the return statement isn't inside some kind of conditional block, anything after it will be unreachable.
You can have multiple return statements in a method by putting them (where appropriate) inside different conditions, but the recommendation is to only have one return - which is normally at the end of the method.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
If what you mean is "Does a form return a value in the same way a function does?", then yes it can:
frmSettings fs = new frmSettings();
if (frmSettings.ShowDialog() == DialogResult.OK)
{
...
}
But if you mean "Can a form return any value at all", then no.
But if you mean "wagga wagga bimmble bim olay-biscuit-barrel", then don't-sleep-in-the-subway-darling.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
If its a custom form, which it is likely to be, then you can just use a property as a 'return value' and access that after closing the form, then it can be anything (well not a cheeseburger of course )
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
OriginalGriff wrote: But if you mean "wagga wagga bimmble bim olay-biscuit-barrel", then don't-sleep-in-the-subway-darling.
I just gave you 5.
But only for that bit, you understand.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hello good fellas
I'm struggling since this morning about this sqlite thing.after reading some good tutorials i decided to use it as my embedded database in my winform application.
i downloaded SQLite-1.0.61.0-setup that install the system.datal.sqlite for me and downloaded the firefox plugin sqlite manager and another management tool called wxSQLitePlus found <a href="http://cfred.free.fr/wxsqliteplus.php">here</a> based on this tutorials found <a href="http://decoding.wordpress.com/2009/01/14/using-sqlite-with-net/">here</a> (just being explicit)
Hoping i'm not posting any stupid stuff that will be ignored, here are my 2 challenges.
the first challenge is that i can't reference the database inside a folder let'say database
i have exception "Unable to open the database file".my app.config is as follow
<code><connectionStrings>
<add name="embcon" connectionString="Data Source=database\iagency.db;Version=3;"/>
</connectionStrings></code>
but if the iagency.db is inside the root folder there is no problem at all.app.config like
<code><connectionStrings>
<add name="embcon" connectionString="Data Source=iagency.db;Version=3;"/>
</connectionStrings></code>
the second chalenge is that object created via tools such as either firefox plugin or wxsqlite+
cannot be queried inside visual studio 2005 that i'm using.if it's a table when queried , i have an excetion the object doesn't exist even though both tools displays the same data.
and inversly table created by queries inside visual studio cannot be viewed by the tools.
so what's the deal?
is it a memory stuff or i'm just missing some points?
can enybody explain what is happening ?Thanks for reading.
eager to learn
|
|
|
|
|
i just wanted to precise that i can connect to the database though the server explorer.and there is no table created from visual studio queries.but the table's data can be displayed on a grid when i run it.weird!!
hanging on your replies, i can't find anything meaningful to my case.thanks
eager to learn
|
|
|
|
|
I have to find a folder from the path where my application exist e.g. c:/programfile/RTGSL/exe/..
then from exe folder i have to copy two folders(with all data) name applicationdata & client from this path to the current logged in user's personal folder path i.e. C:\Documents and Settings\ashishjaiswal\Application Data\clientdata\ if and only if no folder exist at this path..
Can any body help me with this code .. I am really new to programming
|
|
|
|
|
OK, this one is not as easy as you would like to think. As far as I know you need to do all the work here.
Basically, you should first obtain you two folder paths. Application path can be obtained using...
string sourceDir = Application.StartupPath + "\\FolderToCopy";
Then you destination path should be available in the System.Environment.SpecialFolder enum, im not sure which one you will want to use thou so either test a few or google for answers...
string destDir = System.Environment.SpecialFolder.ApplicationData;
Now you need to create a recursive function that will copy a folder and all sub-folders and files. Keep in mind this is off top of my head so sorry if it does not work as it should...
void CopyFolder(string source, string destination)
{
System.IO.DirectoryInfo info = new System.IO.DirectoryInfo(source);
System.IO.Directory.CreateDirectory(destination);
foreach(System.IO.FileInfo file in info.GetFiles())
{
file.CopyTo(destination + "\\" + file.Name);
}
foreach(System.IO.DirectoryInfo dir in info.GetDirectories())
{
CopyFolder(dir.FullName, destination + "\\" + dir.Name);
}
}
..sorry if it does'nt work properly, but im sure you can google for 'C# Copy Directory' and get the code you need
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
musefan wrote: string destDir = System.Environment.SpecialFolder.ApplicationData;//I guess this one is right
Actually, it's
string destDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
|
|
|
|
|
Hi,
I wanted to know how can I make a new object in a specific event,that can be public and visible to any other events in the same class?
I'll be thankful if anybody could guid me.
|
|
|
|
|
Do you mean an instance of an object? Or define an object such as a class? I am not sure what you mean - what are you trying to use it for?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I'm trying to use a MDI form.the cihld is a class,right?so whenever user trys to make a new child form (by pressing the new btn in the menustrip in the parent form),it makes it for the first time,but as soon as you close the child form and try to make a new one the error happens.that error is because I made the child object out of the event code block.the error says you have disposed an object (which is due to the object I made OUT OF EVENT) you can't use it any more.see,I know what's wrong but don't have the cure!here is a sample code block(in the parent form) :
new ChildTest myTest = new ChildTest()
public Form1()
{
InitializeComponent();
}
private void toolTest_Click(object sender, EventArgs e)
{
myTest.MdiParent = this;
myTest.Show();
}
private void toolBackColor_Click(object sender, EventArgs e)
{
myTest.BackColor = Color.Red;
}
|
|
|
|
|
pcsience wrote: //ChildTest myTest = new ChildTest();
Why you comment this line out, if you just make it a new instance, rather than a new declaration it should work...
myTest = new ChildTest();
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
hey man,
it did'nt do any good!!any more suggestions?see...I only need to define myTest in the toolTest_Click event in a way that toolBackColor_Click event can see it too.as you can see I wrote a code line in in comment type in toolTest_Click event,but that myTest is only visible in that event,not in the toolBackColor_Click.that's the main problem!!!
|
|
|
|
|
Firstly, what is this line supposed to do?
new ChildTest myTest = new ChildTest()
pcsience wrote: I know what's wrong
I don't think you do.
If you want the BackColor button to work for any MDIChild, you should not be referencing a specific form, rather you should be referencing the ActiveMDIChild property (testing it for null, of course).
Can I suggest that you study Creating MDI application using C# (Walkthrough)[^] from here on CP before continuing.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
ok,that line was wrongly typed here
new ChildTest myTest = new ChildTest() the correct one is
public ChildTest myTest = new ChildTest()
that's the point,once it has disposed an object (in this case the child form) it can't create another child form so that I can use ActiveMDIChild property!and I think that is because I created the child form object out of toolTest_Click event.when for the first time I run it,I can create a new child form but as soon as I close the child form and press the toolTest_Click the error occurs.which is in the
myTest.Show(); part.and it says Cannot access a disposed object. but if I just can make the object in the toolTest_Click event the error won't happen again,BUT other methods can't recognize it!
|
|
|
|