|
Don't know if you got your answer yet, but I came across an example in the book VI6 Unleashed. It isn't exactly the solution, but it demonstrates moving graphics around and locking them into place. I don't think there is an IP issue sharing this with you. I also don't know how to attach a file, so here is the source for the page in in line: (Graphics files obviously missing.) I hope it helps.
<title>Flags of Canada
Drag the flag to the
correct province or territory name.
Quebec
Manitoba
British Columbia
Saskat- chewan
Alberta
Ontario
Northwest Territories
Yukon Territory
Newfoundland
Prince Edward Island
Nova Scotia
New Brunswick
Canadian Provincial Flags
David Brooks
|
|
|
|
|
hi ,
I have two forms , from1 and form2. Form1 is having mainmenu1 and is having menuitems in it. Now when i load form1 , in the load event of form1 i do me.menuitem1.enabled = false .
this disables the menu. now i have form2.load in form1 load event.
now the problem here is that in form2 i have a button thru which i want the mainmenu of form1 should be enabled.
so i have wriiten this code behind btn _click of from2
dim frm1 as new form1
frm1.menuitem2.enabled = true
but things dont work???
can somebody plz help me??
|
|
|
|
|
This is very simple. You shout not Dim a NEW instance of your Form1 because it should already open. Instead call the controls on the already open Form:
Form1.MenuItem1.Enabled = True
|
|
|
|
|
Ok, I believe this is called a custom UITypeEditor. What I am trying to do is have a Property that can Expanded and show two Sub-properties for that one. An example of this is the "Size" Type which has an x and y properties.
I want to use this to define a Color gradient.
Example:
BackColor
StartColor
EndColor
ForeColor
StartColor
EndColor
Can anyone point me in the right direction?
|
|
|
|
|
|
I have a vc++6.0 dll(ATL COM), a method in the dll takes a Variant(of type VT_DISPATCH) parameter as input. I am using this dll in vb.Net by imptlb process. The problem is that I am unable to pass the VT_DISPATCH type to my method. I am trying to use DispatchWrapper class as per MSDN but it gives unsupported interface error. Can any one help me out, its a bit urgent. I face the same problem in c# too. A solution in c# or vb.Net will do for me ).
IDL Method Signature
====================
Compress([in,out] VARIANT* DocumentObject, [out,retval] short* retVal);
DocumentObject is of type VT_DISPATCH.
vb.Net code snippet
====================
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
Dim Comp As New XMLCOMPRESSIONLib.JNIXMLCompressionClass()<br />
Dim XmlDoct As New Xml.XmlDocument()<br />
Dim XYZ As Short<br />
<br />
XmlDoct.Load("C:\DEXML\asdfa.xml")<br />
XYZ = Comp.Compress(DispatchWrapper(XmlDoct)) <br />
MessageBox.Show(XmlDoct.InnerXml)<br />
End Sub
I get error "Interface not supported" when I call compress with dispatch wrapper tyepcast.
|
|
|
|
|
Dear, Is there someone of you knows that how can I programmatically select all the items in a Checked List Box? I tried to do it but I couldn't find any property/method which can let me to iterate through the items of ListBox / Checked Listbox so that I may be able to select them.
Thanks for your help.
Sameers
|
|
|
|
|
Sub CheckList(ByVal lst As CheckedListBox, ByVal value As Boolean)
Dim i As Integer
For i = 0 To lst.Items.Count - 1
lst.SetItemChecked(i, value)
Next
End Sub
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Thaks dear,
The same thing I did just two days ago myself. You are a little late but it is good that at least you are.
Again, Very very thanks to you,
Sameers
|
|
|
|
|
dim a as label
dim a as new label
dim a as new label()
Can I use a.text immediately after one of the 3 dim ways?
Or should I have to add a line "a=new label" before using a.text in the first dim way"dim a as label"?
I hope you know my means.
Thanks.
this is my signature for forums quoted from shog*9:
I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
|
|
|
|
|
After the first "dim", a is still nothing so you can't use a.text immediately. You can do so after the other two "dims", however. The recommended way is:
dim a as label = new label()
which is equivalent to the second and the third dim.
|
|
|
|
|
But in fact,I see such dim :
dim form1 as form2(form2 is an user-defined class)
and the app uses "form1.param1"(param1 is also defined in class form2) immediately,not use new pointer first.
this is my signature for forums quoted from shog*9:
I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
|
|
|
|
|
Does anyone know how to use the post method to get through two urls to screen scrape information from the second url?
ie - i need to post some values to get to the first url. Then to get to the second url i need to post a second set of values. It's the second url where i need to screen scrape information from. (Note i need to go through the first url in order to get to the second one)
I can get it going in VB6 but not .NET.
Any code, help or suggestions would be truly appreciated.
|
|
|
|
|
Here's[^] an MFC article that might point you in the right direction. I've used WebResourceProvider to do exactly what you want to do.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
/ravi
I never thought I would see you hanging around this forum. Kidding...
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
Actually it was the "web scraping" thing that caught my eye at the home page. When I clicked the link I realized I'd enter the black hole.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
When I clicked the link I realized I'd enter the black hole.
Quick, follow me. Come quickly and I won't mention to anyone where you have been. LOL
Nick Parker
|
|
|
|
|
hello
So I just start working with VB.NET and I encountred a problem.
I created a search form that contains a textbox and a datagrid, so i use the textbox for entering first caracter of the searched record and i execute a parametrised query to display all the names verify criteria.
It works correctly, but the problem is when i want to choose one record by pressing an ENTER key (chr(13)),it is not working.
Excuse me for my bad english and Thank you very match.
***
|
|
|
|
|
intibnin wrote:
It works correctly, but the problem is when i want to choose one record by pressing an ENTER key (chr(13)),it is not working.
Are you trying to press enter in the textbox and have your form post-back to the server? I'm sorry, I didn't understand the question.
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
I was wondering if someone could tell me how to be able to use the default system icons? I set up a Toolbar and an ImageList, and wanted to be able to use the default Windows icons for new file, save, save all, etc. I know the default icons are stored in shell32.dll, but I'm not sure how to proceed. Any help would be appreciated!
-Sean
sean@codemonk.org
|
|
|
|
|
I have a program called IconView which can extract icons from shell32.dll . I can't remember where i downloaded it from. If you want it, I can e-mail it to you.
Notorious SMC
Vb is as VB does
|
|
|
|
|
I found the program with a search on Google. Thanks very much for the response.
-Sean
|
|
|
|
|
hi
I would like to learn about writing windows services. Any site and sample code available?
venkat
|
|
|
|
|
Hi Everybody,
someone can help me to open, view and save tiff multipage file in VB .NET.
Thanks
|
|
|
|
|
Can anyone tell me where to begin to move the info over.
|
|
|
|