Yes, WPF. The learning curve is steep, but what amazing things you can do with it! Look at this hexagon window for instance. Serves no purpose in a business environment I guess, but in a gaming situation it could work. For me, it was just fun to get this up and running. I’m using VS 2017. Start up a new WPF window project. Call it HexagonWindow and fill in the missing code. I still don’t understand all the intricacies of WPF, I’m just a mere mortal human being, but my quest on the subject is ongoing. Why don’t some of …

Member Avatar
Member Avatar
+0 forum 2

i know how to do the link thing that if u click it it closes the window. but im wondering if theres a way to automatically close a window after the php code is done running. cause i have an inbox and theres a link to delete the message if you click on it it will open up a new windows and run the php script to delete the message then it will say message deleted. im wondering how instead if just saying msg deleted it can close itself(the window) as well? does anyone know how? can i do it …

Member Avatar
Member Avatar
+0 forum 14

I am making a text adventure and would like the command line window to be a specific size when you run the .py file in the command line window. eg. 300 wide by 250 height. I found a thread on here that shows how to specify the text colour which I also wanted to know. [url]http://www.daniweb.com/forums/post1150939.html#post1150939[/url] Can anybody help? Thanks.

Member Avatar
Member Avatar
+0 forum 11

Hello. I'm using Linux OS, Python 2 and the last version of Kivy framework. Here i have 2 files that i have typed them exactly as what i watched on a kivy tutorial video. Fist file is "main.py": from kivy.app import App from kivy.uix.scatter import Scatter from kivy.uix.label import Label from kivy.uix.floatlayout import FloatLayout from kivy.uix.textinput import TextInput from kivy.uix.boxlayout import BoxLayout class ScatterTextWidget(BoxLayout): pass class TutorialApp(App): def build(self): return ScatterTextWidget() if __name__ == "__main__": TutorialApp().run() And the second one is "Tutorial.kv": <ScatterTextWidget>: orientation: "vertical" TextInput: id: my_textinput font_size: 120 size_hint_y: None; height: 200 text: "Hello World!" FloatLayout: Scatter: Label: …

Member Avatar
Member Avatar
+0 forum 3

Anyone please, help my acer aspire one stuck at window xp logo loading. I try everthing in F8 button, it didn't work, even in safe mode stuck at 'window starting up'. Please anyone, help me, i don't want waste my money to fix this (T-T)

Member Avatar
Member Avatar
+0 forum 8

So I'm making a map editor with C# and XNA. I have currently got it setup so there is a windows for with a picture box, which the game is being displayed through. The problem is this, I want (0,0) to be the upper left corner of the picture box, not the game window. At the moment im trying to return the cursor position but its relative to somewhere in the upper-middle portion of the window...the X-coordinates will go negative if the cursor is in the left third of the screen, and the Y-coordinetes will go negative if the cursor …

Member Avatar
Member Avatar
+0 forum 1

Hello everyone, So I have a quick question. Back when there was something written by BoFen and it was called codegenie and I have a copy of it and i've been using it with some success. What I'd like to know is are there any good api spies that generate information like this: ShellTrayWnd& = FindWindow("Shell_TrayWnd", vbNullString) Button& = FindWindowEx(ShellTrayWnd&, 0&, "Button", vbNullString) because I'm not too sure, how you could determine the buttons. For instance. The run dialog, it has 3 buttons. OK, CANCEL and Browse. If i'm dealing with multiple buttons, lets say 7 buttons as follows: OK, …

Member Avatar
Member Avatar
+0 forum 2

