|
Because xml is not specific to Form1 , it really should be put in a code module and not in the form. You will not need to use the Shared keywork in that case. I expect that will fix your problem.
|
|
|
|
|
Hi,Gregory! Thanks for your suggestion, my problem has been solved!Thank you very much!
|
|
|
|
|
hi,can i just find out on how should i write my codes if i want to plot line graph in my program?
|
|
|
|
|
Here's a start[^]
I don't speak Idiot - please talk slowly and clearly
'This space for rent'
Driven to the arms of Heineken by the wife
|
|
|
|
|
TextBox8.Text = RxReadAP(3)
TextBox8.Text = Math.Round((0.0996 * TextBox8.Text + 25.603), 1)
i like to draw a line graph on vb using the temperature taken.. how do i write a code for this ??
modified on Wednesday, October 27, 2010 2:14 AM
|
|
|
|
|
I think you could use an ownerdrawn control to draw your graph
|
|
|
|
|
using vb.net 2008 and latest version of JanusSystem GridEx. When I use the Try..Catch..Finally I get an error message when I am trying to get the data from the cell in a row. There can be up to 5 cells that the user has entered data into that I need to pull out if the SelectedRow is checked.
If there is data in the cell I can extract it and store it to the table. If I check the next column and it is empty I get the error message below:
A first chance exception of type 'System.NullReferenceException' occurred in Janus.Windows.GridEX.v3.dll
System.NullReferenceException: Object reference not set to an instance of an object.
at Janus.Windows.GridEX.GridEXCellCollection.get_Item(GridEXColumn column)
at Janus.Windows.GridEX.GridEX.GetValue(GridEXColumn column)
at Janus.Windows.GridEX.GridEX.GetValue(String columnKey)
at JWI.frmLOL.SaveTab1(Object& _frmGuid) in C:\JWI\JWI\JWI\frmLOL.vb:line 708
If I use the old VB6 On Error Resume Next then I don't even pick up the data that is in the cells, the code just goes right over the lines:
strJnts = GridEX1.GetValue("E") 'or "B1" or "B2" etc
And I never hit the DoSaveData function. Not sure what the solution is or even the problem. I've tried at least a dozen diferrent codings for IsNotDBNull and anything I could find in the MSDN and online but nothing seems to help. I have a message into the JanusSystem forum but they won't be answering until mid morning Monday and I would like a solution later tonight or Sunday if possible. The entire function code follows:
Public Function SaveTab1(ByRef _frmGuid As Object) As Boolean
Dim rowNdx As Integer = 0 'Set to zero index value
Dim strJnts As String
Dim _MATGuid As Object
Try
'On Error Resume Next
GridEX1.BoundMode = Janus.Windows.GridEX.BoundMode.Unbound
'allows us to use it in AddItem mode
GridEX1.KeepRowSettings = True
'keeps settings same when row scrolls out of sight
Dim checkedRows() As Janus.Windows.GridEX.GridEXRow
checkedRows = GridEX1.GetCheckedRows()
'if the user didn't check any row, you will get an empty array
If checkedRows.Length = 0 Then
'no materials on Tab1 Tubing so we need to check Tab2 Pipe
'SaveTab2()
Else
Dim row As Janus.Windows.GridEX.GridEXRow
For Each row In checkedRows
'get the rows MaterialID
_MATGuid = row.Cells.Item("MaterialID").Value.ToString
'Now lets check each column to see if any units selected
strJnts = GridEX1.GetValue("E")
If strJnts > 0 Then
If DoSaveData(strJnts, _MATGuid, 2, "E") = False Then
Return False
Exit Function
End If
End If
strJnts = GridEX1.GetValue("B2")
If strJnts > 0 Then
If DoSaveData(strJnts, _MATGuid, 2, "B2") = False Then
Return False
Exit Function
End If
End If
strJnts = GridEX1.GetValue("B1")
If strJnts > 0 Then
If DoSaveData(strJnts, _MATGuid, 2, "B1") = False Then
Return False
Exit Function
End If
End If
If row.Cells.Item("B").Value <> False Then
strJnts = row.Cells.Item("B").Value.ToString
If DoSaveData(strJnts, _MATGuid, 2, "B") = False Then
Return False
Exit Function
End If
End If
If row.Cells.Item("A").Value <> False Then
strJnts = row.Cells.Item("A").Value.ToString
If DoSaveData(strJnts, _MATGuid, 2, "A") = False Then
Return False
Exit Function
End If
End If
Next
End If
Catch ex As System.NullReferenceException
Debug.Print(ex.ToString)
End Try
Return True
End Function
|
|
|
|
|
Your best source of information is going to be Janus' support forums.
From the tack trace, it looks like you may have found a problem with their control.
|
|
|
|
|
Bummer, I have used the grid extensively to fill up with data and have the user group and sort the information. Love it for that, but this is first time trying to take a virtually empty grid and grab just the selected data from it. I've tried setting the value to <> Empty, Nothing, DBNull and many other things. Their sampls show them using a grid similarly for an odering application so I'm trying now to follow the code to see if I can locate how they check for a null value in a selected row cell. I'm also looking at how the settings for the myriad of properties may be different than the default.
If any ideas pop up please let me know,
Larry
|
|
|
|
|
I’m having a problem shifting focus off of a command button and onto a sheet. I have a user form called CommandButtonForm that I’m using as button. ShowModal = False. Focus stays on the form in spite of the Sheets(ActiveSheet.Index).Select and Range("A1").Select statements. I need to shift focus to the sheet.
This Workbook
Option Explicit
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
CommandButtonForm.Show 'commandbuttonform
Sheets(ActiveSheet.Index).Select
Range("A1").Select
End Sub
|
|
|
|
|
It shouldn't matter what format a digital signature is correct? I'm encrypting a file and than I have to apply a digital signature to the file.
|
|
|
|
|
So long as you use an appropriate signing certificate, there's no difference.
|
|
|
|
|
|
Using the .net 2.0 framework.
When encrypting files with vb, it will take vb to decrypt the files as well right? I trying to see if the windows OS will be able to open the file since I'm using MS products.
|
|
|
|
|
The .Net Framework is the .Net Framework: the actual language used is irrelevant. There would be no problem having your encryption program written in VB and your decryption program in C#. For that matter, your decryption program can be in C++, Fortran, Delphi, COBOL or assembly, it really does not matter.
|
|
|
|
|
Yeah I just read a chapter about encryption, vb uses the XOR or exclusive OR, when encrypting the file, I noticed one of its example, it will convert a character to its ascii standard and add one 1 to the standard, do the opposite with the ascii coversion, by deducting one from the the standard and convert back to its normal form, yes any windows OS will read it correctly.
|
|
|
|
|
Thanks in advance
How can we send these commands directly to a POS printer in vb.net
Chr(27) + Chr(112) + Chr(0) + Chr(48) + Chr(63)
SOFTDEV
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
|
|
|
|
|
|
Does not work
SOFTDEV
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
|
|
|
|
|
First tell me how the POS printer is connected to your PC???,
is this Driver based???,
for Send custom command to your POS Printer you have to use the printer API's
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Its Connected through COM port using COM2 port and the vendor gave a driver when i use that driver it prints so slow , so i have to use Generic Driver to Cut the Paper and Open Cash drawer which is also connected to the Printer.
SOFTDEV
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
|
|
|
|
|
|
If it's connected to the Comport, U need not to use Generic drivers, Using SerialPort class you can send your commands, just you have to know the comport settings of your POS.
Print the receipts using the POS driver, Close the Comport(Opened by Driver), Open the comport again using Your Program, send the commands what ever you want.,
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Olá Professores;
Alguém de vocês tem o código de validação do cpf
Atenciosamente
Daniel Raphael
|
|
|
|
|
Google translate says:
Hello Teachers;
Anyone of you have the validation code cpf
Graciously
Daniel Raphael
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|