Is there a way I make a file that contains the information for a contextmenu?The reason I'm asking this is because I want to make a program that can customize a contextmenu and then turn it into a file that can be opened by another program I'll make so it can be used by the new program.I feel I'm not explaining well, so I'll try to break it down. This will be slightly hypothetical, and this is the case that I find out how to do this.
I open my program to create the context menu that will do tasks specified by the tag for the buttons. So I create all the buttons in my app, then I press a button and it saves the contextmenu as some sort of file, this file can then be opened by my other program. My other program opens my contextmenu file and applies the contextmenu to a textbox. So how can I do this?
Guys,this is my first day at the forum,and my second thread. Can someone explain me how can i make an axshockwaveflashobject2 to copy what happens at axshockwaveflashobject1 like a picture or video. I have a tabed trainer and i want to see my stats in game at the second tab. i have the hack menu on a toolstrip,but i have at the tab 2 flash1.get variables to textboxes,but i can't see what's happening at the flash1,and i may lose the level by falling in the sea. The code should make something like a mirror from flash1 to flash2 at the other tab.
Ok i need to make an object in this case a picture box draw a line to another picture box with the shortest length while avoiding other type of objects such as labels i am not sure how to do this but so far i have come up with
Private Sub ProgressBar1_ParentChanged(sender As Object, e As System.EventArgs) Handles ProgressBar1.ParentChanged If ProgressBar1.Value = 50 Then
How would i code this script in vb 2008, cannot find any information anyway
Dim objFSO, objFileStream, sFileName as string, sFileBuffer as string, sSearchValue as string, bValueExists as boolean sFileName = "c:file.txt" 'Path to file sSearchValue = textbox1.value 'Value you are searching for
Each business object has a matching object that contains sql calls. I'd like to restrict these sql objects in a way where they can only be used by the matching business object. How can this be achieved?
Update Greg brought up the point about testability. Since the SqlObjects will contain very business-process specific sql I don't want them reused in multiple buiness objects. (Basic CRUD operations are all code-generated) Is there a way to make the SqlObjects accessible to only one business object in the business assembly (like yshuditelu and Greg Beech showed) AND expose the SqlObjects to the unit testing assembly?
What im trying to make is too make a file much easyer to understand -- Normal ull have to go in and fine all these stuff but im tryn make it so that if u press a button it make it true to false -- example (THIS HAS NOTHING TO DO WITH VB2008)
With this code I can see what happening I'm just showing you what've I've done so far. Basically I want to use an If statement to see if an active directory object contains one of the keywords found in an INI file. I was wondering is this possible with just an IF statement or do I have to use a loop or a for each and how would I do that using one of those two. [code]
What is the source for Creating a .txt file when debugg Quote:Originally Posted by Example Like when i click button1 it will create a .txt file on my destop or C:
I believe this is an encoding issue due to the resulting output. I am trying to make a batch file (meaning .bat) from VB.NET. The output looks fine in a normal text editor, but when executed via the command prompt, it keeps giving me syntax errors to start. I've even tried using CharCodes, but still to no success.
Module Module1 Sub fileop() Dim cd As String Dim fnd As String Dim del As String Dim ms As String [Code] .....
The issue is when I try to add a new item to the ArrayList with the following code, it gives me an error:
vb Private Sub btnLabelAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLabelAdd.Click Dim result As String = InputBox("New Filter Label:", "Label List")
[CODE]................
Object reference not set to an instance of an object.
I'm not really sure what I'm supposed to be doing with this. It's a new setting I just added and it's empty, so I'm not sure if that has anything to do with it or not. Anyone know what's going on and what needs to be done to get it to accept a value and not want to be "initialized"?
I have recently gotten my hands on a free, open-source IMAP connection API.So far, I have been successful in creating a connection to one of my accounts.Where I'm getting stuck is retrieving folders and/or emails from those folders.Does there happen to be anyone here that is familiar with this API, or even Gmail (particularly the folder structure for IMAP)?
If not, here is a link to the DLL that is listed on sourceforge and the company's website that created it (if you feel like testing):
Koolwired Sourceforge - Koolwired API
I have created a test account so feel free to use the code below without worrying about username/password issues; I'll just delete it when I'm done with it.Here is the code I have made so far for making a connection:
Dim gSession As New Koolwired.Imap.ImapConnect("imap.gmail.com", 993, True) Dim gAuthenticate As New Koolwired.Imap.ImapAuthenticate(gSession, "imap_test@serysoft.com", "imap_test") Try
[code]....
When I run that code, I get an error that states:System.NullReferenceException: Object reference not sent to an instance of an object. (The bold line in the above code).
Now, I'm not sure exactly what that means. Does that mean it tried to access the server and "INBOX" doesn't exist so it gets returned a NULL value? Or is it possibly the coding itself?Maybe the Gmail folder system is weird due to the fact they use labels (even though from what I have read online, the labels act as the folders in the IMAP system).
My Visual Studio 2008 seems to be corrupted. I can not use the Windows Forms designer. I get an error about: "Make sure the application for the file type (.vb) is installed." Also, under menu item Tools>Options, it says "an error occurred loading this property page" when I try to look at the options for 'Data UI Customization' under 'Windows Forms Designer'
1)How can I make my program get the contents of a .txt file on my website to tell the program to run or not?Here is and example of what I want:Say the file says "Running", the program would run without problems.If the file was to say "Unavailable", a pop up would appear saying "The program is currently unavailable, try again later." Then once the person clicked OK, the program would close.
2)How can I make the program get contents from a .txt file to get the latest version of the program, then if there is a newer version, there would be a pop up saying there is a newer version and they need to update. Then when they clicked OK, the program would close and it would open their default web browser or Internet Explorer to the update page.
I have to make a program that reads a txt file after reading it, show it in a richtext box and in another tab make the average of the grades the input received sort it by the student id and then in the same rtb sort it by the average of their grades, and finally save it on a new text file.
The text file input is something like this
12 3 10.0 6.9 7.3 19 2 6.7 9.3 10 3 4.5 9.3 4.5
[Code]...
As you noticed in the input the first number is the student ID, the second number is the number of tests made by the student, and the other 3 numbers are grades, in the output the first number is the student ID, the second number is the average of the tests, and the other 3 numbers are grades, I don't have a problem opening and saving a text file and neither creating a tab with 2 RTB , my problem is how do I tokenize or read the input line by line, i guess that i need to use the split function but I don't know how to implement it into the program.
I create one function to run any select query. and return the OdbcDataReader type.But some time if there is no data it through error : Object reference not set to an instance of an object I need to know how i can control if there is no data.
Public Function Select_From_AnyTable(ByVal sqls As String, ByVal ConStr As String) Dim conn As OdbcConnection conn = New OdbcConnection(ConStr) Dim cmd As OdbcCommand = conn.CreateCommand() conn.Open() cmd.CommandText = sqls Dim reader As OdbcDataReader = cmd.ExecuteReader While reader.Read() Return reader End While conn.Close() End Function Dim ei As OdbcDataReader = Select_From_AnyTable("SELECT loginname from usertable limit 1", conStr) msgbox(ei.item("loginname "))
If there is data it work well but if no record found it through the error.
Like every other program that you make when you code a button to open the next form it should open right. Well not in my case. I don't understand the problem that Visual Basics is not seeing my next form that I'm trying to open. When its in the Solution Explorer plain as day. Error below.An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.show is not set to a object. All its doing is opening the next form. Ive use this code over an over. Now its giving me this C.O.S. error.
Basically all I am trying to do is to insert data entered in a text box(description) on the application form into database(sql2008) in vb.net. The vb code I wrote is below:
vb.net Protected Sub Save_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Save.Click Dim note As String = Description.Text
[code]....
However when I click on save button, I get following message:
System.NullReferenceException: Object reference not set to an instance of an object.
What in this code might be causing this??This part of the code is Hilighted as causing the error.
My.Settings.Item(Holiday_" & i) = DirectCast(Me.Controls("ComboBox" & i.ToString), ComboBox).SelectedItem Public Sub btn_Update_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
how to make program for hooking/inject .dll file into main.exe I want to make 1 program to inject/hook .dll file to main.exe fast . Its about the game MU Online.
I'am try to make multiple file deleter in visual basic so here is my code.
Public Class Form7 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click OpenFileDialog1.ShowDialog()
[code]....
But my problem is that if add two or more files it just deletes the last one on the list box. How can i make it delete a the files on the list box?
How i can make an installation file from a VB project developed in VB express edition 2008?So i can give it to someone and they can install it on their system.
I want to make a program that compiles dll files to a prebuilt exe in the same directory of the file exe file:iPhodroid.exe.I wan to compile about 15 dll files to it here is the link for the source code and dll files.I want to compile the files when the users press FIX IPHODROID button.