(if Staements) Java - Written In VB ?
Aug 2, 2011In java I would Write:
if (something != bla || something != bla){}
How is this written in visual basic?
In java I would Write:
if (something != bla || something != bla){}
How is this written in visual basic?
Wrote a 'webservice' with Netbeans wizard, runs on glassfish. I added a reference using the wsdl to my .NET client, VB if it makes any difference.The issue is a SoapHeaderException.
System.Web.Services.Protocols.SoapHeaderException: com/mysql/jdbc/Connection
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(
SoapClientMessage message, WebResponse response, Stream responseStream,
Boolean asyncCall)
[code]....
I've tried writing the string in a soap envelope, but still receive the same message. So passing a string is kaputt, as it should be; why would the WS know to parse a string, and simply instantiating and calling the method from the object as if it were local isn't working the way I think it does.
I have question to ask.
I have a dll file written for reading&writing data on USB.To use dll in VB.Net, one needs to integrate a .vb file which interface to that dll file to use its functions, properties etc..
What I need is to use this dll in a C# project. is this possible?[code]...
I am little bit confuse about using properties(Get and Set) in ASP.NET that when these Properties is used.Means How I come to know the exact use of Properties in application. And what is the advantages of using it? [code]
View 2 RepliesI found a very useful source code on how to make a fud cryptor, but the author didn't mention which coding language / software he used, please follow the link below, to see the full source code.
View 5 Repliesiam trying to write information about customer from textboxes to a file.txt.when iam clicking save button, stream is opened, then i used method writeline(txtboxevalues)but no information are written to the txt file any help in that??
View 2 RepliesI have written a program and it seems to work fine when i am running it in the environment.When I create a program to distrubute to another computer it will not run.I thought it might be a problem with the other computer but I tried to install it on the same computer I designed it on and it will not run there either.When I run it a message box pops up saying "Application cannot be started. Contact to application vendor."[code]
View 5 RepliesI want to access a socket that has been opened for me by my service providers. Their socket is written in PHP and I don't understand PHP at all. Themselves they don't understand VB.Net
The Code in PHP as as below
<?
$num = $_GET['num'];
$ext = $_GET['ext'];
[Code].....
I just want to know whether I can use "Reflector" to disassemble a Program written in DOS and go through all the Codes of that program to learn how that program was made? If the "Reflector" is not the one for DOS Program, could you recommend a Free Disassemler for DOS Program?
View 5 RepliesTrying to dissect a very badly written ASP.NET app. Can someone tell me what this assembly (ProAspCompLib.dll) is used for?
View 1 RepliesI'm using JdSoft's APNS-Sharp library in my ASP.NET web app. The library is written in C#, and makes extensive use of Delegate Functions and Events for threading purposes. My application is written in VB.NET, and I'm a little confused on about how to translate the following sample code' [code....]
View 3 RepliesI want to check at runtime if an assembly was probably written in VB. It doesn't have to be a bullet-proof method. Maybe call GetReferenced Assemblies() and check for an assembly that all VB projects reference?
View 2 RepliesI have a class (e.g. MksMath) written in IronPython using SharpDevelop 3.2. After compiling it for class library, it produced the following output:
IronPython.dll
IronPython.Modules.dll
Microsoft.Dynamic.dll
[code]....
I've got a C#.NET background and due to circumstances I'm trying to make a plugin written in VB.NET. I've created a new class project which gives me a DLL. This class implements a C# interface which all works.My only question is this... In my C# code I've got an implemented DLL (which loads at runtime) with the following declaration before the class...
[Plugin(PluginType.Storage)]
public class XmlPlugin<T> : IStoragePlugin<T>
{
[code]....
How do I write [Plugin(PluginType.Storage)] in VB syntax?
I have an OCX that I wrote in VB6.I added it to the vb.net toolbox and can drag the control onto a form and use it in code without any problems and it works just fine.But I can't see the control's design-time properties. In VB6 there's a small window on the right where I can set the properties of a control. In VB.Net I can see the standard properties such as Location, size, name etc but none of the control's own properties.
Do I need to register msstkprp.dll or a property page or something ?
Can I see design time properties of a vb6 ocx in the vb.net IDE ?
I'm trying to read a *.txt file and see if it has anything written on it. This is my
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim line As String = Nothing
[Code]....
But when i use it doesn't pop the MsgBox. What's wrong with it?
I am redesigning an application that I have previously written which accesses an SQL database, pulls records, creates an object hierarchy based on a bunch of custom classes that I created, and displays them in a TreeView control. When the user selects a node, a tabbed page displays the information about the object underlying the TreeNode selected.
I have since begun experimenting with Databinding to my Objects as I have recently redigned the objects to communicate directly with the datarow that each object is based on instead of storing the values in a private variable thus:
[Code]...
Allowing the databinding management objects to do the heavy lifting of getting the values, displaying them in the controls and writing new values as needed back to the objects (and thus the DataSet) i think is preferable. How can I accomplish this? I have added the Objects as datasources to the DataSources window, added the objects elements to the tabbed pages. How do I bind those controls to the item that is specified by selecting the TreeNode?
I want to check at runtime if an assembly was probably written in VB. It doesn't have to be a bullet-proof method. Maybe call GetReferencedAssemblies() and check for an assembly that all VB projects reference?
View 3 RepliesI have a function written in vb Public Function abc (ByVal x as Integer, ByVal y as String) As String
End Function
I want to call this function on click of a button in C# applcation.
I need to add quotes to a line that is being written to a vbs file WriteVBS("filesys.CopyFile " & OldNFile & "" & My.Computer.FileSystem.GetName(nfile) & "," & NotesFile & "," & "True")Old Nfile is a variable defined: Dim OldNFile As String = ("\" & OldPCTxtBx.Text & "" & NotesSource.Replace(":", "$"))NotesFiles is defined as
Dim NotesFile As String = (NotesTgt) & "" & My.Computer.FileSystem.GetName(nfile) I need to add quotes before and after the OldNfile Variable and the NotesFile variable I dont want to change the variable just the WriteVBS line not sure how to do it since intellisense does not suggest a better way
I have a question about the AddNewItem method. From what I understand, then this event occurs, the EndEdit() method is called and a new record is created IN MEMORY (or a buffer). The user fills in the form that is presented and when the Save button is pressed, the record in the buffer is actually added to the table.
In my application, a form is displayed and some of the forms databound text boxes have DEFAULT values (see the property for the textbox under the Data Bindings, Advanced and NULL VALUE). For example, I have a text box that holds a number and the NULL value is set to 0. When the form displays, the ZERO is in the text box. Assume the user NEVER enters the field or changes the ZERO to something else (which means the field is never validated).
Here is the problem. When the SAVE button is pressed, the ZERO that was the default value is NOT WRITTEN to the table. The field in the table is DBNULL. That is not the desired outcome. So - How can I check the fields in the BUFFER BEFORE they are written to the table?
I've set the XMLWriter to use the UTF8 encoding, but the WriteStartDocument method still writes a UTF16 tag. This is the part of the code:
[Code]...
I have a program written in VB 2005, the computer used to write the code was running in Windows XP and 32 bit Pentium D. Now, my boss want to buy a new computer to run the program, and he wants the one that comes with Windows 7, 64 bit. Can my program run in the new computer without any problem? Or, is there anything that I need to change for it to run there?
View 12 RepliesI am sending a POST request to an API server and I have reused code where I have successfully done this before on other servers and for some reason, which I cannot figure out why, it's not working. I get the error:
"Cannot close stream until all bytes are written."[code]...
I have made this program in which the user selects a number of directories and copies them all to an external drive. is there a way to detect when the user does something that involves writing data to the hard drive. When they do, I want my application to detect this and back up that file on the external drive as well so that the back up is always up to date.
[Code]...
Is there some Firefox extension that was written in VB.NET / VB6?
Would be nice to have a template for changes.
I have to intercept the Firefox reloading of data (XML data refreshed regularly by some javascript routines).Pretty much as the extension "tamper" does it (url...)
I am trying to save text in a particula format.
I am using the following code to enter the data from the keyboard and save it in a text file.
Private Sub EnterXMatrixToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EnterXMatrixToolStripMenuItem.Click
Dim i, j As Integer
[Code].....
where can i get a treelistview written in vb.net that works on vs 2008 or vb express edition 2008?
View 2 RepliesI need to write in the text of the button written in it "—10x" but when I copy it from MS word it is copied like that " —10x"
View 3 RepliesI am a beginner in vb.net. I have made a project in this. Now I want to make it online.Also how to use asp.net with vb.net?
View 7 Replies