Block Ability To Open Same Project Twice?
Mar 5, 2009I would like to block the ability to open the same project twice.Like in VB6... you could not open the same vbp again.
View 2 RepliesI would like to block the ability to open the same project twice.Like in VB6... you could not open the same vbp again.
View 2 Repliesi am making a virtual os with the ability to open up a calendar and add appointments on it i created to setting as strings to save the text put into the text boxes it saves them and opens them up but it will open the form and show the appointment but it shows the same appointment on whatever date you click on. also i need help on deleting a appointment here is the code:
[Code]...
Public Class ExtendedDateTimePicker Inherits DateTimePicker
View 5 RepliesFor reasons that are beyond my control, I have three Projects. Projects A and B reference project C. Project A references project B so that it can open a large form in project B. I now need to open that large form from project C, but VB won't allow me to add a reference from C to B because that would create a circular dependency. I found a way around it, though. I created a Timer in A, and when I opened C from A, I passed in that timer. When the user performs a certain action, I enable the Timer from A, and this causes C to open B for me.
View 2 RepliesI have a application which reads from ini at startup, What i want is a vb code that will block the user from opening the ini file manually, program could be running as service eg: C:config.ini. program should block the user from opening the file.
View 1 RepliesI'm trying to incorporate TransactionScope into my code and am failing at the first hurdle. I am unable to open a connection inside TransactionScope block. I get exception Connection Not Open.
Public Sub PerformDBWork()
Dim cnA As New OleDbConnection(My.Settings.DB_CONN_BUSINESS)
Try
cnA.Open()
[code].....
My cnA.Open() fires as expected but my call to cnBusinessDB.Open() fails.
I am developing a Multi-Project solution (A, B) in Visual Studio 2008.
I need to run a second project from the start up one and then the first project should be closed.
The matter is that I want to Exit the A.exe and kill the process and the dll that are depending on it. And then Run the B.exe.
I have a number of independent visual basic applications. Now I want to develop a window that will have command buttons to open each of the applications. How do I write the code in these buttons?
View 2 RepliesIf there already is a thread for this, then appologies.I have a VB project which displays a message to the User and has a button they can click on to continiue.What i would like is for when the user clicks this continue button another VB app opens up All straight forward so far.The problem is that in the second app id like to open, i have a few different tab pages and id like to be able to open the second app on a specific tab page (Which is not the default when the app opens). Is this possible?
View 3 RepliesI need to add .bin and .iso ability's into my app, i need to be able to open a .bin or .iso and list the files contained inside of it, ive found a small source code/class and example for the .iso one, but i need .bin adding to it to.
View 2 RepliesSo i have several tabs, and i close them all using a button with:
TabControl1.Controls.Remove(TabControl1.SelectedTab)
But I have been trying to figure out how to make sure the main tab doesnt close.What can i do to make sure the main tab can't shut down, when closing tabs with the above code?
I want to make a program that can play MP3-files from my FTP-server.I know how to play, pause and stop music from stream, but i don't know how to add seek-ability.You know, like in Spotify or Grooveshark, they play streamed audio with seek.so, i would like to be able to seek, and the trackbar would show where in the song you currently are.So, my questions are:
1.What codec should i use? I have NAudio, will that work?
2.Is there any examples or tutorials on how to do this, any at all? (i couldn't find any)
I have a need to add the ability to receive SNMP traps into one of my server apps (written in VB 2005). I have setup a UDP listener on port 162 (SNMP trap port) and can successfully get the trap message in a byte array no probs.
The problem is that I have no idea how to make a meaningfull message from this byte array. Does anyone have any pointers / code to either translate into a meaningfull message stream or a better way of adding this type of functionality (without adding 3rd party dll's etc).
When it comes to Backgroundworker's, I just make a total mess, even after reading over and over again the Backgroundworker component info on the msdn site... I have a code I would like to run on the form but if I do it with a simple "Public Sub" it will make the form lag, freeze, until the operation is done. So I try to paste the same code into a backgroundworker, and use Runworkerasync, but I get errors stating that the backgroundworker can't access controls on the form.
[Code]...
I have a system on my webbrowser that allows the user to choose their Search Engine out of a selection I organized. the down point is that I have it set so when they click save it will just hide, because if it closes the settings will be reset and not saved. However I want them to save. Here are my codes to the search button:
Private Sub Search_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Search.Click
If SearchEngines.RadioButton1.Checked Then
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate("http:www.google.com/search?hl=en&q=" & SearchBar.Text & "&btnG=Google+Search&meta=")
[code]....
This is the code of save:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Hide()
End Sub
I would like it so it saves when the whole program is closed, so when they start up it's automatically set so they can search on their favourite search engine.
When i open new project a error message show [code]...
View 2 RepliesThis is the code.
[code]..........
have put a ton of effort into my new project, and I have saved the coding and designer part. I never did publish it, and when I came back to open it later to work on it, I can't seem to get to the screen that allows you to move items, and edit the looks of the project. I have to files that say RSEB.Designer.vb and RSEB.Vb - So how do I open the screen that allows me to edit the **** project?
View 5 RepliesSo I am trying to make a program where the user is limited in moving the mouse to a form. I still want the user to see whats going on behind the form but not be able to click on anything but my form.
I tried using this
Cursor.Clip = Me.RectangleToScreen(Me.ClientRectangle)
The problem is that if the user clicks in certain spots on the titlebar...the mouse is unlocked. The machines this is going on has a ball type of mouse so if you scroll fast and click fast enough...it can also unlock.
i want to give the ability for a user to drag an area on the screen that they want and a that area to be print screened. or alternativly they click anywhere and that location is the top left of the box and then when they next click that location is the bottom right of the box and that box is print screened. [code]
View 1 Repliesif there was a way to emulate the application.settings file's ability to do something like the following:
If I add an item to the settings file editor say Variable1 with a a value of "foo"
I can then go to my.settings.default. (and at this point) Variable1 is item that is an option after I type the '.'
Is there a way to do this for a collection? To where I have
Collection1. (and when I press '.' the name of an item would show up?)
I want to make a server app, that can stream a movie (within my LAN)I've searched google, but can't find anything that will allow me to stream a .avi file and fast-forward (seek in the stream?) ability.
View 14 Replieswhen i compile the project and run it get the error Project Project has encountered a problem and needs to close. If you were in the middle of somthing, the information you were working on might be lost[ Close ]
View 4 RepliesI'm running Visual Studio 2008. Often, when I'm in one project, I want to open another project that is related in some way, either to fix a bug that affects both or implement a feature that will benefit both.If I'm currently editing project A, how can I open project B in a new window?
View 4 RepliesI am using Visual Studio 2008 Professional Edition, and I have a large windows forms project I have been working on. My computer froze up and I had to reboot. After reboot I opened my project, all the files loaded although I got a message telling me that the document load was skipped because of the way the project opened the last time. I am able to debug and run the program so the app is ok. but when I double click on a form to open it nothing happens. Even if i right click it and select "View Designer" or "View Code" nothing happens. No errors just nothing. I was able to open other projects with no problem but not this one, and this project is the only one that matters.
View 6 RepliesThere was an error about VB 2008 not being able to open vb files, i fixed that by re-installing but now when i try and make a project or open one i get this error:Warning1Extensibility DTE object unavailable.00
View 6 RepliesHaving just downloaded the Visual Studio 2010 Ultimate Beta, I decided to put together a little application I coded under 2008 VB.Net.when I click on "New Project", select new Windows Form Application project and try to open it, I get the following error dialog box & msg:"Unable to cast COM object of type'System.__ComObject' to interface type 'Microsoft.VisualStudio.Editor.Implementation. IVsGlobalUndoCapableUndoManager'. This operation failed because the QueryInterface call on the COM component for the interface with IID'{305E8709-55B7-4732-B872-1C073AB58047}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."
View 3 Repliesit happened to me a lot - i double click a solution file and open it - change it and find out that its openned twice on my computer. IN VB6 - you could not open the same vbp twice - how can I do that in vb.net 2005/2008
View 3 RepliesI have a VS 03 solution which I am trying to open but it gives following error:- System could read example.vb.System could not find the path specified.
View 6 RepliesWhich version of Visual studio Do I need to try to pen and conert an old VB6 project (vbp) to a .net ?
My I use Visual Studio 2008 ? (di I need an earlier version?)