Cannot Post DLL Names Or The Full?

Dec 14, 2009

I am upgrading a project from VB6 to VB.NET. Due to my non disclosure agreeement I cannot post DLL names or the full code here.Here's the situation. I am making a program that works with a USB scanner. In VB6 there is this function:

vb.net Public Declare Function GetCode Lib "MyDll.dll" Alias "myAlias" _(ByVal DeviceID as Long, ByVal CodeLine as String, ByVal Length as Long) as Long So, in VB6, to get the code from the scanner, you would do this:

[Code]...

View 8 Replies


ADVERTISEMENT

Fill A ComboBox Control With Full Names (last, First)?

Mar 3, 2011

How do you use a parameterized query to make the (last_name, first_Name) appear in the same combo box? I know how do drag them over from the DATA SOURCES menu, but I am trying to combine them. So instead of it being two separate combo boxes with both last_name and first_name), it want it to find the the names with first and last name in the same combo box.

View 2 Replies

Use Relative Paths But Also Read From Full File Names?

Sep 5, 2009

My program has to store files externally to work with. Before now the path was fixed at C:/DSGameMaker, I did the following:

System.IO.File.ReadAllText("C:/DSGameMaker/data.dat")

However I want to let users install the program wherever they want, so I changed that line and others to:

System.IO.File.ReadAllText("data.dat")

Which works great, until you do this:

System.IO.File.ReadAllText("D:/X/Y.Z")

As soon as I put a fixed path into the ReadAllText function it changes the relative path to D:/X. Which means the following function looks inside D:/X instead of the apps directory:

System.IO.File.ReadAllText("data.dat")

And complains that "D:/X/data.dat" is not found.
How can I use relative paths but also read from full file names, for example from an OpenFileDialog, without VB changing my relative path, and breaking it all from then onwards?

View 6 Replies

VS 2010 List Box Of Directory Names--not Full Path?

May 15, 2011

I am trying to populate a listbox on form load of a list of directories. I only want to show the directory name, not the full path:

[code]...

The form opens w/ no data in the list box. I played w/ this for a bit and found the strFolderName(i) assignment seems to break the code (make it not work) but I can't figure out why.

View 1 Replies

VS 2008 - ListBox - Export Only NAMES Of Files Not Full Path

Oct 1, 2010

I have this code for my "Scan" button: [Code] It displays the FULL PATH for the file into the ListBox1. Then I have a button called "export list of items" and I want to export only the NAMES of the files not the full path. How can I do it?

View 3 Replies

Added A Full Main Menu To Game And A Full Splash Screen

Apr 29, 2011

I have made quite a nice and tidy little game. Its based around space invaders and works quite well. however because i have finished my college project almost 2 weeks ahead of the assignments release date, my tutor has asked me to tweak my project and make it better.So far i have added a full main menu to the game and a full splash screen. I would like to add in a section for recorded high scores but have no idea how to attempt this at all.

View 3 Replies

How To Post A File Via HTTP Post

Jun 11, 2009

Having a problem with sending a file via HTTP post in vb.net. I am trying to mimic the following HTML so the vb.net does the same thing.[code]

View 4 Replies

Set The Column Names To The Same Values As Table Names Yet The Data Is Not Showing In Form Load?

Aug 15, 2011

I have a DataGridView which populates from an SQL query just fine in default mode

using these table names
[firstName] [varchar](20) NOT NULL,
[lastName] [varchar](20) NOT NULL,

[code]....

I have edited the column headers and set the column names to the same values as my table names yet the data is not showing in form load I have set datagridview.AutoGenerateColumns = False I know the data is there if I delete datagridview.AutoGenerateColumns = False then the data is shown with the default headings?

View 3 Replies

Reload Form Again To Read New Texts Names And Mainmenu Items Names From Resx File?

Nov 9, 2005

I made project using VB.Net 2005 with multi languages, the first form is MDIParent form with MainMenu and toolbars also there is some changes in properties as righttoleft and text of forms.In my Mainmenu (Menustrip) there is opetion to change the UI Culture and I have already done but I need to change all texts in the form as mainmenu items anf form properties.My quetion is: how can I reload my form again to read the new texts names and mainmenu items names from resx file?

View 8 Replies

Insert A PICTURE Into A Forum Post - Inserting Code Into A Forum Post?

