w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Quick Book Integration with C# Windows Application
The quickbooks integration requires that your application is registered with the company quickbooks file (.qbw I believe). In order for the connection to even take place, you have to run this application directly against the quickbooks installation while quickbooks is running, and authorize your application for integration into quickbooks. I'll dig up the relative links in a follow-up edit. EDIT here are the links that pointed me in the right direction: http://www.qodbc.com/qodbcconnect.htm http://www.ehow.com/how_8478505_add-integrated-application-quickbooks.html http://www.vtechnologies.com/kb.htm?prodid=2&kbid=797F8F94-3706-480D-A357-31B80AE2D011& There are some other things that could be going on as well. Inspect any COM exceptions that you are getting back and investigate th

Categories : C#

Create a XML Serialization and Deserialization for generic list in C# windows form application?
you have to have a base class to present your data and is an example: [XmlIncludeAttribute(typeof(ConcreteFooOne))] [XmlIncludeAttribute(typeof(ConcreteFooTwo))] [XmlIncludeAttribute(typeof(ConcreteFooThree))] [XmlRoot(ElementName = "FooData", Namespace = "http://foo.bar")] public abstract partial class AbstractFoo { } [XmlRoot(ElementName = "FooData", Namespace = "http://foo.bar")] public class ConcreteFooOne : AbstractFoo { public string MyProp { get; set; } } [XmlRoot(ElementName = "FooData", Namespace = "http://foo.bar")] public class ConcreteFooTwo : AbstractFoo { } [XmlRoot(ElementName = "FooData", Namespace = "http://foo.bar")] public class ConcreteFooThree : AbstractFoo { } class Program { static void Main() {

Categories : C#

How can I make a quick edit text link to auto fill form information from a mysql database
Use a string to hold selected number,use the stored value in the string to search for the required row.Use another string to pull the information from the database and use # to split the columns.Save each column to a specific string which you will assign to where the value should be auto filled.

Categories : PHP

can we have multiple form in a single form in windows form application?
Create a windows form. This will be your main form. Assuming your using Visual Studio this is realatively easy. Once you have your main form up, drag and drop a user controller onto your form. Have your main form contain the 5 buttons,and your data grid on the other form.

Categories : Windows

How to make c program as executable in windows 7
You need to link with the runtime library which contains the startup function and all other standard functions. Why not skip the preprocessor and assembler step, and go directly to object file? And also use gcc when linking which will add the needed extra libraries automatically? Or for simple single-source-file programs go directly to executable? Either $ gcc hello.c -c -o hello.o $ gcc hello.o -o hello Or $ gcc hello.c -o hello

Categories : C

Change IOS Application Name with windows C# third party program
I don't think it's a problem that you rename the app in the plist. You just need to sign the ipa again with your developer certificate after renaming. The easiest way is to use xcode's command tools, but unfortunately you need mac os x. You can look at https://github.com/maciekish/iReSign , which is a great/easy tool built on top of xcode command tools. Maybe you can find a windows tool that allows you to sign an ipa file. I haven't looked into such a tool... so it's just a maybe.

Categories : C#

C# Windows Form Login Program
You could simply a bit with: const string f = @"C:Users.txt"; string[] lines = System.IO.File.ReadAllLines(f); if (Array.IndexOf(lines, userBox.Text) != -1) { MessageBox.Show("correct"); } else { MessageBox.Show("Not Correct"); }

Categories : C#

C# Windows Form Application : how to do something in background after the form has been loaded?
Look at BackgroundWorker component it was specifically designed to allow you to do work in the background and report progress/change to the UI. Note that you're also pausing the UI thread by calling Thread.Sleep(1000) which probably won't end well. You can find documentation on background workers here - http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx

Categories : C#

Opening a windows application like a game or a browser or any other program with c++
Did you try CreateProcess ? CreateProcess(lpApplicationName NULL, NULL, NULL, NULL, NULL, NULL, NULL, lpStartupInfo, lpProcessInformation )

Categories : C++

Python - Windows - Keep Program On Top Of Another Full Screen Application
You can use SetWindowPos to make your window topmost, but any program that asks to be topmost after yours will get it, and draw over your window. It's impossible to make a window that is always on top of every other window. In his article, How do I create a topmost window that is never covered by other topmost windows?, Raymond Chen writes, We already know that you can't create a window that is always on top, even in the presence of other windows marked always-on-top. An application of the "What if two programs did this?" rule demonstrates that it's not possible, because whatever trick you use to be on-top-of-always-on-top, another program can use the same trick, and now you have two on-top-of-always-on-top windows, and what happens? However, there is some small hope. He g

Categories : Python

Make QPushButton close all open program windows
Checkout this example: #!/usr/bin/env python #-*- coding:utf-8 -*- #--------- # IMPORT #--------- import sys from PyQt4 import QtGui, QtCore #--------- # DEFINE #--------- class MyWindow(QtGui.QWidget): def __init__(self, parent=None): super(MyWindow, self).__init__(parent) self.pushButtonClose = QtGui.QPushButton(self) self.pushButtonClose.setText("Close Windows!") self.pushButtonClose.clicked.connect(self.on_pushButtonClose_clicked) self.pushButtonWindows = QtGui.QPushButton(self) self.pushButtonWindows.setText("Create Windows!") self.pushButtonWindows.clicked.connect(self.on_pushButtonWindows_clicked) self.layoutVertical = QtGui.QVBoxLayout(self) self.layoutVertical.addWidget(self.pushButtonClose)

Categories : Python

i need a list view example program in windows phone 8
Here's the simplest example I could come up with. I've also added handling for contacts without any phone numbers. xaml: <phone:PhoneApplicationPage x:Class="so17564250.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" FontFamily="{StaticResource PhoneFontFamilyNormal}" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}" SupportedOrientations="Portrait"> <Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/>

Categories : C#

Adding Sharepoint List Item to Windows form list
Completely untested, made fresh while drinking morning coffee. Good luck! var list = siteWeb.Lists.TryGetList(listName); if (list == null) { return; } var items = list.GetItems(query); var countOfItems = items.Count; if (countOfItems == 0) { return; } var listItemFieldObjects = items.Cast<SPListItem>().Select(item => item[1]); foreach (var item in listItemFieldObjects) { var listViewItem = new ListViewItem("Object's value"); listView.BeginUpdate(); listViewItem.SubItems.Add(item.ToString()); listView.Items.Add(listViewItem); listView.EndUpdate(); }

Categories : Sharepoint

How to programmatically disable Program Compatibility Assistant in Windows 7 and Vista for a native C++ application?
I think you should rename your application. There are some hard-coded names which forces the PCA... like: Productname contains “instal” or “setup” or “update” Companyname contains “instal” or “setup” or “update” Internalname contains “instal” and app is not named “TrustedInstaller.exe” Originalfilename contains “instal” and app is not named “TrustedInstaller.exe” Filedescription contains “instal” and app is not named “TrustedInstaller.exe” Filename contains “instal” and is not named “TrustedInstaller.exe” Exportname contains “setup.exe” or “install.exe” or “stub32″ or “stub32.exe” or “signstub.exe” Filename contains “patch” or “setup” or “uninst” or “update” or “lhaca*.exe” Filedescription con

Categories : Visual C++

Windows Form Application with UDP
The static method SetTextForLabel doesn't have access to the controls of the instance of the class Form1. You have to provide a specific instance by passing a parameter or declaring a static member in the Form1 class. As mentioned in the comments, this won't work either since Application.Run() starts an application in the current thread so the code needs some refactoring as well. public partial class Form1 : Form { public Form1() { InitializeComponent(); ConnectUDP(); } private void ConnectUDP() { UdpClient subscriber = new UdpClient(8899); IPAddress addr = IPAddress.Parse("230.0.0.1"); subscriber.JoinMulticastGroup(addr); IPEndPoint ep = null; for (int i = 0; i < 10; i++) { byte[] pdata

Categories : C#

Arduino_Visual_Studio-Windows Form Application
It's probably not feasible or practical to attempt a Windows Form application on a Raspberry Pi and definitely an impossibility on an Arduino. The RaspberryPi.org site explicitly states that RaspberryPi will not run Windows applications: enter link description here The Arduino really does not have a GUI or a Window subsystem that would support that type of application. Really, the Arduino is just such a tiny little 8 bit cpu, 2k ram computer, it is just completely off the radar for a Windows application. You may want to investigate the possibility of writing a Python application in windows and porting that to a Raspberry Pi.

Categories : C#

including one form in the other in a windows application
To use classes from another projects (forms are classes): Classes must be public. You must add target project by right-clicking on your current solution and then Add, Existing project... and selecting your project Use classes by specifying their full name with namespace or use using directive. The second task is to use one form as a container for others. This article can help: How to: Create MDI Child Forms

Categories : Dotnet

Using nsis to package application installer and .wav file does not play because of a path on Windows containing a space --> Program%20Files
getResource() returns a URL, and it has URL encoding applied here. You have two options. You can convert to a URI: String filename = this.getClass().getResource("/audio/siren.wav").toURI().getPath(); Or you can use URLDecoder to decode the path before passing it along to your AudioInputStream: String filename = this.getClass().getResource("/audio/siren.wav").getPath(); filename = URLDecoder.decode(filename, "utf-8"); See the blurb at the end of the intro section for java.net.URL.

Categories : Java

How to make form always on top in Application
You are looking for an owned window. It is always on top of the owner and it gets minimized along with the owner. Good examples of owned windows are the various helper windows inside Visual Studio. You can undock them but they'll always stay on top of the VS main window. You create an owned window by displaying it with the Show(owner) overload. Or by explicitly assigning its Owner property.

Categories : C#

C# WPF Application Open Regular Windows Form First
Just instantiate the Windows form in your WPF Form's/Viewmodels constructor and call ShowDialog: namespace WpfApplication11 { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); var form1 = new Form1(); form1.ShowDialog(); Close(); } } }

Categories : C#

ADD url in textbox to listbox in Windows Form Application c#
private void btnAdd_Click(object sender, EventArgs e) { string _webstring = @"http://"; string _website = _webstring + textBox1.Text; listBox1.Items.Add(_website); using (StreamWriter w = File.AppendText("websites.txt")) { WriteLog(_website, w); } using (StreamReader r = File.OpenText("websites.txt")) { DisposeLog(r); } } private void btnLaunch_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("iexplore.exe", listBox1.SelectedItem.ToString()); } private void btnSave_Click(object sender, EventArgs e) { using (StreamWriter w = File.AppendText("websites.txt")) { foreach (string items in listBox1.Items)

Categories : C#

How do I use UdpClient.BeginReceive with a Windows Form application (VB.NET)
Your UDPRecv() method will run on an I/O completion thread. Any attempt to update the UI from that thread is going to bomb your program. You'll have to use the form's BeginInvoke() method to pass the string to a method that runs on the UI thread. You will also have to deal with the socket getting closed when your program terminates, that requires catching the ObjectDisposedException that the EndReceive() call will throw. So make it look like this: Public Sub UDPRecv(ar As IAsyncResult) Try '' Next statement will throw when the socket was closed Dim recvBytes As Byte() = dgClient.EndReceive(ar, SiteEndPoint) Dim recvMsg As String = Encoding.UTF8.GetString(recvBytes) '' Pass the string to a method that runs on the UI thread Me.BeginInvoke(New

Categories : Vb.Net

password for Login Application in c# windows form
Just set up a property of textbox: textbox.UseSystemPasswordChar == true; and you can also set the char for password what ever you want: textBox1.PasswordChar = '*';

Categories : C#

How to launch a C# windows form application from Outlook?
try passing the parameters like so: C:whatever.exe -<your parameter> . Then read the parameter as an argument For example: if you have the exe as C:whatever.exe -<your parameter> in the void Main(string[] args) you would do the following: void Main (string[] args) { foreach (var item in args) { var parameter=item; // do whatever you wish with parameter } }

Categories : C#

Java Program Statement : How to make a computer class having a list of printers available to it
Create your Computer class and in the Computers class maintain computer objects list. Computer class looks like this . public class Computer{ private String computername; private ArrayList<String> printernames; public Computers(String computername,List<String> printernames){ this.computername=computername; this.printernames=printernames; } //setters //gettters // } Usage : String compname ="Apple"; List<String> printernames = new Arraylist<String>(); printernames.add("AplrPrinter1"); printernames.add("AplrPrinter2"); printernames.add("AplrPrinter3"); Computers comp = new Computers(compname,printernames);

Categories : Java

Startup Code in a Windows Presentation Form Application
From the fine manual: Application.Startup Event Occurs when the Run method of the Application object is called. Example XAML: <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SDKSample.App" Startup="App_Startup" /> Example C#: using System.Windows; // Application, StartupEventArgs, WindowState namespace SDKSample { public partial class App : Application { void App_Startup(object sender, StartupEventArgs e) { // Application is running // Process command line args bool startMinimized = false; for (int i = 0; i != e.Args.Length; ++i) { if (e.Args[i] == "/StartMinimized")

Categories : Wpf

Running Multiple Instance of Windows Form Application
Yes, you can easily create multiple instance of the same form. For example: new ChatWindowForm.Show(); Also see the Control.Show() method documentation.

Categories : C#

C# UI multiple KeyDown Events ?? windows form application
Simply private void o(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.O) { openFileDialog1.ShowDialog(); } else if (e.KeyCode == Keys.P) { player.Play(); } } you may want to define only one event-handler, but you can check for several keys pressed.

Categories : C#

Sharing data between console application and a windows form
There are many ways - you can use sockets, pipes, message queues, you can store information in a database, you can host a WCF service in the console application etc. But I won't get into a discussion of which of those is best here. Really, if you are having this problem, then very probably you should make your whole solution a Windows Forms/WPF application. It's a lot easier to pass information between forms of the same application, specially if they can reference each other amongst themselves. They just have to call each other's methods, or access each other's properties, or go for the same static class. All in the same environment, no application boundaries crossed. If you want to keep the console there, you could have the main form be hidden and open up a separate console app. Then yo

Categories : C++

Unchecking event ListView Windows Form Application
Handle the ItemCheck event and read the NewValue property to determine if it's about to be checked or unchecked. private void myListView_ItemCheck(object sender, ItemCheckEventArgs e) { if (e.NewValue == CheckState.Unchecked) { //unchecked } else if(e.NewValue == CheckState.Checked) { //checked } }

Categories : C#

Converting Decimal to char* in C++ windows form application
What do you mean by Decimal? Perhaps int? See itoa() in the C runtime, or template<typename T> std::string to_string(T num) { std::ostringstream stream; stream << num; return stream.str(); } and call TiXmlText(to_string(666).c_str());

Categories : Visual C++

How can I keep open the command prompt in my windows form application in c++?
Have you tried the following? system("cmd /k dir c:\"); /k keeps the cmd prompt window open after the executing process has terminated. But, to be honest, it may be better to use the Windows Terminal Services API for finer control, if you so desire. But, depending on what you want to do - that might be overkill. And, regarding your second question: don't forget to escape your backslashes in: const char program[] = "C:\Windows\System32\cmd.exe"; WinExec((LPCSTR)program, SW_SHOWMINIMIZED); References: http://superuser.com/questions/306167/how-to-prevent-the-command-prompt-from-closing-after-execution

Categories : C++

Windows-Ding when I press Return on C# form application
This happens when one of your text boxes has the focus. It ding-a-lings you to remind you that it doesn't know what to do with the Enter key. It only has a meaning if the box' MultiLine property is set to true. Of course it is not set. The Enter key is special, along with the Escape key, it is intended to operate the default button of the window. You have one, you like your Calculate button to be your default button. So select your form in the designer and change the AcceptButton property, pick your Calculate button from the combobox. Don't forget to add the code that checks that the text boxes have valid strings in them that can be converted to a number with, say, double.TryParse().

Categories : C#

How to send data windows form application to website
You can simple send a Get/Post-Request to your PHP-Page: Generate HTTP Requests using c# and then Read the data via: $Get or $Post. You can do the same with ASP.Net, via QueryString: string cParam = Request.QueryString["param"];

Categories : C#

Select doesn't work from windows form application
Better approach would be this: var command = new SqlCeCommand("select top 1 * from Files where nameFile = @file",con); command.Parameters.AddWithValue("@file", name); var returned = command.ExecuteScalar(); if (returned != null) { returned = true; } and this should work fine. Also top 1 is for performance if you only want to check if file exists in database.

Categories : C#

Windows Form Getting the Filepath when the application is installed in the system
I am using a public property which gives address of the root folder of the application : public string StartPath { get{ return System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase).Substring(6); } }

Categories : Asp Net

How to select which control overlays other in Windows form application
You can use BringToFront() to bring the Line (or any Control) forward in the z order. l.BringToFront();

Categories : C#

How to make a form in a DLL embedded inside my application?
If the parent is another Delphi program, you could simply make your DLL as a BPL, and then you shouldn't have problems with stuff like this. Have a look at the plugin system in the JVCL for a way to make it easy to plug new functionality into your program with packages.

Categories : Delphi

qml and c++ with qt quick 2 application
You can definitely use ApplicationWindow, but you need to use QQmlApplicationEngine, and you need to explicitly show your toplevel window. You can see a complete example in another answer. Below is just a main.cpp file that should work for you. #include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQuickWindow> int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlApplicationEngine engine; engine.load(QUrl("qml/convQML/main.qml")); QObject *topLevel = engine.rootObjects().value(0); QQuickWindow *window = qobject_cast<QQuickWindow *>(topLevel); window->show(); return app.exec(); }

Categories : C++

How to make a windows phone application load faster like default applications?
Windows Phone 7 On Windows Phone 7 it's not possible to make a 3rd party app perform like the built-in apps such as People, Pictures, Calendar, Games, Music+Videos, etc. Those apps are mostly likely written in C++ and are natively compiled, have special permission to run in the background (so they resume instantly), and have full OS/hardware access. 3rd party apps (ie. the apps you and I can write) are compiled against the Silverlight platform which is not as performant as natively compiled C++ code, which is why even a simple app with no splash screen and a single TextBlock will take longer to load than, say, the built-in Games app (and not feature the proper entrance animation). So, all you can do is try and make your app startup as fast as possible, given the circumstances. There ar

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.