My customer Need to touch Screen Applications,screen fully show to icon and touch to show sub group image icon.how to possible this procedure,i have used few buttons but i don't know load sql values to buttons,so please help me to all......
In a current vb.net 2010 application, there is a dropdown list where the user selects who they are. From this list, the application knows what files are unique to the user.
In the past there was only one user. Now there is going to be 4 to 8 different users. The dropdown list is used to point to where the files are located for each user. This occurs since the user selects their individual names from the dropdown list and all the files uniquely start with the name of the person. In other words if the name Joe is selected then all the file names are Joe_file1,Joe_file2, etc.
The users are concerend that they will accidently update each others files. The users do not want to this to occur. This solution was determined by the previous programmer so each person could backup each other.
Thus I am trying to determine what a good solution would be.
Here is what I am thinking a good solution should be:
1. Change the application to determine what windows logon the person is using. Possibly the windows identity property could be used. This way the application will determine what files the user has access to.
2. Have another windows user created that basically has admin rights. This admin user logon would have access to all the users files. Basically when a person signs on with the windows admin user account, they would have to know what files they are trying to access.
1. I absolutely agree with point 1 - user should not be selecting their name from a list - open to abuse/security breaches etc.
2. I also agree that you should have an "admin" logon with access to everything.
In addition - How about also having a "delegates" list (I mean this in the English sense not the .NET sense) ... on the database have a table that maps each user to the other users whose files they are allowed to see and/or update ... similar to the way Outlook / Lotus Notes allows. Individual users should be able to configure who they will allow to see their files but a user may not "demand" the access by just picking a name of a list.
If UserA logs on they see their own files by default, but can pick another user from a list, that list only shows the list of users who have given that permission
If they all have individual databases then that does complicate matters a little (I originally thought of a shared database) ... not sure how you are going to be able to grant access to other files that way
I have used this code to access the webcam of my laptop and it perfectly works, but once i try to open it in my tablet it just shows me a black screen, the same thing happen when i test the code with a PC that does not have a webcam!
Private operations As IEnumerable(Of IMathFunctions)
'An aggregate catalog that combines multiple catalogs
Dim catalog = New AggregateCatalog()
''Adds all the parts found in all assemblies in
''the same directory as the executing program
''Fill the imports of this object
Dim asm = Assembly.LoadFrom("C:\Users\ ... \LibImportedClasses.dll")
Dim catalog2 AsNew AssemblyCatalog(asm)
Dim catalog3 AsNew AssemblyCatalog(System.Reflection.Assembly.GetExecutingAssembly())
Dim container AsNew CompositionContainer(catalog)
EndSubPublicReadOnlyProperty AvailableNumberOfOperations() AsIntegerGetReturn (If(operations IsNotNothing, operations.Count(), 0))
EndGetEndPropertyPublicFunction CallAllComponents(a AsDouble, b AsDouble) As List(OfDouble)
Dim result = New List(OfDouble)()
ForEach op As IMathFunctions In operations
This works well for the class that is inside the original project, except for one thing; It gets loaded twice, and I don't understand why.
The other question is, how do I load a lib file that is in a separate project (i.a. the interesting case). I could not get it to work, but managed to load the assembly, that did contain the class I wanted to load, but I couldn't use it.
I hope that you could assist me in answering the two (hopefully) simple questions.
There is just one problem left, I can't seem to load the Assembly from the imported dll. But I am able to get the type that Im interested in by using this method:
Dim Path AsString = ("C:\Users\ ... WpfPlayingAroundWithMEF\LibImportedClasses\bin\Debug")
Dim pluginFiles() AsString = Directory.GetFiles(Path, "*.dll")
Dim ipi = (From file In pluginFiles
Let asm2 = Assembly.LoadFile(file)
From type In asm2.GetExportedTypes()
So why doesn't the lines:
Dim asm = Assembly.LoadFrom("C:\Users\ ... LibImportedClasses\bin\Debug\LibImportedClasses.dll")
Dim catalog2 AsNew AssemblyCatalog(asm)
i have added a button named book, and a panel below it.when mouse will hover over book button the panel will be visible (i used increment of panel height for this).but my requirement is, the panel to be visible as long as the mouse hover over the panel.
if u can't under stand what i'm saying just check this page.. flipkart. check the header menu which contains electronics, men, women etc.
i want that type of menu in my form. i hope someone will help me asap.
here is my code.
PrivateSub AdminPage_Load(sender AsObject, e As EventArgs) HandlesMe.Load
BookPanel.Height = 0EndSubPrivateSub Book_MouseEnter(sender AsObject, e As EventArgs) Handles Book.MouseEnter
DoWhile BookPanel.Height < 210
BookPanel.Height += 1LoopEndSubPrivateSub Book_MouseLeave(sender AsObject, e As EventArgs) Handles Book.MouseLeave
DoWhile BookPanel.Height > 0
BookPanel.Height -= 1LoopEndSub
Using VWD2008 and Office 2010 - I am trying to create an excel object.
When run through VWD, a spreadsheet is created, formatted and saved fine. When the code is compiled (and run on the same machine), the create object or new Excel.Application falls over.
1) as object using Microsoft.Office.Core dll:
Dim xlApp AsObject = CreateObject("Excel.Application")
2) As Excel application using Microsoft.Office.Interop.Excel dll
Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.
It documents the various hoops that you'll have to jump through to stand any chance of getting Office Interop working in ASP.NET; however, there is no guarantee that you'll be able to get it working, or that it won't stop working at some random point in the future.
There are various ways to read and create Excel spreadsheets on the server without using Office interop. For example:
Also, if you're on a 64-bit OS, check your AppPool settings to make sure you've selected "Enable 32-bit Applications". A 64-bit AppPool won't be able to create and use an instance of a 32-bit COM component.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I am using the progress bar supplied with VB 2013 - everything works as it should except that the "flying left to right highlight animation" does not work - the moving bar is just the flat solid colour. On the designer I see the "highlight flying" effect but not when I run or test the .exe file! I have searched everywhere for any clues and so far hit a blank wall. Is there some property I should be setting on the progress bar to achieve this? Any clue would be appreciated.
I do not think you will see any changes since your progress bar is most likely not being updated as you expect. You need to create a background thread that updates the control as your application progresses or processes some data.
i'm trying to locate a file inside a textbox (full path i.e. "I:\movie collections\Gigantic - 2008 - Zooey Dechanel.mp4" = MovieURLTextbox.text) and display it in windows explorer. below code works fine with short filenames but would go to the default mydocuments with long filenames. please help... thnx!
Dim fileToFind As String
fileToFind = MovieURLTextBox.Text
Call Shell("explorer /select," & fileToFind, AppWinStyle.NormalFocus)
Good day friends! I need your help in this issue. I know vb6 is outdated but this has to be done in vb6. I add ms access database to a resource file in my vb6 app but am finding it difficult to add new record, search the database, delete record from it etc. How can I achieved this in vb6 resource file. Thanks in advance!
I have two workbooks that I am working with. I am trying to copy a range of cells from one workbook to another. The source workbook will already be open and the destination workbook might not be open all the time. I am a little new at VBA. I have looked at some code from different sources on this topic. This is what I have so far.
I get the following Compiler Error: Invalid use of property
This happens when trying to open the destination workbook.
Dim xlApp As New Excel.Application
Dim xlworkbook1, xlworkbook2 As Excel.Workbooks
Dim xlworksheet1, xlworksheet2 As Excel.Worksheets
Dim xlSourceRange, xlDestRange As Excel.Range
'Set the source workbook
xlworkbook1 = xlApp.Workbooks.Open("C:\Users\Michael\Documents\Greystone\GDI Line\Holey Paper Templates\Denso GDI Holey Paper Rev 5.xls")