I'm trying to pass the ac_no contained in my database table to a form that's displayed within a Bootstrap Modal upon clicking a button. My code is as follows. <?php $mydata = mysql_query("SELECT * FROM slabpay WHERE ac_no='$ac_no'"); while($record = mysql_fetch_array($mydata)) { $id=$record['id']; ?> <tr class='fired' id='<?php echo $record['id']; ?>'> <td class="center"><?php echo $record['install_no'] ?></td> <td class="center"><?php echo $record['install_amt'] ?></td> <td class="center"><?php echo $record['install_date'] ?></td> <td class="center"><?php echo $record['agent_name'] ?></td> <td id="fired" class="center"> <?php if($record['install_amt']=='000000') { ?> <button class="btn btn-info" data-toggle="modal" data-target="#payAmt" data-id="<?php echo $row['ac_no']; ?>"> <i class="halflings-icon white edit"></i> </button> <?php } ?> </td> </tr> <?php } ?> // …

Member Avatar
Member Avatar
+0 forum 2

Hello. I just thought of adding the js print function to a page im building. from what i read i know it is pretty straight forward, use window.print. i was thinking about some of these sites that have this printing function that when a button or link is clicked a new tab is open like a preview page then on the bottom right corner there are these options to print and save and what not and i want to do something like that. but i don't know where to start. does that preview page have to be built first? if …

Member Avatar
Member Avatar
+0 forum 2

my [previous question](http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/477450/convert-str-to-var) about this dealt with global vars but unfortunatley the `window` of opportunitys doesn't work with this next example because it alerts 4 times instead of only 1 test("a","b","c"); function test(var0,var1,var2,var3) { for(var i=0; i<4; i++) { if(window["var"+i]===undefined) {alert("test");} } } this may not be very clear so I will try again this time I want it to alert all three vars test("a","b","c"); function test(var0,var1,var2) { for(var i=0; i<3; i++) { alert(window["var"+i]); } } how can I achieve the identical results as with the `window["str"+var]` from within a function?

Member Avatar
Member Avatar
+0 forum 1

this is my attempt var test=["a","b","c"]; var var0="a"; for(var i=0; i<1; i++) { test.splice(test.indexOf(test[window["var"+i.toString()]]),1); } alert(test); it alerts "a,b" but I want it to alert "b,c" ref:http://stackoverflow.com/questions/5613834/convert-string-to-variable-name-in-javascript

Member Avatar
Member Avatar
+0 forum 2

