|
you can if u are able adjust the columns to print the report in atleast landscape view and what do mean that runtime?
ALL THE BEST
|
|
|
|
|
I have some trouble with my MDI-Window. The Child forms get UNDER the surface.. Take a look here:
http://basbroekman.nl/Img/Members/Media/IDEMdev.JPG[^]
I want the forms to autoscale with the maximal ground they get.. and don't go over other forms and so on.
The fact that forms can be scaled, is the only reason that I made a MDI-window. I am out of ideas, if nobody know a answer, than I going to make a sizeble panel.
Keep breathing, foks!
|
|
|
|
|
Hi all,
I am creating a windows application on 17'monitor with 1280 X 1024 as the resolution
now when i execute the same application on different machine the size of the forms
differ.
How can i create forms that will take the screen size dynamically and all the controls on
that form should be resized to be displayed in the same manner and location where
i had created them.
Thanks,
Pramod
|
|
|
|
|
You can do it.
When application starts, you must get the resolution and recount all form sizes.
Resizing controls is more simple - use Anchor property.
|
|
|
|
|
if any body tell me the core idea then its very thankfull
question is
why c# not support multiple inheritance with class
Thanks in adv
panal
|
|
|
|
|
It's against the idea of OO programming.
Coulda, woulda, shoulda doesn't matter if you don't.
|
|
|
|
|
But C++ is doing it all well
panal
|
|
|
|
|
consider a situation where classA which has a function f()
classB and classC are childs of classA. hence they both have the same copy of f().
now consider classD inherits both classB and classC (multiple inheritance) in which case there will be a ambiguity as to which copy of f() is called since both of them have the same.
inorder to avoid this complexity c# provides a multiple inheritance of interfaces and not classes since u give the definitions of the functions in the class which implements them
sathy
|
|
|
|
|
Well, there aren't that many languages that support complete OO design. Even Java and C# aren't completely OO although they're called OO languages, as is C++.
C# is just more OO then C++.
Maybe it's clearer in other words:
In C++ we have more ways for no OO design. (eg. multiple inheritance, ...)
Coulda, woulda, shoulda doesn't matter if you don't.
|
|
|
|
|
In addition to the replies you already got, the clean way is supported by C#: your class can implement several interfaces.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
I want to keep track of users who are accessing my web application in an INTRANET WINDOWS ENVIRONIMENT.I am able to get the user name but i want to store all these names and display to every one(for ex like a intranet chat)
ALL THE BEST
|
|
|
|
|
So whats the question? How to show other users the currently logged in users?
|
|
|
|
|
yes i want to show the currently logged users waiting for reply
ALL THE BEST
|
|
|
|
|
Hello all,
I have a set of classes in vc++ for an activex control.I need to change those vc++ classes to c#.Is it possible ?
Please help me
Thanks in advance,
cheers
sangeet
|
|
|
|
|
Not really, no. At least not in any automated way. The languages are totally different, C# is closer to Java than it is to C++.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi all,
I want to log the key press made only when IE is in focus.The keyboard hook must not work when any window other than the IE are in focus.i.e active
How to do this?
Thanks and regards,
LMHP
|
|
|
|
|
Hi
How to get value from some for example dropdownlist control who is insert into gridview control.I need that for update commanand.Pleas help me,
good bye and hava a nice day.
|
|
|
|
|
in your ascx page you have to define an ID for your dropdownlist, in this example it is "MyDropDownList".
the grid has ID MyGrid
foreach(DataGridItem dgi in MyGrid.Items)
{
DropDownList myDropDownList = (DropDownList)dgi.FindControl("MyDropDownList");
string strSelectedValue = myDropDownList.SelectedValue;
}
Thomas
|
|
|
|
|
I use visual studio 2005 and in update on sqldatasorce query i need to add this value how to do that i think bye cookies but if is possible some siply whay pleas write me.
|
|
|
|
|
not shore what you meen, but I don't think cookies gona help you with this.
You have to call your update method, something like
<br />
public void updateMySQL_table(int rowID, string valueFromDropDownList)<br />
{<br />
string sql = null;<br />
DataManager dm = null;<br />
<br />
try<br />
{ <br />
sql = "UPDATE someTable SET strTheColumn = 'valueFromDropDownList' WHERE someRowID = " + rowID.ToString+ ";";<br />
<br />
<br />
dm = new DataManager();<br />
dm.ExecuteSQL(sql);<br />
<br />
}<br />
catch(Exception e)<br />
{<br />
throw new Exception("updateMySQL_table failed. " + e.Message);<br />
}<br />
finally<br />
{<br />
if (dm != null)dm.Dispose();<br />
dm = null;<br />
}<br />
}<br />
each row in your Grid should also contain a value where you have set the rowID, something like
<br />
<asp:TemplateColumn><br />
<ItemTemplate><br />
<input type="hidden" runat="server" id="inRowID" value='<%#DataBinder.Eval(Container.DataItem, "rowID").ToString()%>'><br />
</ItemTemplate><br />
</asp:TemplateColumn><br />
This you also have to retrive the rowID
<br />
HtmlInputHidden _inRowID = new HtmlInputHidden();<br />
DropDownList myDropDownList = null<br />
foreach(DataGridItem dgi in MyGrid.Items)<br />
{<br />
_inRowID = (HtmlInputHidden)dgi.FindControl("inRowID");<br />
myDropDownList = (DropDownList)dgi.FindControl("MyDropDownList");<br />
updateMySQL_table(int.Parse(_inRowID.Value), myDropDownList.SelectedValue);<br />
} <br />
Hope it helps
Thomas
-- modified at 7:14 Tuesday 11th April, 2006
|
|
|
|
|
Do you know in visual studio you can use some authomatic possability.I mean exacly if you made some sqldatasorce and then go to property of this sqldatasorce you can go to query.When you are there you can type directly update function and to add some parameters so my problem is going from that becaus i can't give one paramet who i can take only form dropdownlist.Do you know how to do that ???
|
|
|
|
|
Sorry I'm not familiare with that, but you can't update a tablecell with only one parameter, you need to know witch row the the cell is in, thus the rowID (the unike ID that belongs to that table), it is usaly the Primary key for that SQL table.
|
|
|
|
|
I have build my web in asp.ne and c#. I want to put certain user permissions as they login. the website contains several pages and on each page different users have different access level. like admin can do all operations whereas a simple user only can view or add but not delete. I want also the administrator to change the user access level from time to time.
Deepak Anish
Computer Programmer
Maxumise Fiji Ltd
Suva, Fiji
|
|
|
|
|
Hi how to wrap text in treeview.
Deepak Anish
Computer Programmer
Maxumise Fiji Ltd
Suva, Fiji
|
|
|
|
|
You're probably going to have to override the drawing of the TreeNodes and draw them manually. You can draw them wrapped using the StringFormat class. You'll also want to turn off the horizontal scrollbar for the treeview.
|
|
|
|