Nov 25, 2008

<edit on 10th March 2010.>

Changed thread type to QUESTION. I was then able to mark AS ANSWER the relevent post which now also immediately follows this post and so it is easier to find as suggested by forum user j2associates .

<edit> It is also my 3rd post in this thread, the 8th one up, of my posts, from the bottom ( for now ), as the forum format has changed yet again.I will leave the rest of this post( as is ) purely for historical reasons. I have been on these forums long enough to see 3 forum changes. <edit> 19th May, 2010> Link added to a video on the next line of text.

[code]....

View 1 Replies

C# - Decompiling .Net Assembly Produces Code With Invalid Member Variable Names; Names Starting With $STATIC$?

Sep 5, 2011

I am doing work for a client who has lost the source code for one of their VB.Net WinForms applications. The assembly they have is not obfuscated at all. I am trying to recover as much of the source as I can as C# source and have tried several tools for decompiling assemblies, including Reflector, ILSpy and JustDecompile (all the latest versions), but they all produce code with a huge number of errors in them. Because of the large number of errors in the generated code, I am going to ask about the specific errors (in different questions), get more directed answers and in this way try shed some light on why all the tools are having difficulty decompiling this assembly. This question pertains to the fact that the code generated by all these tools always have a large number of invalid member variables (fields) such as the following:

private short $STATIC$Report_Print$20211C1280B1$nHeight;
private ArrayList $STATIC$Report_Print$20211C1280B1$oColumnLefts;
private StaticLocalInitFlag $STATIC$Report_Print$20211C1280B1$oColumnLefts$Init;

why the generated code has these invalid member variables?

View 3 Replies

Button Names In Users Language - Get Common Control Names

Oct 31, 2010

Is there any way to get common control names like Save, Copy or Undo Redo in the user's windows language? (I saw this in some programs which weren't made for my windows language. Also the Yes No Massage Boxes will change...)

View 1 Replies

Error: "Upgrade Failed: Exception Occurred: Can't Use Character Device Names In File Names"

May 25, 2006

I am experiencing a problem when trying to convert a rather large VB6 application into a .Net 2005 application. Everytime I try to convert the project I get the following error: "Upgrade Failed: Exception occurred: Can't use character device names in file names"The weird thing is i have tried to convert the project using .Net 2003 and I do not get the error, it does convert.

View 12 Replies

VS 2010 : HTTP Webrequest Post Inside HTTP Webrequest Post?

Oct 6, 2011

Im trying to create a software which can post into yahoogroups.I've done trying to log in yahoomail but my problem is when I am going to post in yahoogroups, I am turning back in to yahoo log in page.

Here's my code so far:

Quote:

Imports System.IO
Imports System.Net
Imports System.Text

[code]....

View 1 Replies

.net - Get Full Name From AD?

Oct 27, 2011

I am trying to get the full name of a user given their user id "domainusarname". Tried a couple of different examples, but none seem to work.I am using Visual Basic .Net 2010.I had originally found the following code in VBS and ported to VBA and worked nicely. If I try to use the same code in VB.NET 2010 I get multiple errors and the LDAP path not found, even if I enter it manually.

Function FindUser()
On Error GoTo Err
Dim objRoot As Variant

[code]....

View 3 Replies

How To Post/get With PHP

Jan 27, 2010

I need to figure out how to post/get with PHP within vb.net.

Net.WebRequestMethods has the post/get functions im pretty sure i need

View 12 Replies

Get The Full URL From A SPWEB?

Dec 20, 2011

I have a VB console application.

I would like to get the absolute URL of the page.

Here is my current code:

Using siteCollectSPSite As New SPSite("http://mySite")
Dim blogPostSpList As SPList
'Get only the subsite of <locale/blogs>

[code]....

Right now, what I get is: [URL]

What I want to get is the full URL: [URL]

How can I get the "default.aspx"?

View 3 Replies

How To Get Full Path

May 8, 2010

Im working on a Dll Injector. But that is not my problem. I am using a picturebox to display the icon of a running process.E.g. If google chrome is running. The picturebox should display the icon of google chrome.I can extract the icon to my picturebox only if I know the full path of the process. That API was easily found and works very well.But know I want my application to get the full path of a running process automatically as soon as I order it.Like in a textbox is write: chrome.exe, and press the button next to it. What do I need to write in the button to get the full path of that running process.(of course only if its running, I if its not running I dont want anything to happned)

