|
As far as i understood your question, there is a property named Text for a textbox, you can store it using textbox1.Text!
Adeel
--
|
|
|
|
|
When the user input a data in textbox, i wanna get that data
and store it. just like in Console.Write / Console.Read
--// in textbox???
thanks in advance.
to know everything is to know yourself...
|
|
|
|
|
Text property of the textbox class will help you. You can get it or set
|
|
|
|
|
user textbox.Text
My small attempt...
|
|
|
|
|
user textbox.Text
My small attempt...
|
|
|
|
|
hi
i have problem in c# when i move picture from pannel all pannel area are flicking when i move the picture,
i m not using picture box, i draw image creating coustem class
please help
uttam
professionalbkn@yahoo.com
lead the world be professional
|
|
|
|
|
|
AOA:
I have developed an application which has to save some HTML text to database in the same manner as the html text is.
Can anybody guide me
Thanx
|
|
|
|
|
u can create a table ,make td runat="server" . Design the text such that it is in
the td.And make use of "td1.InnerText" in the cs .
hello every one
|
|
|
|
|
I'm trying to burn simple data DVDs programatically.
I want to support WinXP and up.
I don't want to use NeroSDK because of requirements/licensing.
From what I can make out IMAPI wrapper will not give me DVD burning in XP, only in Vista.
I'd really like to avoid executing external apps, I'd rather keep it all within my app.
Anyone know of something? I know they are out there, there are dozens of free CD/DVD burning apps about, they know something I don't and I'm having a tough time finding it.
|
|
|
|
|
Hi
I have a problem of finding and adding the attributes in arraylist in .net. I have the follwoing xml
<Domains>
<Domain ID="01" Name="Sales">
<Domain ID="01" Name="Production">
<Domain ID="01" Name="Inventry">
<Domain ID="01" Name="Stock">
</Domains>
How to load all the domian names in an arraylist
I have written the follwoing code, but it is not working
XmlDocument xmlDoc=new XmlDocument();
xmlDoc.Load(filename);
XmlNodeList domainNode;
domainNode=xmlDoc.GetElementsByTagName("Domains");
ArrayList aList=new ArrayList();
for(int count=0;count<domainNode.count;count++)
{
if(
aList.Add(domainNode[count].FirstChild.Attributes[1].Value.ToString());
}
But it is giving error, not adding all the domin. Can anyone help me please.
kesavan
|
|
|
|
|
Your XML looks a bit dodgy :p
The 'Domain' element is not properly closed.
|
|
|
|
|
Short
-----
I need to catch an OnCheckChanged from a gridviews' checkbox that gets filled by a DataTable.
Long
----
I have an ASP.net page with C# codeBehind.
In it is a gridView that gets filled by a DataTable.
There happens to be a bool in one of the columns.
I want the user to be able to check or uncheck these checkBoxes. But there is no onCheckChanged listener exposed on the CheckBoxField control.
The CheckBox looks like this:
<asp:CheckBoxField HeaderText="permission" DataField="permission" ReadOnly="false"/>
I thought I could go for an ItemTemplate column like this:
<ItemTemplate>
<asp:CheckBox ID="permissionCheckBox" runat="server"
OnCheckedChanged="permissionCheckChanged"/>
</ItemTemplate>
But this column doesn't get it's data from the DataTable, so I tried to fill it manualy with the OnLoad event OnLoad="loadPermissionCheck" but this doesn't seem to get triggered.
Hope I made myself clear enough.
If this post happens to fit better in the ASP.net corner, then please move it. I wasn't sure.
-- modified at 7:45 Wednesday 30th May, 2007
|
|
|
|
|
I have some DLL's written using fortran, they're very old codes and i am currently writing a newly improved version of the application using C#.
Unfortunately, the main engine used in the old software (delphi app) are fully dependant on the DLL's, and i have tried to rewrite them one by one, by reading the .f90 source files.
Does anybody know a how-to import those DLL's to C# or maybe .net libs or applications which can be used? I really need them, can anyone help?
|
|
|
|
|
I am not sure about C# DLLs for this,but i think u can include those DLLs as a refernce to ur c# project.
.NET framework uses those DLLs as COM componant and u can use required functions inside those DLLs
|
|
|
|
|
I am a newbie in the land of C#. I am writing a simple form app for a ping-pong application. I was earlier painting the object by overriding the OnPaint() method of the derived Form class. Recently I created a class derived from System.Form.Control and I have moved the data and event handling from Form to Control. I create an instance of the derived Control class under Form and call the OnPaint() method of Control from the Form as in-
<br />
MyControl ctrl = new MyControl();<br />
Controls.Add(ctrl)<br />
<br />
.....<br />
<br />
public override void MyForm::OnPaint(Graphics)<br />
{<br />
ctrl.Invalidate();<br />
}<br />
The problem is Invalidating the Control from the Form class never calls the OnPaint() method for Control. Its almost like the Windows message queue is messed up and the Control never gets the UPDATE event.
Any ideas?? Thanks.
|
|
|
|
|
Try calling the ctrl.InvalidateRegion and pass the whole size of the ctrl to that method.
i guess that should work for u.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Hello,
I think you need the Refresh() method.
The painting will be done emidiately!
Invalidate marks it just for the next painting.
Hope it helps!
All the best,
Martin
|
|
|
|
|
hi all
i know that string is refrence type
now
string s="Shetty";
string s1=s;
s="Pinky";
msb.show(s);
gives shetty as the answer right...
my assumption is
since string is reference type the address is stored in s1 when the value changes in that address new value should come right
please clear me
|
|
|
|
|
Hello,
kalyan_2416 wrote: s="Pinky";
msb.show(s);
gives shetty as the answer right...
No, "Pinky" will be shown!
s1, would show "Shetty"!
kalyan_2416 wrote: since string is reference type the address is stored in s1 when the value changes in that address new value should come right
No, reference type is not the same as pointers in C++.
In your code example, s just gets a new address, but s1 will not change as it's address stays the same.
Hope it helps!
All the best,
Martin
|
|
|
|
|
A string is a reference type, but a string is also immutable. You can never change the value of a string, you can only change the reference that points to a string.
If you assign a new string value to a string variable (a string reference), you just replace the value of the reference to point to the new string object, you never change the actual value in the string object.
The string objects for string literals are created when the program loads, not when the value is used. Therefore your code will actually work more like this:
const string str001 = "Shetty";
const string str002 = "Pinky";
string s, s1;
s = str001;
s1 = s;
s = str002;
msb.show(s);
So you see that in your code you actually don't create any string objects or change any string values, you only assign some references to objects that already exist.
---
single minded; short sighted; long gone;
|
|
|
|
|
i have installed sql server reporting service 2005
1. how i can get the list of reports (*.rdl) in a windows application c# 2005
( sth like Server.GetReportNames ???)
2. how i can get the list of each report parameters in a windows application c# 2005
( sth like Server.GetParameters ???)
|
|
|
|
|
Hi
somebody explain me the concept of reflection, and when we need that, and to use that.
|
|
|
|
|
|
Refelction is the mechanism of discovering class information solely at run time.Wondering where it would be useful? Imagine,you are in visual studio IDE (Integrated devolopment environment) and as you type "object." you would see all the methods,properties and events associated with that object.
Reflection[^]
Regards,
Satips.
|
|
|
|