.net - Losing Data Continued?
Jan 20, 2011
This procedure is inside of the xsd file:
Public Shared Sub AddRowData(ByVal sender As Object, ByVal e As System.EventArgs)
Dim myDataCol As DataColumn
Dim myDataRow As DataRow
[code]....
Before it leaves the procedure I'm checking the DataSet row and I see that the Variable are there.In the next step it goes to a form on which I'm viewing the relative report.The Last form has only the Load event, nothing else. there is no any row .
View 1 Replies
ADVERTISEMENT
Oct 9, 2010
First let me start off by saying that I have dealt with Winsock for MANY years and am attempting to convert my project over from vb6 to VB.Net.This program was made to handle up to 70 connections at a time and constantly sending data from Server to clients and back.
There is one packet however, that reaches up to be around 177kb when sent. The sockets are set up to sent 1kb at a time.... (No other packet actually uses the whole kb). It seems that after the server sends this large packet... the client receives the data out of order. After debugging and monitoring I find that it normally happens between 3-4kb. While the first 3 are good and in order.My question is, is there a different system I should use instead of just Sockets (I have had similar problems with TCPClient) and/or can someone maybe link me to a sample project that would not have this error?
View 1 Replies
Jan 10, 2010
How can i reload/refresh the same form again without losing the data stored along with the form?
View 1 Replies
Apr 23, 2010
I have 3 rich textboxes on my form and I need to extract the data from box 1 and box 2 and put it into box 3 without losing the formatting (as you know richtext boxes can support colour and picture formatting that i currently have in box 1 and 2). I tried the following but it strips all the formatting from box 1 and box 2.
View 2 Replies
Apr 1, 2010
Problem displaying a graphics form from another forms button click event without losing the XY data plot.
If the Startup form is the GraphWindow form the Graphlib.vb calls create a XY data plot.
Code outline (not everything included):
(Sub GraphWindow_Paint(ByVal sender As Object, ByVal e As Sys�PaintEventArgs) _ Handles Me.Paint)
Call Graphscale(xmin, xmax, ymin, ymax)
Call DrawAxis(10,10)
[Code]...
View 2 Replies
Aug 6, 2009
I made the changes from this:
[code]...
to this:(the 'End Function' says "Function 'GetFolderPath' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used."
[code]...
View 4 Replies
Jun 25, 2009
I've read the subject Receiving parameters in vb2008 :[URL]...and have similar problem. i have vb2008 express edition sp1 installed.
When I try to get the parameters from clickOne published (default settings) file:
MsgBox(Environment.GetCommandLineArgs.Length)
For Each arg As String In Environment.GetCommandLineArgs()
MsgBox(arg)
Next
[Code]...
"The current project settings specify that the project will debugged with specific security permissions, In this mode command line parameters will not be passed to the executable. Do you want to debugging anyway?"
View 3 Replies
Mar 11, 2009
text automatically filled when the process starts CONTINUED
View 3 Replies
Oct 18, 2011
Create a new web form Go into code behind file Create the Page_Load event enter the following [code]When you type " right after the word with, Visual Studio will hang.
View 2 Replies
Oct 13, 2009
Quick code example:
v1.magnitude = myVectors(c).magnitude * 0.95
I have a vector class...and the magnitude is single precision...Now the problem is this, when I run this with option strict on, it gives me the going from double to a single error...Why? Does multiplication imply double precision?
So with option strict on, can you not multiply single precision numbers together and assign them to another single precision variable without first convert.tosingle?
What is the point of this? I am currently changing hundreds of lines of code in a project that runs perfectly...
View 22 Replies
Jun 7, 2009
I want a prompt. Like
Process.Start("cmd.exe")
My.Computer.Keyboard.SendKeys("net users" & vbCrLf)
If you enter "net users" in the command prompt all the local users on the pc appear. I want a textbox in my app, that if a user types in "kyle", and click the button, the first code I gave starts, and after "net users" the text in the textbox is there as well, so it will look like this:
net users Kyle
View 3 Replies
Nov 26, 2010
I have a MenuItem of a context menu of a Grid and its IsEnabled property is bound to MyProperty. It works fine until I actually click on the event handler of the MenuItem, which has no code in it. After I have clicked on the MenuItem the dataBinding no longer works.
I can tell cos' my breakpoint in the getter of MyProperty does not get hit.
[Code]...
View 2 Replies
Jun 10, 2012
Having a problem with Gridview losing it's column width, font, headings, etc when attempting to change font/color when null fields exist.
Here's my code that works correctly
HTML
'>>==== Highlight a Row after grid is sorted ======
'can be used to show 'over budget' items highlited in Red Italics
For i = 0 To DgvGrid.Rows.Count - 1
If Not IsDBNull(DgvGrid.Rows(i).Cells("BudYtd").Value) Then 'Only test Non-Null Values
[code].....
View 5 Replies
Dec 6, 2009
Here's an interesting issue:I've got a listview on a form that will load up properly, but as soon as I get my proxy (multithreaded) going, the listviewitems inside the listview suddenly cease to exist.
View 5 Replies
Nov 18, 2010
I've written a short application that consists of a form, listviewbox and a timer, the program sits in the taskbar with the form invisible, the timer is set for 40 seconds and basically it queries a database held on an SQL 2000 server, when a certain change happens within the database my form pops up and shows some data in the listview, this happens well, the problem I have is when the check is going on (every 40 seconds) the user loses focus on what ever they're working on. Is there a way I can stop this?
View 2 Replies
Oct 21, 2009
When I call a function, it doesn't retain the return value for use later on in the script. How do you keep a value from something that's called within the <%# %> databinding expression?
<%#GetGoal(DataBinder.Eval(Container.DataItem, "GoalName"))%>
GetGoal just returns a string based on the value of a databound item. The reason I'm using this approach is because this is within a repeater and each row is different.
[URL]
<script runat="server">
Public Function GetGoal(ByVal Goal As Object) As String
Dim tmpControl As UserControl = LoadControl(lblLastGoal)
Page.Controls.Add(tmpControl)
If (Goal <> lblLastGoal.Text) Then
[Code] .....
View 2 Replies
Apr 19, 2009
I need to start multiple processes, with minimized windows - and I don't want whatever the current process is to lose focus.Something like this should be simple enough:
[Code]...
However, whatever application is running will lose focus when this code is executed. I've looked high and low, and there doesn't seem to be any relatively simple way to do this. I had some ideas about capturing whatever application has focus (I don't want to assume my program has focus), then running the above code, and then restoring focus. However, I'm fairly certain this will require win32 API calls, and I'm not sure how to do that.
View 4 Replies
May 6, 2012
I use a DateTimePicker to pick a dateTime value and see how much time I have until it is zero: [Code] The timer is set to make changes each one second. What Can I do to have the right results?
View 2 Replies
Jan 23, 2011
code...
Dim sqlConn As New SqlConnection("server=.SQLEXPRESS;Integrated Security=true; Database=memberlist;")
sqlConn.Open()
Dim sqlComm As New SqlCommand("SELECT * FROM memberlist", sqlConn)
[code]....
when i do this the first msgbox pops up, i click ok, it then loses focus, i think its actually minimizing. I then have to click it in the task bar several times to get it to come back up. from then it will sometimes give each msgbox over and over just fine, sometimes it will minimizes random ones. the first one seems to be a constant.
View 5 Replies
Jan 26, 2010
I receive a decimal number with a maximum of 4 digits after the "." and I know this number is in milligram.
I have to find the best matching unit (milligram, gram, kilogram) for the number.
for an example if I receive
edited
116000000.0000 milligram, it's going to return 116.0000 kilogram
66990000.0000 milligram, it's going to return 66.9900 kilogram
49000010.0000 milligram, it's going to return 49000.0100 g
[Code]....
View 6 Replies
Jan 14, 2011
Just about every day as I build my app and run/test it, I click on a control (button, grid, anything) and nothing happens.I double-click the control in design mode, and it's like clicking on a new control, no code is there.It turns out that the control loses the part of the line of code.[code]This has happened so often that I know I'm not deleting it accidentally.
View 8 Replies
May 16, 2012
I am trying to load a small decimal number (eg 0.0566897 from a dataset field in to a variable (double), divide it by 2 and place it back in the dataset. After the divison, the variable is 0.0 and the rest of the decimal places are gone. How can I avoid losing the decimal places?
Dim dblCostps As Double = "0.0000000"
dblCostps = todds.Tables("todinfo").Rows(1).Item("cost_per_second")
dblCostps = dblCostps \ 2
todds.Tables("todinfo").Rows(1).Item("cost_per_second") = dblCostps
View 3 Replies
Apr 16, 2012
I'm new to VB and programming in general and have not had too much trouble however i cannot figure this problem out and i've been working on it for a week. basically i have to create a program that calculates the mass of someone on another planet with the conversion numbers as constant, an input box for the user's mass, using select case format and output to a label including the name of planet ie "Your mass on &strPlantet is x" so what happens is my intWeight variable becomes zero and the lblResult is Zero. (i have not added the all the code for the label output) oh yeah i must also use a try/catch structure to prevent non numeric data from being input.[code]
View 20 Replies
Jul 5, 2010
I have a form with a update panel. This posts the form and validates it. Returning a errorMessage string of any invalid field such as "Field xyz is a required field, Field abc needs to be a quantity" When I enter incorrect date it posts back fine and displays the text in a div at the bottom of the page which the update panel is aimed at to update. (and only this it should be changing)This works but the second time I hit say (say i enter invalid data twice) the Complete form will disappear leaving me with just the banner of the site and the error message that is returned.
View 2 Replies
Jun 10, 2009
I am trying to fix an ASP.NET application that is also written is VB and uses session variables to store the information from the logging page. In Firefox, the application runs just fine, but in IE (I am using IE 8), when I summit the logging credentials, the session variables become empty (takes me back to the logging pageThe weird thing is that when I move the privacy settings in IE (doesn't matter if high to low, or low to high) and enter the logging information again, the runs great. Also if I restart IIS 6.0 the application runs great. What's going on?
View 5 Replies
Jan 11, 2010
How do i re-run the whole form again without losing the values stored as it run?
[Code]...
But they don't seem to work. Once the form reaches the end (after the user press enter), it just display a blank screen. But what i want is for the form to start all over again without losing the values. Is there a way to do that?
View 10 Replies
Nov 30, 2009
I have three forms frmStudent, frmClass and frmMain. I want to add code so that if the user focuses on another form without saving a message box will appear to prompt the user to save. This is necessary because If the user starts entering data on another, related formand assumes that the changes from the first form were saved, then there could be integrity issues.
I have tried formating the deactivate event, but when I hit yes it just deletes the record entered.
Private Sub frmStudent_Deactivate(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Deactivate
If GradebookDataSet.HasChanges Then
[Code].....
View 1 Replies
Aug 23, 2010
I've created a small form that acts like the office notifications (fades inout above the notification icon tray)I'm having problems showing this form, I want to display it without the focus being taken from my main application (or any other form), I've managed to get the attached code doing roughly this, (using Me.Activate to take back focus) But this isn't great - focus switches for an instant plus I want to show the form from various areas in my application...
Dim frm2 As New frmNotification()
frm2.TopMost = True
frm2.Show()
Me.Activate()
View 1 Replies
Sep 28, 2010
I am losing my leading zero in the minutes below. I thought having the "mm" would place two digits for the time.
DateTime.Now.ToString("mm")
View 2 Replies
Jun 14, 2009
I have 2 window forms, form1 has a button, which will send a msgbox when I click on, and form2 closes when it's deactivate-event raised. If I have form2 focused, and I click on the button of the form1, form2 will get focus and then close, but no msgbox showed from form1, what should I do to get the msgbox in that case?
View 5 Replies