|
And how this method for cleaning would be?
|
|
|
|
|
private void btn_browse_Click()
{
imageList1.Clear();
}
Unless they are likely to be changed somewhere else in your application, you would be better off setting the following three properties in the designer.
this.listView1.View = View.LargeIcon;
this.imageList1.ImageSize = new Size(60, 60);
this.listView1.LargeImageList = this.imageList1;
You should be OK now. Good Luck!
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.”
|
|
|
|
|
Imagelist doesn't contain clear
|
|
|
|
|
Sorry, my bad.
should have been
this.imageList1.Images.Clear();
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.”
|
|
|
|
|
I put listview1.items.clear(); and it works.. now next task How to multiply delete selected items from listview??
|
|
|
|
|
Good luck with that. It's fairly easy.
|
|
|
|
|
Now i have thumbnails in listview..how to show that picture in listview with click on it in picturebox..For every image i have index..also i don't know how to multiple delete pictures from listview..??
|
|
|
|
|
OK. A clue, and the only one I'll give. ListView has two properties that begin with Selected read the documentation for them.
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.”
|
|
|
|
|
I am working in Microsoft Visual Studio 2008 using C#. I populated my webpage from a database which was SQL Server 2005. On the webform that will be displayed to the users, I want to display a textbox when they click the checkbox, and if they don't click the checkbox I don't want the textbox to be displayed. How do I go about this?? Thank you!!
Shane
|
|
|
|
|
We have an ASP.NET forum.
You would do this with javascript, which means it's more of a general web dev question.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
this can be done with javascript
use,
function ChkFunc()
{
var chk = document.getElementById("<%=CheckBox1.ClientID%>");
var txtbox = document.getElementById("<%=TextBox1.ClientID%>");
if (chk.checked) {
txtbox.style.display = "block";
}
else {
txtbox.style.display = "none";
}
return;
}
in code behind,use
CheckBox1.Attributes.Add("onClick", "return ChkFunc();");
to make the textbox invisible on load, cal this javascript function in page load as well
dont use TextBox1.Visible=false in page load,then this script gives error.
Hope it helps u.
|
|
|
|
|
Thank you for your help
Javascript won't work in C# Asp.net though will it??
|
|
|
|
|
I have code that is written in textbox
How do I make it work as code?
for example:
textbox1.text="this.Backcolor=System.Drawing.Color.Red"
how do I make it turn red?
|
|
|
|
|
What you seem to be doing is different, to say the least. As such I have no answer for you.
Whilst your question is clear and understandable, is there any chance that you can broaden your description to include the aim of the application, or why the user would be typing code into a text box?
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.”
|
|
|
|
|
because I am writing a new language as a orogect to my college and then I translate it o c# in a text box but I have no idea how to make it work!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
|
|
In simple words, you cant. Learn how to use regular expression if you really need this type of task.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Of course you can; I have a small program that takes one method from a textbox, compiles and executes it. It is based on CSharpCodeProvider class. It isn't beginner's stuff though.
IIRC there has been a CP article on the subject, several years ago.
|
|
|
|
|
|
There seems to be a problem with my code when I try and retrieve multiple tables. Please tell me what's wrong, or if there is an alternative way to do this? Thanks in advance.
OleDbConnection clsConnection;
clsConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\one.mdb;");
clsConnection.Open();
WTest1.oneDataSet f_table = new WTest1.oneDataSet();
OleDbDataAdapter dAdapter = new OleDbDataAdapter("SELECT * FROM first", clsConnection);
dAdapter.Fill(f_table, "first");
WTest1.oneDataSet s_table = new WTest1.oneDataSet();
OleDbDataAdapter dAdapter1 = new OleDbDataAdapter("SELECT * FROM second", clsConnection);
dAdapter1.Fill(s_table, "second");
<br />
Runtime Error: Syntax Error in FROM Clause
--Star
modified on Wednesday, April 29, 2009 1:04 PM
|
|
|
|
|
And which is exactly the problem ???
|
|
|
|
|
Runtime error: Syntax Error in FROM clause
|
|
|
|
|
Why are you using typed datasets?
Can you use System.Data.DataSet datasets???
|
|
|
|
|
|