View 4 Replies

IDE :: Breaking Apart Full Name Into First And Last Name In .net?

Mar 17, 2011

I have an Input box that allows users to enter their full name. How do I break this input apart into first and last name to display tham into seperate boxes?

View 1 Replies

.net - Post And Get Request In Asp.net?

Mar 24, 2011

I want to make two request to submit a form of another web application. How can I create post and get request. And how can I use secure this.PS. I don't want to create ajax request. Just httpwebrequest.

View 1 Replies

Delete All Post In Db?

Aug 11, 2010

I use this code to put data from xml to Sql db - tabel order

Module Module1
Sub Main()
Dim _db As New integrationDataContext
Dim _orderfile As XDocument = XDocument.Load("c:xmlorders.xml")
Dim _orders = _orderfile.<orders>.<order>

[Code]...

View 3 Replies

Http POST With Asp.net?

Sep 8, 2009

I've an annoying ASP.NET problem:

I have a Perl script (see below), which gets the form_info variable. Now unfortunately, it's http POST, and not http GET, so Request.Querystring doesn't work...

Now I have to replace the Perl Script with an asp.net page/app, but my problem is that I cannot process the string form_info when I don't have the string... and I cannot change the http POST to a HTTP get, since it's generated by a 3rd party java applet.

# Print out a content-type for HTTP/1.0 compatibility
print "Content-type: text/html
";
#

[Code]....

View 2 Replies

Odd To Post 2 Different Projects In A Day?

Mar 18, 2012

I know its odd to post 2 different projects in a day but hence the lecturer asked us to do 2 in 1 week what else can I do so here is the problem he wants us to make a tic tac toe game that will ask for player 1 and 2 name then generate a random number for who will play 1st ok.. I though of a solution for that but it seems that player 2 always plays 1st also amm when I click on new game that recalls the code that you will see bellow the lblplayer1.text and lblplayer2.text don't reset to the new values untill I re-use the new game command what seems to be the problem? sorry for the bad explanation my English aint the best

count_turn = 0
score1 = 0
score2 = 0
lblscorep1.Text = 0

[Code]...

View 5 Replies

Post Xml To A Website/

Dec 7, 2008

I need to send some info to a URL in XML and then read the response received. I'm using the XMLWriter to create an xml file. No problem there.

(1) Now, how do I post that file to a website?

(2) How do I receive the data sent back so that I can use the XMLReader on it to extract the data? Do I need to be listening on a port?

View 1 Replies

Post Xml To Php URL In Program?

May 7, 2011

I need to 'post' xml to [url]...

How can I accomplish this in VB.net?

View 1 Replies

.net - Run A VB Application In Full-screen?

Dec 28, 2011

How do you get an application, using Microsoft Visual Basic 2010 express, to run in full screen mode. You know what I mean, like a game would but an application.

View 2 Replies

Asp.net - Convert Full C# Project?

Dec 30, 2010

How to convert full C# project to vb.net ?

View 2 Replies

Cannot Find The SP / Get The Full Path?

Aug 3, 2009

There is a field in the database whose value is the StoredProc name with full path.for example test01.test.dbo.spGetData

test01 is the server name
test is the database
spgetdata is the SP

I am storing this in a variable

Session("GetSP") = objReader(1).ToString() (test01.test.dbo.spGetData)
Dim Command As New Data.SqlClient.SqlCommand(Session("GetSP"), conn)
Command.CommandType = CommandType.StoredProcedure

I always get an error cannot find the SP and it shows like this test.dbo.spGetData It is cutting of the servername test01 always.how can i get the full path.

View 1 Replies

DVD Player Full Screen

Feb 17, 2009

I,ve been making this DVD Player everything is fine all the codes are fine but I can't put Full Screen on my DVD Player. I have been trying to work it out for a while but can't seem to do it. I have this button that says Full Screen and I'm trying to work out how i can click on the button and the dvd player goes full screen.[code]

View 10 Replies

Error - The Event Log Is Full

Dec 21, 2009

When I try to use the databse explorer I get a message:

"The Event Log Is Full"

how can this be fixed?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved