Silverlight - Convert Int To System.Windows.GridLength In VB?
Dec 25, 2009
How can I convert int to System.Windows.GridLength in VB, NET so that I can set the height of a grid row in Silverlight (xaml).
In xaml file:
<RowDefinition Height="0" x:Name="rowerror" />
In VB.NET:
rowerror.Height = CType(30, System.Windows.GridLength)
This as I wrote in VB.NET. I know I'm wrong, but how do you do if the int to System.Windows.GridLength so that the height of the "rowerror" whether that be 30?
View 2 Replies
ADVERTISEMENT
May 13, 2012
I am having this line in two of my windows phone applications :
Dim doc = XDocument.Parse(e.Result)
in the one of these apps it is working fine , in the other one it seems wrong ...
actually it cant find the object "XDocument"
When i am typing :
Imports System.Xml.Linq
it send me bug a warning :
Warning 2 Namespace or type specified in the Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
the only diference between the application that works and the applications that sends me back this bug and this worning is that the one is a simple windows phone page (the working one) and the other one is a panorama page
View 1 Replies
May 12, 2012
i am having an error :"Attempt to access the method failed: System.IO.File.Exists(System.String)"
i have to note that this line is having an external url
If File.Exists("http://www.demo.com/demo.xml") Then
blah
end if
during my first try it worked but now it seems bugy :S it does not make sense !
View 1 Replies
Nov 15, 2011
Is there an easy way to get the corresponding keydata (keycode combination) for some value in that enum? I cannot find one, and creating a switch statement for all those is a bit overkill...The integer values of the enum elements are not keycodes, but some 'unknown' big numbers, so simply casting to int won't work.
View 1 Replies
Mar 16, 2009
With the following imported namespaces in my project :
Imports System.Windows.Forms
Imports System.Reflection
.. I cannot add..
[code].....
View 6 Replies
Jul 27, 2009
I was just wondering if it's possible to animate the height of a grid using purely XAML? I looked at this tutorial[url]...
View 2 Replies
Sep 20, 2011
I'm using Silverlight 4 OOB & elevated trust.
I need to get all the filenames on specific directory & populate an object List(Of String)
The compiler throws an error "Method not found" on .Getfiles() method.
Dim files() As String = System.IO.Directory.Getfiles(Path) 'this line is failing..
View 2 Replies
Nov 21, 2011
I have a number of very useful extension methods that I'd like to use in my Silverlight project.I've pasted the Module here [URL]The problem I'm having is that visual studio complains that the dlls my module have been written against have not been built against the Silverlight runtime.Is there an easy way to get these extension methods working in Silverlight?I'm thinking my main hurdle is getting IObjectSet and ObjectContext to run against the Silverlight run-time - perhaps there's another way to expose these methods that I'm not aware of.
View 1 Replies
Sep 1, 2010
I want to know if can i use silverlight in a simple Windows Form, Like the Shockwave Flash component, to add silver light controls.
View 2 Replies
May 13, 2012
I am writing an application in VB for windows phone 7.5 but it has some bug
[Code]...
View 1 Replies
Jun 3, 2012
i am writing an application for windows phone and i am using a webbrowser i am navigating to an image , but this image is not full screen and it seems so awfull ! is there any way , either to full the wite with user's background color , or to set a default zoom on a spesific spot ?
View 1 Replies
May 24, 2012
i am writing some applications for windows phone on VB i want to connect on a remote database in order to exchange data but i do not want to use WCF (Like this : WCF) [URL] but i want to use a simple MySql because i can easilly find some free hosts !
View 1 Replies
Jun 12, 2011
i need to get data from checkbox in a groupbox. in the groupbox, it also have a label. so my coding as below
[Code]...
View 1 Replies
Mar 19, 2009
I have a LOB app written in VB.NET with a WinForms front-end and SQL back-end. After many months weighing up how to get onto the Web, I decided last month to use Silverlight 2. Now, Silverlight 3 Beta is out, but there is no end-user runtime.
Does anyone know when the runtime will be available for deployment of SL 3 apps onto client sites?
My dev timeline is about 3 months: should I persist with SL 2 and then u/g to SL3, or jump straight in to SL3?
View 5 Replies
Sep 8, 2010
I have the code which checks if there is a selected tab
Private Function GetBrowser() As WebBrowser
If TabControl1.SelectedTab IsNot Nothing Then
For Each c As Control In TabControl1.SelectedTab.Controls
If TypeOf (c) Is WebBrowser Then
Return c
[Code]...
View 2 Replies
Nov 24, 2010
I´m gettin the error Calling the fuction GetListItems but is kind weird because it works in Visual Studio 2008 Express but no in Visual Basic 2010 Express:
Dim ndQuery As XmlNode = xmlDoc.CreateNode(XmlNodeType.Element, "Query", "")
Dim ndViewFields As XmlNode = xmlDoc.CreateNode(XmlNodeType.Element, "ViewFields", "")
Dim ndQueryOptions As XmlNode = xmlDoc.CreateNode(XmlNodeType.Element,
[Code].....
View 1 Replies
Oct 13, 2010
I am using Visual Studio 2005 and am writing a SSIS package. In the package I have a VB.Script that looks at a directory on a server and creates a list of the files. I then have a store Proc that looks at a table and gets a list of files that matches the files in the first array. The result is a fullresultset. The next step I need to create a 3rd array that only contains the rows from the first that are not in the second. However, I am getting the following error. Error: The script threw an exception: Unable to cast object of type 'System.Object' to type 'System.Collections.ArrayList'.
View 3 Replies
Apr 28, 2009
I have a panel with some controls in it (several textboxes, a slider, 2 buttons, and a small groupbox).. When I click a button, I want all of the textboxes within the panel to be readonly... So I have this code: [code] When I run it though, I get the following error:Unable to cast object of type 'System.Windows.Forms.Button' to type 'System.Windows.Forms.TextBox'.If I remove a button, it moves on to give me the same error but for a label..
View 4 Replies
Aug 10, 2009
i am trying to set the property "background" on a textboxbut i am having this error :The property 'background' was not found in type 'TextBox.
View 2 Replies
Jan 28, 2010
I have a utility that is a simple exe that is not installed compiled with VS2005 and works well. But when I upgraded to VS2008 the utility can no longer locate files in the active system folder. I have UAC turned off and am logged in as the Administrator and it still can not locate a file that I can see in Windows Explorer. The file I am looking for is PakMgr.exe.
View 1 Replies
Jan 23, 2010
Private Sub wb_Scrape(ByVal sender As System.Object, ByVal e As
[Code]...
View 5 Replies
Oct 20, 2010
Win7 64 bit; fully patched VS2008 targeting FW2.0; VB.Net; running in Debug Mode (not tested in Release mode)I have a resonably complex app which I am refactoring a bit. As part of that, I relocated some code from a subroutine into a Click Event Handler. The Event Handler will, late in the handler, call the, reduced in function, subroutine. The point of this is thatNow when I click the button associated with the modified Handler I get:A first chance exception of type 'System.AccessViolationException' occurred in System.Windows.Forms.dll<br />With Error System.AccessViolationException Attempted to read or write protected memory.This is often an indication that other memory is corrupt.
at MusicManager2009.frmMain2.cmdLoadAlbum_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
[code].....
All functions of the app, except those that start from the buttonclick in question, work as before in the problem version.The problem persists after rebuilding the entire solution, after restarting VS, and after rebooting the PC.
View 10 Replies
Feb 19, 2010
When I run my project I get "An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll"
Public Class frmViewReport
Dim objForm As New frmViewReport
Private Sub frmViewReport_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
objForm.ViewReport("C:a2.rtp", , "@parameter1=test�mter2=10")
[code]....
View 1 Replies
Nov 16, 2009
I have the following code running, the first time I change the selected index, everything runs smoothly. However, if I try to change the selected index again, nothing happens and the subcategories combobox values do not change.
Private Sub cboMainCategory_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboMainCategory.SelectedIndexChanged
'* make sure the combobox is fully loaded
[code]....
View 2 Replies
May 6, 2009
I keep getting an eroor this error says: An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in system.windows.forms.dll Additional information: Specified argument was out of the range of valid values.
Option Strict On
Public Class frmWeeklyReport
Inherits System.Windows.Forms.Form
[code].....
View 7 Replies
Feb 12, 2011
A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll It displays in my Immediate Window when i run my program, I'm using a text reader to read a number of XML files using background worker...most the time it stops so something is wrong but sometimes it works fine.
View 2 Replies
May 10, 2012
i am developing application for windows phone and i want to read an xml from the web so i am using on page loaded event :
Dim cl As New WebClient
AddHandler cl.DownloadStringCompleted, AddressOf cl_DownloadStringCompleted
cl.DownloadStringAsync(New Uri("demo.com/1.xml",UriKind.RelativeOrAbsolute))
and on cl.DownloadStringCompleted event :
Dim doc = XDocument.Load("demo.com/1.xml")
but for some reason i crashes ! the bug must be that i have not to use URI : "demo.com/1.xml" , but some else?
View 1 Replies
May 13, 2012
i am developing an application in vb for windows phone and i need to do this :
Private Sub ItemTap(sender As Object, e As GestureEventArgs)
Dim url = "/" & sender.Content & ".xaml"
Me.NavigationService.Navigate(url)
End Sub
i am having in my page a listbox , the content of the listbox is an item with two atributes : name and tag
i want to use this sub in order to navigate to this paga : /name.xaml but it has an error that says that url should not be a string and anotherone that says that the targeted platform does not support latebinding
View 1 Replies
Feb 6, 2010
I am working on a card game, and i get this werid error:
A first chance exception of type 'System.Reflection.TargetParameterCountException' occurred in System.Windows.Forms.dll
The code that is cousing this error is:
Private Delegate Sub ShowcardDelegate(ByVal test As String, ByVal objtest As Object, ByVal value As Boolean)
Private Sub Showcard(ByVal test As String, ByVal objtest As Object, ByVal value As Boolean)
If objtest.InvokeRequired Then
[code].....
View 10 Replies
Feb 23, 2009
I want to cast a system.string to system.windows.forms.form
View 2 Replies