C Sharp :: Stop Page (or All Its Controls) To Be Autoposted?
Nov 20, 2012
i am tring to update a sql database table, first i select the values from database after it i display them into text boxes and drop dwon lists.and then i make required changes to values but when i click on update button the page is post backed and all values are set as they were already in database.
View 1 Replies
ADVERTISEMENT
Jan 24, 2015
I m making calendar in server control page by taking composite control.I am also adding textbox in each cell of calendar. Now i want to access the value of each textbox of selected month and respected date in default.aspx page on button click event. Here the button is not a custom control but defined in default.aspx page..
Can't access textbox text and date or controls of server page in website(default.aspx) page.
View 2 Replies
View Related
Oct 22, 2014
How to use enter key? When am using two textbox then to enter the key automatically goto next form. This time am not using tab or mouse ??
View 1 Replies
View Related
Sep 20, 2012
I have a test web page and a windows form which call a printer and sends a print job to a printer that is on the network. I have been able to successfully do this from the windows form, however, I can figure out how to do it from an aspx page to the server's default printer. Sample codes are below.
Windows Form:
public partial class Form1 : Form {
private const string TEMPLATE_DIRECTORY = @"C:Program FilesBrother bPAC3 SDKTemplates"; // Template file path
private const string TEMPLATE_SIMPLE = "NamePlate1.LBX"; // Template file name
private const string TEMPLATE_FRAME = "NamePlate2.LBX"; // Template file name
public Form1() {
InitializeComponent();
[Code] ....
View 1 Replies
View Related
Jul 29, 2012
Recently started working with C #, and do not know how to call a page using MenuStrip, for example, when you click any of the menus, I need to call another page ...
View 1 Replies
View Related
Apr 8, 2012
I have a form with a picturebox and some buttons to move the picturebox. I don't want the user to guide the picturebox out of the form even by dragging the form border picturebox moves just in the form border, and also there is a button to guide the picturebox to the start position (start choose by user). What can i do?
View 1 Replies
View Related
Dec 7, 2012
I have MDI form which contains mutliple tabs and each tab has its own child form . When user presses ALT TAB from the from to other application its fine but when users presses ALT TAB back to my application it should keep focus on child form last time it was selected.
View 1 Replies
View Related
Oct 23, 2012
When my program is working with a big list, it always connects to the internet and checks information from a website. It is going fast, but when I'm trying to update a label on every connection, it just shows at the end, when everything is checked. Progressbar value is updating. How to solve this?
View 1 Replies
View Related
Apr 27, 2014
My question is how the button click mull ti times on page load in C# windows form??because in my project i am working on video for LAN based Skype in which i use 2 pictures boxes one for capture images and another for display .. so i want that on page load picture box capture images until i stop it .. following is my code :
image = ((CaptureDevice)cboDevices.SelectedItem).Capture() ;
pictureBox2.Image = image;
View 2 Replies
View Related
May 7, 2014
I am dynamically creating a data set and row and on one row i have a calender input text field which shows the date. My boss would also like me to add a calender icon on the same row next to the input field.
AddGridRow(dt, "Rating Date <font color='red'>(252)</font>", "ST_RATG_DA", "ST_RATG_DA_ID", paircode: "-1");
They want the calender to be right after the text box row definition:
AddGridRow(DataTable dt, string itemName, string dataColumn, string pubIDColumn, bool isPARAMTR = false, string paramTable = "", string paramColumn = "", string paircode = "")
View 4 Replies
View Related
Feb 1, 2015
When I drag a control onto the Xamarin studio layout the control just slides back into the toolbox again. The only way to add controls is to edit the .axml file which is not at all ideal.
I have tried re-installing all the components again multiple times and even tried out using a different computer, still no luck. How to use the mono framework on the Visual studio IDE and build the apk using Xamarin studios?
Details -
Xamarin studio 5.7
Tested on Windows 8, 8.1 and 7
View 10 Replies
View Related
Nov 22, 2014
This is my very first attempt at running a wpf browser app... I've create the project and i can see controls when i add them to the entry page, here's the default for the page
<Page x:Class="SandBoxWeb.Page1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
[Code].....
and i can see a nice bright green square with an orange outline. But when i debug, a new tab opens up in my browser and i can't see a single thing,it's just a white screen.
View 6 Replies
View Related
Feb 21, 2015
I created a simple calculator in Win App. When I played it, the form is displayed blank. Not a single control is shown.
The only thing I've done differently is adding a Coded UI Test in my test project. This is the first time I'm going to try to add a coded UI test so I wonder if that's the cause for this.
View 4 Replies
View Related
Aug 16, 2014
If I rename a control, when I build, I get an error because deep in the code, the old name exists, but my rename doesn't change the old name. Am I doing rename wrong? (I just go to "Name" in properties and type the new name.)
Same idea with control deleting. So I add a control (textBox, label, whatever). I later decide to delete the control. When building, it still has code for the old control and won't let me proceed.
View 2 Replies
View Related
May 27, 2013
I'm turning mad with a little problem with Visual Studio 2008 and MFC. I'm working on a project actually and I'm trying to create an SDI Application. Right, now I want to add a dockable DialogBar. Well, the first time I added it with the resource view, I can create the bar without problems. But... I want to add some controls like a couple of ListBox, buttons and so on. The program doesn't allows me to create member variables for these controls. The option appears in grey.
Searching a little, I found that it's mandatory to create a new class derived from CDialogBar and "enhance" it with the Message handler and so on. I've been reading some tutorials and it didn't work for me.
View 14 Replies
View Related
Jan 31, 2013
there is a way to iterate through the controls on a webpage. For instance, I tried EnumChildWindows using the parent window of the browser, but I haven't had any luck - it returns nothing. s where I can start researching how to find the child controls?
I'm using Visual Studio 2010, programming in C++.
View 6 Replies
View Related
Nov 7, 2014
DisplayImages.aspx.cs file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
using System.IO;
using mshtml;
using HtmlAgilityPack;
[Code]...
Now I'm getting the value of id i.e "DisplayImages.aspx?id=3" from DailyDarshan.aspx and want to display the images of each respective link according id.. when I click on "DisplayImages.aspx?id=4" link so it has to show the if(id == 4) images...but The problem is int id its not taking value itself.on DisplayImages.aspx.cs page I must have to define the id. for e.g. I wrote int id =3; on DisplayImages.aspx.cs file so it shows the images of id = 3 on each and every link.. Tell me what should I do to take value from another page or else how int id takes value by itself...
View 4 Replies
View Related
Apr 24, 2014
I am creating a C# windows application which allows it to connect to our devices and communicate with them.
Often we need to customise this application and I have made this easier by defining its appearance and actions within an XML file which gets read in every time the application starts up. This is working really well.
However editing this XML file can be pretty laborious and often requires many cycles to get everything correct again. So I have started to create a graphical editor which allows for the XML to be generated.
The problem I am facing is that I am using the same controls in the final program and the editor so my question is how should I structure the code so that each control knows when it is in "Normal" mode and when it is in "Edit" mode?
I have started using a simple boolean flag to indicate its mode, however this now means that within every function I need to check this flag and run code appropriate to that mode, this seems a bit over the top. Is there a better/standard way this sort of this is done?
View 1 Replies
View Related
Dec 19, 2014
I'm trying to find out how i can adjust my C#.net controls adjust to the screen. my laptop screen is 1024 and i want to make the design that it should adjust any size if it is maximized on big screens. and controls will adjust to the screen. How do i achieve that.
View 3 Replies
View Related
Apr 8, 2013
If it is possible, I'd like to know how to intercept messages sent to controls on a dialog. I'm working on a large application with a large number of dialogs, each with a number of controls on the dialog. I need to be able to intercept messages sent to these controls so that I can determine if the controls really need to take action on these messages. I could subclass each control and override the specific event handlers but due to the volume of controls in the application this could take a very long time, will introduce risk if controls are missed, and will increase maintenance costs. What I want to do is create a class which is derived from CDialog and each of the dialogs in the application would then be derived from this new dialog class. The new dialog class would intercept messages sent to any control on the dialog and if the dialog decides that the control should do something then the dialog will pass the message on to the control.
example:
CExistingDialog is derived from CNewDialog is derived from CDialog
CExistingDialog has a number of controls. When the code in CExistingDialog calls CWnd::EnableWindow on one of these controls I want CNewDialog to intercept the message, determine what should be done with the message, and then pass it on to the control.
I'm not very familiar with the messaging framework. I've tried overriding a few of the methods of CNewDialog but none of them ever receive the message to enable the window. I assume this is because the message is sent directly to the child window (the control).
Is there any way to intercept these messages? I don't know much about hooks either but is this a possible option?
View 8 Replies
View Related
Feb 11, 2013
I have a dialog app with two separate static controls. Both controls have been subclassed from CStatic derived class to implement drag and drop and double clicking. The class works just fine, but I cannot figure out which of the controls is being double clicked or dragged and dropped onto because I only have the code below operating. I need some method in the derived class to determine which control is being manipulated.
Code:
// header file
#pragma once
#ifndef __AFXWIN_H__
[Code]....
View 3 Replies
View Related
Sep 11, 2013
I have a SDI application that uses a CFormView class to create a window and this window has 2 buttons and 2 edit boxes.
I can resize this window, like minimize and maximize, but the controls all stay at the same place.
I know that it's possible to move the controls based on window size.
But what i want to do is, as the window is expanded the controls and it's text content to grow proportionally and same when the window is shrinked.
Is that possible to do? i.e., increase/decrease size of controls and texts per window size.
View 2 Replies
View Related
Dec 5, 2012
I have migrated my MFC application from Visual Studio 6 to VS2010. But the UI controls still looks the same as of old theme. How can i add the manifest file now to get the UI controls to be displayed as of the current OS theme. i.e. Win7 look if the application is run on windows 7.
View 1 Replies
View Related
Nov 22, 2014
I am a bit unsure about what this piece of code aligning a struct to a page is trying to achieve.
Code:
#define PAGESIZE 1 << 12
typedef struct __attribute__((aligned(PAGESIZE))) x86_pagetable {
x86_pageentry_t entry[PAGETABLE_NENTRIES];
} x86_pagetable; It is an piece of code from an educational operating system WeenyOS.
What is the essence of aligning a struct to a page?
View 10 Replies
View Related
Sep 13, 2014
i want to write a c++ program that could pass a web page request, using a php script in a dns server. And also passed by the quested page to the software. What i really want to do is a software that can redirect a page request.
View 1 Replies
View Related
Apr 10, 2014
What is the best way to save a c# web page to database, either sql or oledb both fine. What I am looking to do is save all the data that has been entered into a database then upload this data to a grid view or form view.
The problem is there is a a lot of data on the page. Such as drop down lists, check boxes panels text boxes. I am able to display the text boxes in the database when i enter information into them. this is not working for the other objects. Also there is fixed data in the panels which doesn't require user input but I still want this info saved as it is vital.
In short I want to save the data from a page ive created called DOCare.aspx into a database. then take the data and display it in Forms.aspx a different page, where it will list all the completed forms for the user to modify if needed.
How to do this or links to websites that have information on this?? Dont know if i am wording it wrong but just cant find a way to do this. Everyone ive seen is working with small amounts of data and only text boxes.
View 1 Replies
View Related