|
Am I missing something -
This is rough coding right there...But It should work, BUT IT DOESN'T! What it does is take a file like
MENU
-MENU
--MENU
--MENU
-MENU
-MENU
--MENU
--MENU
--MENU
MENU
-MENU
-MENU
-MENU
--MENU
--MENU
and put it into seperate pop up menus. I dunno why it doesn't work. Can someone fix it??
Code:
Option Explicit
Const MF_CHECKED = &H8&
Const MF_APPEND = &H100&
Const TPM_LEFTALIGN = &H0&
Const MF_DISABLED = &H2&
Const MF_GRAYED = &H1&
Const MF_SEPARATOR = &H800&
Const MF_STRING = &H0&
Private Type POINTAPI
x As Long
y As Long
End Type
Private Declare Function CreatePopupMenu Lib "user32" () As Long
Private Declare Function TrackPopupMenu Lib "user32" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal x As Long, ByVal y As Long, ByVal nReserved As Long, ByVal hwnd As Long, ByVal lprc As Any) As Long
Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long
Private Declare Function AppendMenu Lib "user32" Alias "AppendMenuA" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpNewItem As Any) As Long
Private Declare Function DestroyMenu Lib "user32" (ByVal hMenu As Long) As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Dim MainMenu() As Long
Private Sub Form_Load()
Dim sData() As String
ReDim sData(0) As String
Dim InputFFile As String
Dim IDs() As Long
ReDim IDs(0) As Long
Dim I As Long
ReDim MainMenu(0) As Long
Open "C:\Documents and Settings\Iyad\Desktop\69 Server\Menu.69" For Input As #1
Do Until EOF(1)
Input #1, InputFFile
ReDim Preserve sData(UBound(sData) + 1) As String
sData(UBound(sData)) = InputFFile
DoEvents
Loop
Close #1
For I = 1 To UBound(sData)
ReDim Preserve IDs(UBound(IDs) + 1) As Long
IDs(I) = I
Next
For I = 1 To UBound(IDs)
If Left(sData(I), 2) = "--" Then
AppendMenu UBound(MainMenu), MF_STRING, IDs(I), sData(I)
ElseIf Left(sData(I), 1) = "-" Then
AppendMenu UBound(MainMenu), MF_STRING, IDs(I), sData(I)
Else
ReDim Preserve MainMenu(UBound(MainMenu) + 1) As Long
MainMenu(UBound(MainMenu)) = CreatePopupMenu()
End If
Next
End Sub
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
Dim Pt As POINTAPI
GetCursorPos Pt
TrackPopupMenu MainMenu(0), TPM_LEFTALIGN, Pt.x, Pt.y, 0, Me.hwnd, ByVal 0&
End Sub
[2005] Problems with Excel 2007 Automation -
I want to create an Excel file in the server. Everything is fine when i tried my web application at Visual Studio, but when i tried to run from client side the process bar in the browser stuck (hang) at around 50%.
Code:
Excel.ApplicationClass oAppClass = null;
Error when open word application in ASP.NET -
System.Runtime.InteropServices.COMException: Cannot activate application
I have the namespace Microsoft.Office.Interop.Word included in my program
The Code is like this
Microsoft.Office.Interop.Word.Application word = null;
Microsoft.Office.Interop.Word.Document doc = null;
Missing Form -
Hi,
Suddenly, a form has gone missing from my project form files. It still shows in the project explorer, but is missing from the folder where the forms etc are stored. I tried creating a new form (not replacing the missing one) and that stores OK in the folder, but the missing Missing sequence numbers -
I'm using Sybase as back-end to VB front-end, my problem is how to code in VB to detect missing sequence numbers and display those missing sequences, let's say, 1-10 and 5 is missing. what coding is required ?
help - finding missing numbers -
I have many files in many directories, it's close to 40,000 files. They are in numerical order and some are missing. It sure is going to take a long time for me (or whoever) to sit and count 40,000 files to see which numbers are missing. I'd like to make a little app to loop through th Datagrid missing from PC -
Hi,
This might be a stupid question but I'm copying code from one VB project to another PC but the 'datagrid' on the copy insn't inserting into the new PC. When the form loads the datagrid is missing. The error I got was that there was something missing from the machine (the datagri SELECT missing date in SQL -
I know I've seen it here in this forum
and I've tried to look for it but couldn't find it...
Anyone know how to search for a thread which explaines
how to retrieve a missing value in a row.
Example:
Table THIS,
Index Numbers
Numbers
1
2
3
4
7
8
9
5 and 6 are miss Ode to Dll where art thou -
Has anyone ever come to the error 43 missing DLL?
I have excel object 9.0 installed but it continues to say missing dll file. Which one I haven't a clue. My system crashed two days ago, but I did reinstall windows 2000, office 2000, VB but continue on with the missing DLL. Anyone ev missing add-ins -
Hello everybody!
I have got VB6 Enterprise Edition (legally) but i am missing some add-ins. No i can not load them through the add-in manager because they aren't shown there. I am missing :
- ActiveX Control Interface Wizard
- Properrty Page Wizard
I have got servicepack 5 i Missing Record Log -
Using Access97 here.
Need to create a missing record log (table) to determine if any weekday records are missing for a user selected period.
Weekends are not an issue as no activity these dates.
Table is structured with PrimaryKey field = !fldDate.
Any suggestions?
excel addins -
Hi,
I am trying to open an existing excel spreadsheet which has an Addins.
When I open it using .net code, it opens the file but the addins does not appear in the file.
So, after doing some search, I found there is a VBA code which does what I want but unfortunately I do not know Resource file missing -
Hey,
I have used resource files many times before, but for some reason now I don't have access to it in my Add-ins??? I don't know how to reset this, I am also missing my Package and Deployment component? any ideas ? I did check for the PDAddin.dll and am missing it,
Thanks
registering dll's -
if I have a computer with a missing dll, can I copy that dll from another computer and put it on the one that is missing it. how do I do this? I need to copy, paste and register? I remember seeing something on this board about regsrvr or something. Am I on the right track. I have a co Active X Data Object Recordset Missing -
I am working on a VBA project and I keep getting missing reference for "Microsoft ActiveX Data Objects RecordSet 2.6 Library" even though the "msador15.dll" is in the correct directory. If I goto the tool->reference menu and uncheck the missing reference and the SQL Experts Wanted!! -
Hi,
I have two databases. They include many things (each ones different), but two unique numbers are the same. each database is in use for different reasons, but on my form load I want to compare the databases and find out if there are any empid's missing in the second database (wil [2005] Create and Open Microsoft Word Document Programatically -
Hi All,
" The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"
I encountered the above message when i try to do the following:
(problem occur at the point where I open existing .doc file)
----------------------------------------- IEFRAME.DLL IS Missing. -
I upgraded 2 days ago to IE7.
So more than likely this IEFRAME.dll went missing at that point.
Today, I started a VB6 app of mine, and it reported this IEFRAME.dll was missing. Now, I know I also started this app yesterday, but it did NOT complain about the missing dll. Of course, How to add the missing numbers -
hi,
in a table if i hav records,whose numbers are ranging from 1 to 10.
if i hav deleted some numbers, say, 2, 4 and 6.how to get these missing numbers and add to the a combo box of a form??
as i am using max(), it'll get me only maximum number and wont check whether there missing..... -
Under Project/References it says im missing my Outlook Type 98 Library....what should I do to replace it or whatever?
do u think things going well -
are you satisfied that ur life is going well???
or u feel that some thing is missing ???
did u try to know what is missing ???
missing! -
Some more users i have noticed that are missing (or i have just missed somit)
ghost ryder
jamagei
A problem in VB with XML -
Dear Friends,
I'm developing an application in VB6 that has to send xml requests to a web server which sends response in xml format. The response is to be shown on a vb form. I'm using DOMDocument to read the response. The problem is that in a few places in the response some of the Finding missing data -
I am attempting to find missing billing data in our database.
This is a very diluted example of the database structure with example data
Month Year Site
1 2008 a
2 2008 a
3 2008 a
1 2008 b
3 2008 b
2 2008 Data Report Section Missing -
Hi, I've been making a data report that reads from a database. All of the textboxes are linked correctly. Sometimes when I try to show the report, the main section is missing and the footer is directly under the header. Other times it works fine. When I compile the project, the sam Missing Add-in Wizard -
I am trying to figure out how to write an add in, but the "Add-in Wizard" is missing. Besides registering the add-in, I cannot find anything in MSDN without using the wizard. I have searched here and there and everywhere. All of the references that I have found are for VB6 or Missing DLL -
When i try and use the data.Recordset property it say missing DLL?
missing elements in control array -
I have a control array of type PictureBox
If there is a ceratin element missing in the control array, i.e, say element 102 is missing. How do I check if Picturebox1(102) exist in this form or not?
[2008] finding missing files -
Ok i didnt know what to search for or what the title should be but heres my problem.
We have a document scanner and we daily scan out proof of delivery documents, now we just save all this files on our server, we have no document management software.
what i would like to do is fi Missing DataArrival * resolved -
When I run the program without break there's a missing data arrival (I kept track by adding the Index to a string every time DataArrival fires, I compared it to a similar string for sends). But when I stepped through it with breakpoints to find the error, everythings accounted for.
missing header files please help me -
Hello
i have a problem
i am using Windows Xp OS and i have borland C++ Compiler
But sometimes when i try to compile a .c file i find that there are header files that are missing
the missing files that i need very much are :
unistd.h
netinet/in.h
rpc/types.h
netd Change references if missing -
Hi,
I have an Excel VBA file that uses the Microsoft Outlook 10.0 Object Library. The problem I am having is this..... When someone opens the file with a newer version (11.0) of the object library then saves it, then a person with the older version (10.0) opens the file and tries t How to skip errors when component is missing -
Alrighty then, here we go ...
I have a project, and I already know how to use On Error Resume Next. However, when I do this in all my subs and modules' functions and subs, some people can still get an error that shuts down the program if an ActiveX component is missing.
How can I VB Wire News missing -
Is it missing for anyone else?
Find out ALL the missing numbers -
I have tried a number of ways to sort this out & have hit a brick wall. Help!
I have some data, which also includes invoice numbers. The invoice numbers run in sequential order e.g. 1,2,3,4...
Some invoices however are missing and those are the numbers I am trying to find. For How to find and enter missing values -
I have a column in Excel with date formatted, 8/20/2007 13:00. Within the column there are missing hours for numerous dates. I'd like to "fill in" the missing rows with correct date and hour, so that each day has 24 hours (00:00 - 23:00).
This sounds easy enough, though file missing or invalid -
i have made a client/server chat program, i have sent it to 3 people and they all have had the same error?? they said they get the error message "file missing or invalid", but they haven't told me which file it says is missing?
why do all these people have a file missing?
a missing .ocx files for an exe -
I have written a vb executable that uses a data grid and ado control, when I run the exe on a desktop it crashes with a missing .ocx error, I'm guessing I need to write an install file... any ideas?
Wheres filburt, da_slivy -
Really missing....everyone having a go at these two.....its being long I havent seen them posting.
oh missing some fun....
Missing Dependencies on Packages & Deployment Wizard -
Hi, i have a list of missing dependency information shown when i packaging my project using "Packages & Deployment Wizard". I've check through my project, those missing files has been added in project references / component.
Would appreciate for any advice. Thanks
A We are missing some one here -
OK smh doesn't seem to be about. *Jethro tells himself to avoid the smutty just married remarks*
BUt l was thinking in terms of the guy who came up with the Mrs Le Pont thing, which was exceedingly funny. Whatever happened to him/her/it.
Also missing in action:
Gen-X
Batman |