|
|
It can be really useful to have something like Toolbox in your Windows applications! and the main useful function is to Pin or UnPin it to page so when you don't use it it will hide from the screen (sliding to left) and the main page can have wider space for something like drawing or working space.
but what kind of component is it???? and how it can be Pinable ? also how to change the main area of the scree in case of sliding the toolbox to left? the good example of this question is Visual Studio work space and the very useful Toolbox that it has!
also how to drag and drop from toolbox to main area?!?!?!
|
|
|
|
|
I've often wondered about this docking behaviour as well, and I share your disbelief that it is not a standard control. Unfortunately I think you may be looking at building your own, or using a Third party component... I know Infragistics makes an "UltraDockManager" that can give you similar behaviour to the Visual Studio environment, and I've also stumbled upon this one which might be worth a look. It comes with a nice sample, and the price is definitely right.
http://sourceforge.net/projects/dockpanelsuite/[^]
|
|
|
|
|
Hi all,
Have a very frustrating issue with a datagrid at the moment. I populate a datagrid with application details and a user can select which application they want to link.
However,
when you select and of the hyperlink fields in the datagrid, IE (7) will open a ne tab.
Please help, really getting to me.
Thanks in advance
|
|
|
|
|
Huh. Is the issue that the HyperlinkColumn's Target propert is set?
|
|
|
|
|
Yes, thank you Mike. I fiddled and fiddled and found that the Target="_Blank" does not help at all. It does open the DataNavField in a new tab or window (dependant on the IE settings)
Thanks again.
|
|
|
|
|
Hello,
I am well versed VC++ .Now I want to make Web based applications . Should I switch to .Net Framework for making them or I can do it in VC++ after learning sockets.
Pritha
|
|
|
|
|
prithaa wrote: Should I switch to .Net Framework for making them or I can do it in VC++ after learning sockets.
If you want to develop applications using ASP.NET, learning .NET framework and one of the CLI supported languages is must. Start with C# and it will be trivial to learn for a C++ programmer like you.
|
|
|
|
|
Assuming you are keen to stay in the MS world it means C#, ASP.NET. You'll find it easy enough to pick up.
Kevin
|
|
|
|
|
<script language="javascript" type="text/javascript">
window.onbeforeunload = function(){
return 'Your data will not be saved.';
};
</script>
hai,
currently i m using asp.net 2.0 (web application)
here i would like to prompt the message to the user, where
user, should not able to close the main window (IE).
He must click only the application "Logout" button,
so ,i would like to hide the close button or while user clicking
the Internet Explorer(IE) close button he should prompt a message box (with
only ok button) and again to his own application.
how to achieve it?
Thanks in advace,
Karan
|
|
|
|
|
If people leaving the page without loging out will cause problems and you can tell them that they need to log out first, what will happen if they hit ALT+F4 to close or even if they just type in a new adress and leave your site that way?
Javascript has an onUnload event, which is triggered when the browser is told to leave the page.
You could use this event to trigger an auto-logoff for your site but I doubt it will handle cases where the browser is deliberately forced to close.
|
|
|
|
|
thank 4 u r reply sir.
but while i m using that code, it prompting in all POSTBACK.
i need only at the timeof IE close button clicks. Moreover,
in my project there are nearly 100 pages. do i want to implement this code in all pages?
help me.
thanks in advance,
Karan
|
|
|
|
|
You will still need to handle it at the server side as well.
Adding to what kstls said, what if they pull their power chord? What if some other program in the background causes a BSOD? You can't protect against that, and it will happen someday, so you had better be prepared..
|
|
|
|
|
exactly you are right.
but is there anyother way to force the user to do "LOGOUT" process?
|
|
|
|
|
I don't know mate, I'm not a web dev, sorry
|
|
|
|
|
No. You can't prevent a user from clicking the close button on the browser or browser tab nor can you prevent them from navigating to another page.
only two letters away from being an asset
|
|
|
|
|
Karan_TN wrote: Moreover,
in my project there are nearly 100 pages. do i want to implement this code in all pages?
Of course you don't. A properly designed application will separate this type of logic from the page. If your Javascript methods are in a separate file all you need to do is include the file reference. Better yet, if you are using master pages, include it in the master page and all content pages will have it also.
only two letters away from being an asset
|
|
|
|
|
thanks for your kind replies
|
|
|
|
|
Hello Experts,
I am using VB.Net with visual Studio 2005 and Access Database.
I am creating some reports to show first in Grids and print thereafter. The method that is available for me is:
1. Use Complex select queries to retrieve entire fields to be populated. Like No of Students in Class, No. of Students in Current Session, Total Pending Fee in Class.
2. Prepare little functions to retrieve field values individually and combine all to store in dataset.
3. Any other effective way that you can suggest.
If I use (1) first option, I think retrieval will be faster. but I have to calculate that many times depending upon the de-normalisation pattern and table to be joined.
If I use functions code re-usability will be done but I think calculating the figure for 500 times will not be time effective solution.
Please suggest me how to achieve this.
Thanks
Jaidev Khatri
|
|
|
|
|
My preference is always to have the database do as much of the work as possible. I would rather have a more complex SQL statement that returns a single result set with all my data than to execute a bunch of queries and piece the results together in programming code.
You might be surprised with how easy the "complex" queries can be. If you're having trouble there, post to the General Database forum.
|
|
|
|
|
Yes exactly, we are using both ways. further may I know which should I superside. Time factor or code reusability.
My selection would be Time factor.
|
|
|
|
|
JayKhatri wrote: further may I know which should I superside. Time factor or code reusability
I'm not sure what you mean by this. I'm not sure what the question is.
|
|
|
|
|
as a new comer in the life of windows application using vb.net. my question is how to display a 3 or more tab, each tab have datagrid and each tab with datagrid have different table.
In a form, I have 2 textbox, 3 or more tab and each tab have datagrid, if you run the program, the first textbox enter the id_no, let say the id_no is the primary key in the master file with no duplicate. If the primary key or id_no is incorrect after pressing the "enter key" message box says id no does not exist otherwise display the name in the second textbox and also display all information at the first datagrid of the first tab with the same id_no comming from the first textbox. let say the id_no have 3 rows coming from the first table. table with duplicate id_no. same with the 2nd tab, display at the 2nd datagrid with the same id_no coming from the 2nd table. let say the id_no have 4 rows, table with duplicate id_no. same with the 3rd tab , so on and so fort.
textbox1 = 1234
textbox2 = juan dela cruz
id_no os price
tab1/datagrid1 = 1234 printer 5,000
= 1234 cpu 10,000
= 1234 monitor 5,000
id_no oe price
tab2/datagrid2 = 1234 table 6,000
= 1234 cabinet 7,000
= 1234 chair 1,500
= 1234 aircon 20,000
os = office supply
oe = office equipment
|
|
|
|
|
Hi,
I am trying to create a Visual Studio 2005 Add in, that should call an Winform application to gather some info from user.
I have hosted the Form code in a new AppDomain and have obtained the required fields back via AppDomain.SetData and GetData methods.
Problem is, VS is unloading silently, even if the WinForm did not throw any exception.
Here is the code for the Exec method:
public void Exec(string commandName, vsCommandExecOption executeOption, ref object varIn, ref object varOut, ref bool handled)
{
handled = false;
if(executeOption == vsCommandExecOption.vsCommandExecOptionDoDefault)
{
if(commandName == "TestVSAddIn.Connect.TestVSAddIn")
{
AppDomain wizardDomain = null;
try
{
if (String.IsNullOrEmpty(this.applicationWizardAssemblyName) || !File.Exists(this.applicationWizardAssemblyName))
throw new InvalidOperationException("Installation error.");
if (wizardDomain == null)
{
AppDomainSetup wizardDomainSetup = new AppDomainSetup();
wizardDomainSetup.ApplicationBase = applicationWizardAssemblyPath;
wizardDomainSetup.PrivateBinPath = applicationWizardAssemblyPath;
wizardDomain = AppDomain.CreateDomain("WizardDomain", null, wizardDomainSetup);
wizardDomain.SetData("RunningFromVS", true);
}
wizardDomain.ExecuteAssembly(applicationWizardAssemblyName);
if (wizardDomain.GetData("OpenInVS") != null && wizardDomain.GetData("SolutionPath") != null)
{
bool openInVS = Convert.ToBoolean(wizardDomain.GetData("OpenInVS"));
string solutionPath = Convert.ToString(wizardDomain.GetData("SolutionPath"));
if (_applicationObject.Solution.IsOpen)
{
_applicationObject.Solution.Close(true);
}
_applicationObject.Solution.Open(solutionPath);
}
}
catch (Exception ex)
{
try
{
Logger.LogThis("Error occurred while running the wizard. Please undo the changes manually.");
Logger.LogThis(ex.Message);
}
catch { }
}
finally
{
if (wizardDomain != null)
{
AppDomain.Unload(wizardDomain);
}
}
handled = true;
return;
}
}
}
The code is running fine till "return" statement and end of the method, and then suddenly, the "OnBeginShutdown" is getting executed.
I have tried to open the solution file indicated by "solutionPath" variable from a modified code, where the AppDomain operations are commented out, and that works fine.
What am I doing wrong here?
|
|
|
|
|
how to insert data into database using sqldata adapter
|
|
|
|