Hi,
I've recently taken over a MVVM project started by someone who's now left the company; It's my first time using WPF, but by the looks of it, it was his first time using both WPF and OOP...
Anyway, I've got a ListView in the XAML, and I've got a collection class which doesn't currently contain a "SelectedItem" property.
Can someon...
Since it's possible using the IsNumeric() and others VB.NET functions from IronPython by importing Microsoft.VisualBasic and using it as an object method, is it possible somehow to use the Year() VB.NET function from IronPython?
...
I am a bit in a pitch here. We have got a development environment and a sat environment for our oracle databases.
Here is what I want to achieve. I want to copy data from an x number of columns of my dev. environment to the same x number of columns of my sat enviroment. I've already tried some stuff and have created a couple of function...
hello,
i need to add an text at the end of the cursor position in vb .net
i tried
TextBox1.Text = TextBox1.Text.Insert(TextBox1.SelectionStart, "<br>")
it works but the cursor position sets to starting position
...
I have created a Dataview on my datatable
Dim _viewbyJob As New DataView(objts)
I use this to get a certain row out of the datatable. When I wan to update the datatable like so..
objta.Update(objts)
I get a concuurency exception.
Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.
I can see that the da...
I am trying to get the value of local path by doing the following:
Dim bar As WebProxy = WebProxy.GetDefaultProxy
Dim scriptEngine = bar.GetType().GetProperty("ScriptEngine", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Instance)
Dim acs As PropertyInfo = scriptEngine.PropertyType().GetProperty("AutomaticConfigurat...
I am using Microsoft Visual Studio 2008 with VB.NET, and in class we were assigned this project:
A procedure should calculate a 2% price increase on all red shirts, but a 1% price increase on all other items. In addition to calculating the price increase, the procedure also should calculate the new price.
You can use the variab...
Hey all, i have the following code to populate a dropdown to coinside with a companies 2008-2010 calander year. This is the output:
2008 Period 1: 11/30/2008 - 12/27/2008
2008 Period 2: 12/28/2008 - 1/24/2009
2009 Period 3: 1/25/2009 - 2/21/2009
2009 Period 4: 2/22/2009 - 3/21/2009
2009 Period 5: 3/22/2009 - 4/18/2009
2009 Period ...
More moans about WPF: As it seems generally likely that MS are going to get rid of Windows Forms (sooner or later), and I am informed by the same organisation that WPF is 'cool', just exactly how can I use the wonderful graphical data toolset in vb.net 2008?
I understand the basic concepts of creating table adapters and multiple queries...
Hello Fellow Programmers
For my website I've just implemented tinyMCE for my site (just a word processor). Everything works fine except when i try to store the string variable input into a sql server database. I want to store a string and not have the html tags make me exceed the 8000 length limit(the html tags take up most of that spac...
This time i'm tring to work with registry values and so i'm using the following code
Private Function RegKeyExists(ByVal hKey As Long, ByVal sKeyPath As String) As Boolean
Dim lResult As Long
Dim hSubkey As Long
lResult = RegOpenKeyEx(hKey, sKeyPath, 0, KEY_EXECUTE, hSubkey)
' Determine if handle is valid
...
This is bugging me. I have a "main" form named frmMain with a DataGridView object named objDataGrid.
When a user double clicks on a row or clicks another button, I hide the main form, open a new form and want to reference the values in the row selected by the user but I keep getting an error when I try to access some, but not all, of t...
Hello!
I am new to visual basic and I have to program a form application for a university project. The application has a 2d array of panels that make up a grid that user can interact with. I have some experience with java, so what I am trying to ask is if there is anyway to translate this line into visual basic:
pnl[x][y].addMouseListen...
I have a datagridview on a form that is bound to a table in a dataset from another class.
I use a data adapter to .Fill a table in that dataset and the grid displays the data fine.
Works fine.
On my form I have a textbox the user can type in that will will pass a parameter to the storedprocedure used to fill this table. So on startu...
I have a gridview which I databind to EntityModel
This typically looks like
something a
something b
companyID
on Login I get and set the compnay which has the ID so what in essence I want to do is on databind set the Where clause of data source to what the server side paramter for company ID is.
I am sure this is super simple but it...
Why the following code fails when the returned message from the server is large (over 4000 bytes)?
I get this error:
{"Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has fai...
VB.NET 2010, .NET 4
Hello all,
I have a System.Timers.Timer object that does some work on its elapsed event:
Private Sub MasterTimer_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs) Handles MasterTimer.Elapsed
MasterTimer.Enabled = False
'...work...
MasterTimer.Enabled = True
End Sub
My problem ...
How would I go about uploading an entire directory and all sub-directories and files to a SharePoint 2010 Server?
I don't think this function is specifically built into SharePoint (just uploading multiple documents in one folder). But the way I understand it, I can write something in VB or C# to accomplish this. How would I go about do...
I'm using some code to enable me to render rotated text with the TextRenderer.DrawText method. (By default, DrawText can only copy a straight forward x and y transform from a graphics object).
The code (C#) is from: connect.microsoft.com. See below for a VB conversion.
The code takes a graphics object, creates a device context and copi...
I set 4 datatables as members of my class like this:
With retval
.LookupData = ConvertArrayToDatatable(engines, ConversionType.Normal)
.AdditionalData1 = ConvertArrayToDatatable(drivetrains, ConversionType.Normal)
.AdditionalData2 = ConvertArrayToDatatable(transmissions, ConversionType.Normal)
.AdditionalData3 = Conv...