Hello All,
I'm importing a fixed length record file. And am wondering if there is any easy way to tell if im at the end of the file like there was in .vb 6 using .eof ?
If anyone can help me out I would appreciate it.
Thanks in advance,
Matt
Anyone know if this is possible? I know how to edit the report and objects that are currently on the report but I need the ability to add labels and fields. Any help would be appreciated.
Thanks, Matt
To unload an assembly you must create an appdomain load the assembly inside it and then close the appdomain down. The only other way is to close down the program running the dll. The appdomain has little information making it very difficult to do, we were never able to make it work properly...
The record set is what was returned from the stored procedure or sql statement basically your dataset is a recordset.
Also I noticed you declared a dtDataSet as New DataSet, but you never populated the dataset. I think that might be your problem.
-Matt
The only useful thing that I know of SP2 fixing is the ASPNET user acct. Your dev machine will already have that from the dev package install. So in this sense you dont need it but I know I have sp2 loaded on my dev machine and never got that message let me check for a better link.
-Matt
Would you have anything in your database that would be seperating your users such as by logon id or something?
If so you could always include in the control that checked the users id by importing the system.enviroment and then checking against the db so basically when the control creates...
If you know the name of the recordset being returned and which field it is in the stored procedure or the name in the stored procedure. Then you can easily use
Label1.text = MyRecordSet.Tables(0).rows(0).items(and put in the index of the field called or the name called, though if you put in...
Well in that case you would first need to return a recordset of your first level choices. Then in combobox1.selectedindex change you would return another recordset based on the parameter you choose in combobox1.text. Then you would populate combobox2 like
Combobox1.selectedindexchanged...
This should give you an idea just drop this onto a new form dont change the name from form1 and put 3 comboboxes on the form. Its really basic but should show you how to do it.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load...
If the version number is 1.1 you are running .net framework the release version. If the service pack 2 is installed the version number will be 1.375. Here is the link to the SP2. You might have to cut and paste it into your browser...
Yes it does actually. The ASPNET acct is an account loaded when the dev package gets loaded and was suppose to be loaded on the users machine in .net framework. Which it should be fixed with the .net framework SP2. The adding it manually is just a work around.
-Matt
This is another easy way to do this just move your code from your listview_doublclick to the listview_mousedown and put it inside this control structure.
If e.Button = MouseButtons.Left And e.Clicks = 2 Then
'insert listview_doubleclicked code here
End If
Hope this helps.
-Matt
We had this same problem. The programs run smooth on the dev machines but slow loading on the users machines. In our case this happened because of the ASPNET user acct was not being loaded on the users machines. This is a built in acct that gets loaded with vb.net dev package load. This is a...
Hey John try this out, it works nicely for me all you need to do is put in the correct smtp server, and pass the email body as a string, the attachment/s locations as a string seperated by "," the from email, and the to address which if you changed those to an array you could pass...
Does anyone know if there is a way to email reports in a format such as .pdf or .doc . I would like to be able to export reports through code and dump the reports into and email and fire them off to an address. I know this was possible in vb6/crystal8 though the formatting was not exactly...
I need to use the single quotes in a string and Im wondering if there is anyway in SQL to be able to declare a variable as a varchar() and include the single quotes in the string?
(ie..
@sTmp varchar(50)
Set @sTmp = 'Hello World' ...but somehow keeping the singe quotes.
Thanks in advance,
Matt
I actually found my answer but just in case anyone wanted it, heres how.
Imports Scr = System.Windows.Forms.Screen
Dim scWidth as Int16 = Scr.PrimaryScreen.Bounds.Width
Dim scHeight as Int16 = Scr.PrimaryScreen.Bounds.Height
Hope this can help someone.
Matt
How do I go about getting the machines screen size or dimensions. I figured it would be apart of the System.Enviroment but can't seem to find it. Any help would be great.
Thanks, Matt
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.