Wpf - ControlLibrary My.application Doesn't Working
Dec 18, 2009
I have built a Wpf-ControLibrary-Project to put some Controls there. In one Control i need to get some informations about assambly, Version and directory path.in the past i have done this one:
Dim msg As String
msg = "AssemblyName: " & My.Application.Info.AssemblyName & Environment.NewLine
msg &= "Version: " & My.Application.Info.Version.ToString & Environment.NewLine
msg &= "DirectoryPath: " & My.Application.Info.DirectoryPath
MsgBox(msg)
but this doesnt working anymore. I get an Error which told me that Application isn't Party of the My Namespace.
View 2 Replies
ADVERTISEMENT
Oct 13, 2010
I use Visual Studio 2003, VB.net, NetFramework 1.4 and Windows XP I have been using the following Code Snippet for a number of years in both Web Services and Windows Applications. However suddenly around the 29th September 2010 it has stopped sending E-Mails from both Web Services and Windows Applications. The same problem has happened not only to my own Network but on two other Networks, one using XP as its Server and the other using Server 2003. All 3 of these are using different ISPs.
[Code]...
View 1 Replies
Oct 6, 2011
I've spent three days trying to get a user control to do some obvious things -- show, hide, and focus among other things. Done in vBASIC in Visual Studio 2010 Pro. The calling program is a Windows Forms Application, while the user control is a WPF Custom Control Library with a single object, a textbox. The reason it's a user control is that this textbox is connected to an async serial device; the reason it's in a Custom Control Library is that I'd like to be able to drop this functioning serial-port-connected textbox into future projects.
No matter what syntax I attempt, the user control (neither the control nor the text box inside it) will Hide(). I've tried every variation I can think of with control.Visible = false, exposing public subs to do the work, etc. When the form appears and characters are typed in the field, the KeyPress routine is functioning -- it will only accept numeric digits.
Here's the vastly reduced code to illustrate the problem:
Calling Windows Forms Application
Imports DTRFormsControlLibrary2
Public Class Form1
[Code]...
In spite of the call to sbControl.Hide(), the form opens with a very visible and enabled user control text box. The ability to control visibility, focus, and enable/disable seems fundamental to any control.
View 3 Replies
Dec 9, 2009
I've spent three days trying to get a user control to do some obvious things -- show, hide, and focus among other things. Done in vBASIC in Visual Studio 2010 Pro. The calling program is a Windows Forms Application, while the user control is a WPF Custom Control Library with a single object, a textbox. The reason it's a user control is that this textbox is connected to an async serial device; the reason it's in a Custom Control Library is that I'd like to be able to drop this functioning serial-port-connected textbox into future projects
View 2 Replies
Apr 28, 2009
My module won't run, it can't find the project or library, and highlights: the Date function in: MsgBox (Date).This is happening to several VBA functions, but this is the first one.I have all the libraries referenced that I think I need, especially the Visual Basic for Applications checked.There is a MISSING: Office12 library, but the Date function is part of the VBA library, so I don't think this should be the issue.
View 2 Replies
Oct 1, 2010
I am developing a Winform Program in visual basic and I am using Access Tables. I want to use a bindingsource filter to do a search on Stock descriptions. I am using this but it doesn't seem to be working
Me.StockBindingSource.Filter = "ITEMNAME LIKE '%" & SearchTextBox.Text & "%' AND [Supplier1 Price] <> 0 AND [Supplier2 Price] <> 0 AND [Supplier3 Price] <> 0"
What's happening is that I am only seeing products where all 3 suppliers have a price listed that isn't 0. (Products have a zero price when it becomes discontinued or supplier doesn't sell that product but we may have purchasing history against it so it can't be deleted). Therefore we do end up with products where all 3 suppliers have a zero cost. These are the products I don't want this search to return.
View 10 Replies
Sep 14, 2010
The below query fails with Null Reference Exception when there are elements in BOMIDs where MatID property is nothing.I thought the 'x.MatID isnot Nothing AndAlso' would prevent the x.MatID.Process part of the where from being executed. There are a couple elements in the BOMIDs collection that where MatID is nothing.
From x In BOMIDs _
Group Join y As PurchasedProcess In SpecialProcesses _
On x.MatID.PurchasedProcess Equals y.Name _
Into G = Group _
[code]....
View 2 Replies
Nov 23, 2011
I have used persistance class and used following LINQ query.[code]but it throws an error saying. "Specified Method is not Supported".How can i get data from two table using XPO Persistance Class?
View 1 Replies
May 3, 2009
I'm very new to VB, so I was in the very first tutorial, it has me play a sound file. So I put that in, ran it, and it came back with an error saying "system cannot find this file." I guess I'm not terribly surprised, since the file they gave has no C: or anything like that. What I want to do now is play my very own sound file, but I don't want to go through the whole C:Documents and Settings... thing, so is there a way I can put my own sound file in the project directory and say something like %ProjectDir%/sounds/mysound.wav?
View 13 Replies
Feb 5, 2010
i've made a tabbed webbrowser (but i'm new and a noob with VB.NET)The tabs system is working, but the progressbar doesn't work and my titles aren't changing.
Imports System.Web
Imports System.IO
Imports System.Text
[code].....
View 1 Replies
Aug 25, 2009
I have intellisense when i type this:<p><%= boolean.falsestring %></p>
I don't have intellisense when i typ this:<p class="<%= boolean.falsestring %>"></p>
To further clarify (see line below), the first <%=%> doesn't show me intellisense popup, the second however does, why is that? <p class="<%= boolean.falsestring %>"><%= Boolean.FalseString%></p>
View 2 Replies
Mar 4, 2010
Here's the routine:
[Code]...
The problem - The btnPause doesn't pop up until AFTER the thread sleeps, but the other two buttons works correctly. What the heck is going on? Here, I'm using the Sleep to simulate doing external events yet to be programmed.
View 6 Replies
Jan 19, 2012
I'm using loop to read data from sql and then make some calculations then save it again to another table but when application loop for 3 or 4 times it's freeze but the job is done but if loop = 10 or more then it is freeze and hangup for long time .i need to learn how to make my application working better and never freeze and make application working with any count for loop without freeze .
View 7 Replies
Jan 28, 2012
So basically I made this code below to make my application (when the mouse leaves), go smoothly in an 70% opacity, with a fade.
Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
Me.Opacity = Me.Opacity - 0.05
[code].....
View 2 Replies
Jul 3, 2010
I have creating timekeeping application, I was used drag and drop for my datagridview. During build I can add, edit and delete records. But when I published and run there was an error saying (see below).
I have consume for almost 2 days to fix this problem but no luck.
[Code]...
View 1 Replies
Jan 26, 2009
I've developed a small windows form application in Visual Studio 2005. I have tested the application on a completely fresh install of Vista 32-bit as well as Vista 64-bit and it works fine... But when I copy the application onto an XP machine the following problems occur:The application no longer has its icon, just the default .exe console box icon
Whenever I try to open the application, absolutely nothing happens
View 11 Replies
Feb 10, 2012
There is a tool running in our company on 2003 servers. Now I want to test it on our 2008 x64 servers but when I start an error appears...
I´m searching for 2 days in forums and tutorials but can't find a solution. Here is the of the errormessage[code]...
View 11 Replies
Mar 9, 2010
I've almost finished a binary clock, but I have one problem. The user should choose between two different backgrounds, named binary.jpg and binary 1600.jpg
Dim Bild1 As New Bitmap(Application.StartupPath & "/Bilder/binary1600.jpg")
Picturebox1.Image=Bild1
I get "Parameter is not valid" on the first line.
View 11 Replies
Aug 12, 2010
Basically, we already had a software working in 1024x768 environment. The program however, have a lot of custom controls and forms that cause problem when users run it in a smaller screen resolution (e.g. 800x600).I had tried change the size of the forms, set auto scrolling, Klik.SizeLibNet3 and etc. All of them has too much work involved or can't achieve best result.Is there any way which I can remain the size of my program (include all the forms) and have a container with scrolling to place my program inside? Or is there any other ways that I doesn't need to modify much on my application?
View 12 Replies
Jul 22, 2011
I have an application that runs perfectly on XP. When I run in on Win 7, it works perfectly when I run it in the IDE but when I deploy it, the application starts OK but some of the functions don't work as they should. I know it could be anything but does anything stand out?
View 1 Replies
May 4, 2009
I'm trying to make a easy hot key cheat system for a game. I have a timer that checks to see if the game is activated if not then it says game not running in a label box. If so then it says it's running. It detects it running so that's good. I want it to check to see if the numberic key was pressed like 1 and it will type in the cheat code. here's the source.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Me.Focus()
[Code]......
View 11 Replies
Jan 15, 2012
I am using a vb 2005 and mySql as my database. I already created my project but it seems like when i edit my program.. it doesnt apply. What might be the problem? Is the vb.net application, MySql or the OS?
View 2 Replies
Jun 21, 2010
My vb app uses an icon which is 128x128, which looks fine on the desktop. But when viewed in a folder with View set to Extra Large Icons its size doesn't change - it is too small (smaller than 128x128). Any ideas how I can rectify this?
View 1 Replies
Jan 20, 2010
I have just started a simple project in VB 2008 express (having previous experience (not much though) in VB6). At the moment I have only 1 form and when I click on the red x close button the form closes but the process is still running in task manager. I have the following code which I assumed would exit the program and terminate the process but it doesnt seem to work[code]...
View 6 Replies
Apr 22, 2012
I want to develop an app which won't allow the user to open or jump to another application while it is open. It should be in Visual Basic. For example, if my application is open (running) and the user tries to open any other windows application like "media player" then it shouldn't open. The app should not even allow "task manager" to run. The application should completely block the windows environment while it is running.
View 2 Replies
Apr 22, 2010
Is it possible to make that an application doesn't have to be installed so it would be portable?
View 5 Replies
Nov 6, 2009
I published my ap, and installed it on my pc. Now, I run it and it works great, however when I close it the .exe doesn't end...
View 3 Replies
Apr 2, 2010
I have a standard Visual Studio 2008 VB.Net WinForm application, running on Vista Business. One of the forms has a timer that passes Me.Handle to FlashWindowEx. This works as intended as long as none of the windows that belong to this application are the Foreground window. If this program is running and another application's window is the Foreground window, then it flashes as intended. If, however, any of this application's windows are the Foreground window, then it doesn't flash.
[Code]...
View 2 Replies
Oct 21, 2011
Okay, so a program I've been working isn't running correctly. The application freezes and doesn't continue onto the next command (SetCursorPos(999, 999))
Here's my code:
[Code]...
View 9 Replies
Apr 7, 2011
VB.Net 2k5 Web Application The base application has a web.config file with an httpModules section:The sub-project compiles to the same bin folder as the base application, but I get this message:
Parser Error Message: Could not load file or assembly 'Castle.MonoRail.Framework' or one of its dependencies. The system cannot find the file specified. (c:inetpubwwwrootweb.config line 132)
Source Error:
Line 131: [<]httpModules[>]
Line 132: [<]add name="monorail"
type="Castle.MonoRail.Framework.EngineContextModule,
Castle.MonoRail.Framework"/[>] --- Error here
[code].....
View 3 Replies