Hello All, I am developing an application in WPF in which I need to set a generic input bindings for TAB key for every field present in the view. I somehow managed to create a common method but now I wnat to retrieve on which field the TAB key has been hit. So, I want to know how can I pass a generic framework element or anything to the command parameter so that I can retrieve on which field the vent is taking place. My xaml code is as follows :- <Window.InputBindings> <KeyBinding Key="Tab" Command="{Binding TabCommand}" CommandParameter="{Binding .}" /> </Window.InputBindings> …

Member Avatar
Member Avatar
+0 forum 1

I am using the inkEdit Control provided with Microsoft Tablet PC SDK to take digital ink input from the user. The inkEdit control takes the data input, clears the textbox and writes the output (either recognized or in ink mode) in the same window. Is there any way to write the output of inkEdit control in a textbox. My application has to take input from the user in a seperate textbox(writing space) and output the written data into a seperate multiline textbox(rendering). Any help would be highly appreciated. Thanks!

Member Avatar
Member Avatar
+0 forum 3

hello guys am working on a window application in vb.net Am trying to code an array that can add only 8 best subjects grades from the 10 subjects done by a student. the ten subject grades are dispayed as labels and also the TOTAL of best eight subject grades is dispayed as a label. Any one to help me. am new in pragramming

Member Avatar
Member Avatar
+0 forum 3

Hi. I am making a Anti-Virus (almost complete) however I would like to know how to make a custom 'Run As Administrator' dialog. Before you tell me this isn't possible, I do not mean I would like to replace the Windows 'Run As Administrator' dialog, I would just like to creare a form with the same appearance. If you have ever used the latest version of Avast Anti-Virus, when you try to disable protection a window is shown, and the screen behind the form is locked the the brightness behind it goes down. That's a custom run as administrator window, …

Member Avatar
Member Avatar
+0 forum 2

HiHi seems like i have so many queries for programming.. EG. textbox use to set the password how can i make a program so that i can set MINIMUM character to be inserted in textbox is 7 then i can save the data if not validate[ insert password with at least 7 character] something like that haas. sorry if you don't understand my question cause i don't really know to phrase my problem=| BTNOK[ to check if textbox 7 character and then run save if it is. else validate insert 7 character~]

Member Avatar
Member Avatar
+0 forum 4

Hi, i have develop an window application using **VB.NET** and** SQL SERVER2008R2**.I have Sql server2008R2 installed on my system containing sql database file.I have my connectionstring in app.config file as:- <appSettings> <add key="mycon" value="Data Source=My-pc;Initial Catalog=MovieCatalog;User ID=sa;Password=pwd123" /> <add key="ClientSettingsProvider.ServiceUri" value="" /> </appSettings> Now what i want to do is to make setup of my project.My problem is that how to include all files(including sql database file) or what to do to make setup or package. Secondly,this is single user application with no LAN or network etc., so is it necessary to install sql server on different PC before installing …

Member Avatar
+0 forum 0

Dear Daniweb community; I am working on a Touchscreen application. For this work I need to Change the window if a user clicks on it. My code: def init(win): def getclick(event): parent.destroy() openSubWindow(dialog); frame = Frame(win, width=650, height=550) frame.bind("", getclick) frame.pack() win.title("Ausgangsposition") win.minsize(650, 550) I used the following idea: http://effbot.org/tkinterbook/tkinter-events-and-bindings.htm The idea: Create a Frame which overlays the whole window, click on frame means changing window. Is there any way, to get the frame transparent or is my idea completly wrong? At the Moment the frame hides all my Labels in this Windows.

Member Avatar
Member Avatar
+0 forum 1

Hello everyone, I'm not sure whether this post belongs here. The thing is that I want to do a Page reload from my java code running on the server. After pressing a button, I wish for the page to do an automatic reload. So, inside the class file, I have this: import com.google.gwt.user.client.Window; ... public class ConfirmPopup extends DynamicPopup { ... final Button ok = new Button("OK"); ok.addClickListener(new ClickListener() { public void onClick(Widget sender) { setUpdating(); updateListener.onClick(null); Window.Location.reload(); } }); ... } So, I have this functionality inside the class. And it works out fine, I've tested it, but it …