It is relaed to the thread i posted a while ago. Before I edited the model of my table, it was working properly, but when i added some columns thats when the problem came out. Everytime i click the button that will open this window, it goes blank. Only a big window filled with white comes out. here is my code: tblInventory.setModel(new TableDefault( new Object[][] { }, new String[] { "Borrow", "ItemID", "Item Description", "Quantity", "In-Stock", "Out-Stock", "Last Borrowed", "Remarks" }, new Class[]{String.class, Boolean.class} )); System.out.println("lllllllll"); scrollPane.setViewportView(tblInventory); JButton btnOk = new JButton("Ok"); btnOk.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { …

Member Avatar
Member Avatar
+0 forum 6

Hi. I am trying to perform a TranslateTransform on an Image using this code: double to; int increment = 2; TranslateTransform tt = new TranslateTransform(); background.RenderTransform = tt; to = Canvas.GetTop(background) + increment; DoubleAnimation da = new DoubleAnimation(to, TimeSpan.FromSeconds(0)); Canvas.SetTop(background, to); tt.BeginAnimation(TranslateTransform.YProperty, da); This works when the Image exists in a Window: <Window x:Class="trpgwpf1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" ResizeMode="CanMinimize" KeyDown="WindowKeyDown"> <Canvas Name="canvas"> <Image Name="background" Stretch="UniformToFill" Source="Images\test.png" /> </Canvas> </Window> But nothing happens when I try to transform an Image on a Page: <Page x:Class="trpgwpf1.Page1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Page1"> <Canvas Name="canvas"> <Image Name="background" Stretch="UniformToFill" Source="Images\test.png" /> </Canvas> </Page> Does anyone know why? I …

Member Avatar
Member Avatar
+0 forum 2

A complete C implementation of Linked List...tested on Linux GCC

Member Avatar
Member Avatar
+0 forum 5

I start up my mother in laws computer and she has not start menu no icons nothing. I can acess task manager and commpand prompt. She thinks she has gotten a virus where it has hidden everything as when you click create a new task under file you can see the file names. However if you click any of them it says "This file does not have a program associated with it for performing this action. Create an association in the Folder Options control panel." However I do not know how to access the control panel. If anyone has any …

Member Avatar
Member Avatar
+0 forum 1

Hi all. Im having trouble getting my menu to work on my window. this is what I have so far as for my code. package sparepartinventory; import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.*; /** * * @author jonathan */ public class SparePartInventory { /** * @param args the command line arguments */ public static void main(String[] args) { //Getting screen size Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); double width = screenSize.getWidth(); double height = screenSize.getHeight(); //Creating a window for the program JFrame Window = new JFrame(); Window.setVisible(true); Window.setTitle("Spare Part Inventory"); Window.setSize((int)width,(int)height); Window.setResizable(true); Window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public void Menuforwindow() { JMenuBar MenuBar; JMenu menu; JMenuItem …

Member Avatar
Member Avatar
+0 forum 1

Hello, I have worked on a project to make a custom-like Internal Frame. There are also other classes which extends it, instead of JInternalFrame. The project works quite good, but there is a problem. The discription of how the JPanel window works: _______________________________________________________________ There is a main JPanel which contians 4 JPanels on every corner. There is also a JPanel called titlebar, Which is the draggable JPanel. All the JPanels have added MouseListener and MouseMotionListener. Whenever the mouse has entered any of the four corner panels, the cursor is changed to NW,NE,SW,SE Resize Cursor. These are draggable, and sets variables …

Member Avatar
Member Avatar
+0 forum 15

My application requires a dialog box and a parent window, from the window proc of the parent window I'm trying to draw on the dialog box. How might I do this? Thank you for reading :)

Member Avatar
Member Avatar
+0 forum 11

I would like to connect Softphones with each other. I would like to check <B>what phone calls are being in progress</B> in the system, more precisely, between the actual phones. If it is possible, I would like a solution for the case when any of the participants calls the other, I -as a third participant (as an owner)- <B>will receive a notification immediately</B> about the call and its datas. It would be even better if I had more control in the actions, for example, I would like to <B>interrupt or hang up the call</B> in particular cases. I found a …

Member Avatar
Member Avatar
+0 forum 1

Hello Community, I was wondering if there is a way to get a grid from another window to display in another window by the way i'm using fluidkit slide transition. Please Help...

Member Avatar
Member Avatar
+0 forum 1

Good day everyone - Since this is my first post, I must say hi. I just started learning Python 8 hours ago and I like to challenge myself, so following a guide on playing with files, I decided to make a program that would open a .txt and it would create a backup and save to that backup in real time. **Problems - 1) CTRL+S won't do the trick, it'a mess - It could work very well if ran as daemon and only on that specifical window 2) - I wish for the script to stop running when notepad.exe, actually …

Member Avatar
+0 forum 0

Hello, How would I be able to do an onClick to take a value from a link and put that into a form field in another form located in a different browser window with a different url? For example: window 1 /browser A <a href="#" onClick="takeThisValue();">thisIsTheValueIwantToUse</a> window 2 /browser B (site is: www.anothersite.com) Form name is "sampleForm" and the textfield in the sampleForm I want to put it in is called "formValue". In other words, I want to put the value "thisIsTheValueIwantToUse" from a link in window 1 / browser A and put in the text field called "formValue" in …

Member Avatar
Member Avatar
+0 forum 2

hi everyone. i've used the following way to store the uploaded files into D: drive of my windows machine from Tomcat server and it works pretty goood. private final String directoryPath="D:\\uploadedFiles\\"; File f=new File("D:\\uploadedFiles\\"+fileName); InputStream in=file.getInputStream(); OutputStream out=new FileOutputStream(directoryPath+fileName); byte[] buff=new byte[4096]; int count=0; while((count=in.read(buff))!=-1) { out.write(buff, 0, count); } out.flush(); now, I want to store the same uploaded files in the linux machine which hosts the Tomcat server. Can i just change the directoryPath in order to store the files in that folder? E.g. /tmp/uploadedFiles ?? Please help me. Thank you.

Member Avatar
Member Avatar
+0 forum 6

I'm trying to embed a window into my own. I somehow new it would not be as simple as it sounded, so I'd like a pointer where else to look if anyone can help. hMyOwnWindow //HWND hExternalWindow // HWND //size the external window so it will fit. MoveWindow(hExternalWindow,19,102,383,400,true); //set style of window if(!SetWindowLong(hExternalWindow,GWL_STYLE, WS_CHILD | WS_VISIBLE)){MessageBox(nullptr, L"SetWindowLong fail", L"Error", MB_OK);}; //set external as child of own window if(!SetParent(hExternalWindow,hMyOwnWindow)){MessageBox(nullptr, L"SetParent fail", L"Error", MB_OK);}; I do not get any errors, but the external window does not embed/dock/move with my own window. I've a feeling I've missed something rather than doing something wrong.

Member Avatar
Member Avatar
+0 forum 11

Hi, I want to learn window count of one process, who have any idea about this?

Member Avatar
Member Avatar
+0 forum 1

I want to show movie trailer by click on movie button. i have done this by using colorbox. i had include .js and .css file in my template.php file. and i prepare following code for this. but i can't able to do this. plz anyone guide me. how can i show trailer in my website? i had store trailer path in my database for partcular movies. My code is as: trailer.php <? require_once("template.php"); function main() { ?> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td> <?php $sql = "select * from movie"; $result = mysql_query($sql); ?> <table> <tr> <?php $i = 0; …

Member Avatar
Member Avatar
+0 forum 13

Hi guys, I'm working on a shopping cart and I'm having some difficulties with a concept. Basicly, I remove two articles in a certain condition and it works perfectly. My problem is that I want to redirect the user instantly if these two articles are removed from the cart. When I enter the window.location, it is refreshing the page but it's not updating the cart from the ajax call. So what I want to achieve is that after these two ajax calls, i want to be redirected but also, the ajax call should do their things in the `delete_item.php` :) …

Member Avatar
Member Avatar
+0 forum 2

I want to close my current window in javascript and want a prompt alert to close or stay here when window is closed by me. i have used onbeforeunload property of body tag.

Member Avatar
Member Avatar
-1 forum 3

Hi i try to convert jpg to wmv using window media encoder when i running this code I get error "System.Runtime.InteropServices.COMException (0xC00D0BB8): The input media format is invalid." at line: SrcVid.SetInput(@"C:\Users\jacoba\Videos\Untitled.jpg", "", ""); any idea how to SetInput for jpg (or any others image - BMP, PNG etc. thanks, try { //get current folder string curentFolder = Directory.GetCurrentDirectory(); // Create a WMEncoder object. WMEncoder Encoder = new WMEncoder(); // Retrieve the source group collection. IWMEncSourceGroupCollection SrcGrpColl = Encoder.SourceGroupCollection; // Add a source group to the collection. IWMEncSourceGroup SrcGrp = SrcGrpColl.Add("SG_1"); IWMEncVideoSource2 SrcVid = (IWMEncVideoSource2)SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_VIDEO); SrcVid.SetInput(@"C:\Users\jacoba\Videos\Untitled.jpg", "", ""); //Bitmap file (.bmp, …

Member Avatar
Member Avatar
+0 forum 3

Does anyone know how to restore a window (which does not belong to current process) to the state is was in previous to having been minimized? I've been trying ShowWindow and SetForegroundWindow, but if the window was maximized, it will only restore it to it's RESTORE state (not maximized) ShowWindowAsync(hWnd, SW_SHOW); SetForegroundWindow(hWnd); I have tried every flag for nCmdShow, but none work, and I've tried ShowWindow with them all as well as ShowWindowAsync.

Member Avatar
Member Avatar
+0 forum 5

The End.