|
I want to put help form in my software and i want that when i click on the question the answer will open below it.
In my form a link label is there for question an for answer there is a label.
i tried this
label1.visible=ture
in the linkLabel_click event but it keeps the blank space in the form even when it is not visible.
I want that it should not keep the place of the label(answer) and when i click on the question the shows the answer.
Can any on help me??
|
|
|
|
|
Wrap this in a FlowLayoutTable[^]
Frazzle the name say's it all
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
John F. Woods
|
|
|
|
|
Hi,
My system is 64bit with windows 7. I want to develop a desktop application (windows application) and deploy that application run that application in other systems. My Question is i want develop and deploy my windows application which is compatible for 32 bit why because my i am developing my application in visual studio 2008 (64bit).
Thanks and Regards,
Subbu.
|
|
|
|
|
|
hello,
i want to toggle anchor tag text, i have an anchor tag within div, when user clicks on reply, comment box get open and text should change into close and vice versa but problem is that after text getting change to close, text remain become close nd toggle between show nd hide works clearly...
<a id="reply" href="#">reply</a>
<div id="replyuser" style=" position:absolute;"><asp:TextBox ID="txt1" CssClass="txtbox" TextMode="MultiLine" runat="server"></asp:TextBox><br /><asp:Button ID="btnreply" Text="send" runat="server" CssClass="btn" /></div>
jquery is as follows
$(document).ready(function() {
$("#replyuser").hide();
$("#reply").click(function() {
$("#replyuser").toggle(function() {
$("#reply").text("close");
});
});
});
|
|
|
|
|
Hi,
Your close text didn't get changed because you have not specified in your logic. you need to change it like,
$('#replyuser').toggle(showOrHide);
if ( showOrHide == true ) {
$('#reply').text("close");
} else if ( showOrHide == false ) {
$('#reply').text("reply");
}
this should work for you.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
thanks sir
|
|
|
|
|
Your welcome.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
Hi everyone,
I want to create a directed graph with the use of C# and give the user a visualization of the graph. I would like the vertexes to be interactive, meaning "click able" so that I can trigger some code when this happens.
My question is the following: which libraries would you suggest using for this kind of project? I came along Quickgraph and Graphviz so far, but I could not find affirmation that Graphviz is able to support the interactivity of vertexes.
Thanks for any help in advance, it is much appreciated.
|
|
|
|
|
Im struggeling to see what you actually want in you graph, could you explain some more?
|
|
|
|
|
|
|
Thanks, graph# seems to do everything I need!
My goal is to build a graph that represents the different versions of documents and which version followed which.
I want the user to be able to click on the documents and open them up in the process.
|
|
|
|
|
Hi,
i use a mathod that create a control (for example textbox) and add it's to a pannel. The pannle is passed in a parameter of the method.
public static void CampoTxt(Panel frmPadre)
{
TextBox txt = new TextBox();
txt.Name = "name";
txt.Visible = true;
frmPadre.Controls.Add(txt);
}
I've manage the event ControlAdded of the pannel for modify the height of form when a visible control is added.
But every control I have added in the panel has the visible property set to false even if at the creation was set to true.
private void pnlf_ControlAdded(object sender, ControlEventArgs e)
{
...some code ....
}
Any ideas?? Thanks
|
|
|
|
|
Set a Break point at the beginning of the CampoTxt method, then step into the method and check the value of txt all the way through.
Frazzle the name say's it all
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
John F. Woods
|
|
|
|
|
It can be set to False if the control is hidden behind another control. Since, in your example, you don't set the position of the control at all, if you create a bunch of them, each will be sitting at 0,0 in the Panel, one on top of the other. Only the top control will have it's Visible property set to True.
|
|
|
|
|
In my code i set top and left property but i'm not indicate them in the example.
In addition, when the form is shown the controls are visible...
|
|
|
|
|
cursore84 wrote: but i'm not indicate them in the example.
How are we supposed to konw that if you post "fake" code?? Post the ACTUAL code you're using and things go much smoother.
cursore84 wrote: In addition, when the form is shown the controls are visible...
Then you're contradicting your own question. A much better explanation of EXACTLY what happens, when and under what circumstances is needed.
|
|
|
|
|
I reported some of the code to simplify the example, but unfortunately I left out some important information ....
But I think to have found the reason why at the event ControlAdded all the controls are invisible. I call the method "CampoTxt" before calling Form.Show () ... in this moment all the controls, including the form, have the property visible = false.
Is there a way to know if a control is visible or not at the execution of the event ControlAdded before the form is shown?
thanks
|
|
|
|
|
No. Everything will be Visible = False until the form is shown.
If you're relying on the state of controls to determine the state of your model your doing it backwards. The state data of your model should be kept in the model itself.
|
|
|
|
|
Windows App....
Problem is here "txt.Name" - Do not name your control "Name". I used to have the same problem, all control with "Name" as their names wont be visible at design time and their property will be change to false...
I remain joe!
|
|
|
|
|
Hello,
I am having some problems when running a C# application that I've written. It runs fairly smooth on a local
machine (test machine). However, when I am running this from a network drive, the responsiveness is slow. When
I click on a button that opens up a form, there is a considerable lag (5-10 seconds sometimes). Is there anything that I can do to speed this up on a network?
|
|
|
|
|
There is no generic method that will speed anything up. Code doesn't run faster or slower depending on where you ran it from. Code runs at the processor speed, not the network.
Now, any processing you have on data is remote locations or stored in files is where you'll run into problems with performance. Since we have no idea what you're code is doing when you "click a button that opens up a form", there is nothing anyone can tell you that is going to help.
We need more detail about EXACTLY what your code is doing when you run into this problem.
|
|
|
|
|
As Dave mentioned, you didn't give a lot of details so I'll take a stab in the dark and say that your "work" is probably being done on the UI thread rather than on a background worker or other type of thread. (If you have no idea what that means then you are definitely working on the UI thread.) That will kill UI performance if you start mixing long-running operations such as disk-based access or network-based access. Your UI will hang while it processes the work because there is only one guy in the room doing anything.
If this is the case, you will want to change your worker method(s) to use an async pattern so you can decouple the long-running work operations from the UI. That will keep things responsive... at least on the UI.
|
|
|
|
|
Hello everybody
I would like to cast a System.__ComObject to another type which is an interface. However, this interface is retrieved by reflection. I tried to create a generic cast method but it failed. I also tried to use TypeConverter class but it also failed. Even now, I try to use Marshal.CreateWrapperOfType but it seems to fail
Here is my code for moment
Assembly ctClientServerLib = Assembly.LoadFrom(string.Concat(bfcSetupFolder, "Interop.CtClientServerLib.dll"));
Type applicationClientClass = ctClientServerLib.GetType("CTCLIENTSERVERLib.CtApplicationClientClass");
Type ictSession = Type.GetTypeFromCLSID(new Guid("BCB06C70-AF26-11D3-8C89-00C04F517D7D"));
Type ictProtectedSession = ctClientServerLib.GetType("CTCLIENTSERVERLib.ICtProtectedSession");
Type ictSessionCtx = Type.GetTypeFromCLSID(new Guid("5F852A70-7E77-11D4-8CE1-00C04F517D7D"));
Type ictSessionClient = Type.GetTypeFromCLSID(new Guid("2C3444F9-ED6D-4700-B2EC-F665569FE830"));
Type ictProviderContainer = Type.GetTypeFromCLSID(new Guid("797BB105-AEDF-11D3-8C89-00C04F517D7D"));
Type ictProviderContainer = Type.GetTypeFromCLSID(new Guid("797BB105-AEDF-11D3-8C89-00C04F517D7D"));
object session;
object res;
res = applicationClientClass.InvokeMember("ConnectToServer", BindingFlags.InvokeMethod, System.Type.DefaultBinder, cacc, new object[] { "MyServer", "MyDataBase", new String[] { } });
session = applicationClientClass.InvokeMember("Logon", BindingFlags.InvokeMethod, System.Type.DefaultBinder, cacc, new object[] { "ADMIN", "" });
res = applicationClientClass.InvokeMember("Initialize", BindingFlags.InvokeMethod, System.Type.DefaultBinder, cacc, new object[] { session });
Type ictSession2 = ctClientServerLib.GetType("CTCLIENTSERVERLib.ICtSession");
Type ictSessionCtx2 = ctClientServerLib.GetType("CTCLIENTSERVERLib.ICtSessionCtx");
Type ictSessionClient2 = ctClientServerLib.GetType("CTCLIENTSERVERLib.ICtSessionClient");
Type ictProviderContainer2 = ctClientServerLib.GetType("CTCLIENTSERVERLib.ICtProviderContainer");
var session2 = Marshal.CreateWrapperOfType(session, ictSession);
var sessionClient = Marshal.CreateWrapperOfType(session2, ictSessionClient);
var sessionCtx = Marshal.CreateWrapperOfType(sessionClient, ictSessionCtx);
res = ictSessionCtx2.InvokeMember("SetSessionCtx", BindingFlags.InvokeMethod, System.Type.DefaultBinder, sessionCtx, new object[] { });
var providerContainer = Marshal.CreateWrapperOfType(sessionClient, ictProviderContainer);
object objectManagerClient = ictProviderContainer2.InvokeMember("get_Provider", BindingFlags.InvokeMethod, System.Type.DefaultBinder, sessionClient, new object[] { 1, -523387 });
.
Thanks for help
|
|
|
|