Member Avatar
+0 forum 0

I had created a window application, finish debug and it work perfectly in my computer. I then copy a whole folder includes the .exe file to another computer which doesn't installed vb. When i run the .exe files, it doesn't work and pop out the statement below: *********************************************************************************** See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Exception: Cannot create ActiveX component. at Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String ServerName) at Registration.Form1.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 …

Member Avatar
Member Avatar
+0 forum 1

hello daniweb community; The first window my application shows is this one: def init(win): win.title("Ausgangsposition") win.minsize(800, 600) getcurrentrateandcurrentbalance() btn.pack() Usage of win: win = Tk() win = Toplevel() methode getcurrentrateandcurrentbalance() def getcurrentrateandcurrentbalance(): threading.Timer(5.0, getcurrentrateandcurrentbalance).start() print "Hello, World!" + result lab=Label(win, text="Aktueller Kurs: " + res +" Euro/BTC", bg='#40E0D0', fg='#FF0000') lab2=Label(win,text="Aktuell verf\xfcgbare Coins: " + avbtcs +" BTCs", bg='#40E0D0', fg='#FF0000') lab.place(x=20, y=30) lab2.place(x=20, y=70) After closing window "win" with this methode: def hello(): t = Toplevel(win) t.title("Schritt 2") t.configure(background='#40E0D0') win.destroy() "win" is closed but cmd shows error logs every 5 seconds because of the label in "getcurrentrateandcurrentbalance()". Any idea how to …

Member Avatar
Member Avatar
+0 forum 6

This is my code am getting the result as byte array. i want to print this byte array without saving as pdf in system. kindly note this is web application not window application Page p = new Page(); string fname = string.Empty; string filetype = string.Empty; ReportViewer rptvw1 = new ReportViewer(); rptvw1.ProcessingMode = ProcessingMode.Local; rptvw1.LocalReport.ReportPath = p.Server.MapPath("~/GridReport.rdlc"); BL_Insurance.PrintDetail print = new BL_Insurance.PrintDetail(); DataTable ds = print.Print(Convert.ToInt32(p.Session["transactionid"]), Convert.ToString(p.Session["typeofplan"]), Convert.ToInt32(p.Session["UserID"])); ReportDataSource datasource = new ReportDataSource("DataSet1", ds); rptvw1.LocalReport.DataSources.Clear(); rptvw1.LocalReport.DataSources.Add(datasource); ReportParameter[] param = new ReportParameter[4]; param[0] = new ReportParameter("Company", Convert.ToString(p.Session["insurancecompany"])); param[1] = new ReportParameter("Policy", Convert.ToString(p.Session["policyname"])); if (ds.Columns.Contains("Adult")) { param[2] = new ReportParameter("Adult", "True"); param[3] …

Member Avatar
Member Avatar
+0 forum 1

I'm trying to write a program in which a message box is to appear on the application window when the application is launched. The code below produces the message box, but it appears as a separate window that is not over the application window. Is there a way to fix this? Ideally I would like to make it so that the user cannot move the message box off the application window. I'm using python 2.7.6 on OSX 10.6.8. Thanks. from Tkinter import * import tkMessageBox class App: def __init__(self): self.root = Tk() self.root.wm_resizable(0,0) self.frame = Frame(root, background="blue") self.frame.pack() self.cnvsHt = …

Member Avatar
Member Avatar
+0 forum 2

Hello Friends, I have developed a windows application using C#, its installed on [code]C:/program files/application folder/application.exe[/code] I have not used Data base so i have used files (CSV/TXT) for storing data, there is many types of files generated by application and some application setting variables are also stored in a file named [code]C:/program files/application folder/Application Settings folder/applicationSettings.data[/code] (encrypted Text file) application used these settings to read paths other files and some other settings, this application also have the feature to print document/images using [code] PrintDocument printDocumentObj= new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(PrintPageEventHandlerFunc); ..... [/code] application prints files successfully but if …

Member Avatar
Member Avatar
+0 forum 3

The End.