|
GlenCope wrote: Using VB6 I can add a reference to my module and call the function OK.
Did you add a reference to it in .NET? I'm pretty sure you would have and my apologies if the question is condescending but I had to ask.
If I understand your problem correctly, you are compiling a class to expose to COM in order to share amongst assemblies but the COM component your creating isn't returning the results you were expecting?
|
|
|
|
|
Thanks for your reply. I contacted the vendor only to find out they require CLSID in order to call the component. My code was indeed correct all along. I do intend posting an article on this topic.
|
|
|
|
|
It'll be an interesting read.
|
|
|
|
|
Hello... is it possible to have justify alignment in a multiline textbox?
i want to make a movie database and i have a textbox that shows the plot and i'd like to have it with justify alignment. is any other way except using a textbox to present the plot?
thank you in advance
|
|
|
|
|
I don't believe a textbox supports this, no.
You should only use a textbox or rich textbox if you want the text to be editable. Otherwise, use a label.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: You should only use a textbox or rich textbox if you want the text to be editable. Otherwise, use a label.
Yep. He's right.
|
|
|
|
|
but again label doesnt support wrap word with justify alignment... it is the same with textbox.. only difference it supports Trasparent...
|
|
|
|
|
Hi..
I have made a custom template that derives from ITemplate.
I have also create a class that inherits from INaming container.
For some reason i can not get the INaming container to work with my custom template. In order to implement the INaming container one must have a property that returns an ITemplate.
Why can i not return my custom Template the derives from ITemplate?
here is some of my code:
----
[ParseChildren(true)]
[PersistChildren(false)]
[ToolboxData("<{0}:HoverCalendar runat=server>")]
public class HoverCalendar : WebControl, INamingContainer
{
private ITemplate _itemTemplate;
[PersistenceMode(PersistenceMode.InnerProperty)]
public ITemplate ItemTemplate
{
get { return _itemTemplate; }
set { _itemTemplate = value; }
}
protected override void CreateChildControls()
{
Controls.Clear();
HtmlGenericControl container = new HtmlGenericControl("div");
if (ItemTemplate != null)
{ ItemTemplate.InstantiateIn(container); }
Controls.Add(container);
base.CreateChildControls();
}
}
*** this works fine; however, how do i use my ( the one below for example ) template?
----
public class myItemplate_1 : ITemplate
{
static int itemcount = 0;
ListItemType templateType;
public myItemplate_1(ListItemType type)
{
templateType = type;
}
public void InstantiateIn(System.Web.UI.Control container)
{
Literal lc = new Literal();
switch (templateType)
{
case ListItemType.Header:
lc.Text = "";
break;
case ListItemType.Item:
lc.Text = "";
break;
case ListItemType.AlternatingItem:
lc.Text = "";
break;
case ListItemType.Footer:
lc.Text = "Items |
---|
Item number: " + itemcount.ToString() +
" | Item number: " +
itemcount.ToString() + " | ";
break;
}
container.Controls.Add(lc);
itemcount += 1;
}
}
thanks
erik
|
|
|
|
|
Please read this[^], with specific reference to point 1.
Thanks.
|
|
|
|
|
Hello, may be you can help me with this problem. I want to extract the first frame of a quicktime movie. Is it posible to use the library to export the first frame of a quicktime movie using C#? Do you know some code in C# or vb.net or a COM dll to extract the first frame of a mov and save it as bmp or jpg without UI and command line.
Thanks a lot people !!!!
|
|
|
|
|
I am building an application witrh VB 6.0 wher I will be opening various excel workbooks. I was told to try and use the the "Send Keys.dll" feature whihc willl allow me to mimic the action a person takes to open an "excel program". Has anyone ever used this feature?
The day is long if you don't have help.
|
|
|
|
|
hi all
I have a big problem :
======================
1)- after i setup (windows 2003 server) and (the iis) and (VS.net 2003)
on my computer i found that problem .
2)- this problem i found it only when i use (ASP.net Web.App VB)
But the (Windows App work very good) when i change the
(Regional and language date formate to dd/mm/yyyy ).
* I can not made any change in ( Date formate MM/dd/yyyy ) from the
(Regional and language )this problem i found it only when i use
(ASP.net Web.App VB).
* I want to change the date format to (dd/mm/yyy) at my (WEB APP VB.NET).
* some one tell me i must format my hard and reinstall the windows and all
other app agin is this a solution !!!!!!!!!!! .
pls help my
thank you all
|
|
|
|
|
Please don't cross post.
---
That is not a problem with the installation. The regional settings in the control panel only affects your personal user account, not the account used to tun the ASP.NET code.
It would be a problem if the web site was affected by your personal preferences. Actually some earlier versions of IIS had this problem, which of course caused problems when web sites suddenly stopped working just because someone with a different regional setting logged in to the server.
Specify the regional settings for the web application; in web.config, global.asax, or in each page.
By the way, your use of parenthesis are quite confusing. Parenthesis are used to denote additional information that helps to clearify the main sentence.
And try to write a subject that means something the next time.
-- modified at 17:18 Monday 14th August, 2006
---
b { font-weight: normal; }
|
|
|
|
|
Hey all,
I'm having a hard time getting just part of an image to appear in a pic box.
Here's what I wanna do:
I have a picturebox that is 3200x2800 px. That has an image of a map in it. Then I put some more picture boxes over top of it in the shape of the countries on the map using the region property.
I then try this:
Dim bit As Bitmap = New Bitmap(map.Image)
Dim gmap As Graphics = Graphics.FromImage(bit)
gmap.Clip = New Region(mapPath) 'path of the country outline
picboxes(k).image = bit
I have also tried translating the graphics path, but nothing works. All it does is use the upper left corner of the map.image in every picturebox (which is really ugly ;-D ).
Any help is much appreciated,
Mike
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
Your core problem is Picture Box abuse. Get rid of them, and override the Paint event. Draw your own bitmaps. You get full control then.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Well, I can't get rid of the picture boxes cause they are the only way that I know how to do drag and drop. are you saying that it is not possible to do what I am asking about?
Thanks
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
i have been writing my own software by using windows controls such as command button and textbox. but sometime i wanted to create my own control perhaps a star-shaped command button, not just controls that were provided by vb, i have heard that this can be done by using windows GDI, can someone tell me where should i find info-beside msdn, like tutorial to better understand it.
Thankz before.
|
|
|
|
|
GDI is just the API for drawing. There are plenty of tutorials on this site. Are you using VB6 or VB.NET ? VB.NET uses GDI+, which is better
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
thanks for the info, i will try to use GDI first with visual basic 6;)...
|
|
|
|
|
how to get value from one crystal report to another
rama
|
|
|
|
|
Get it from the source of the crystal report.
|
|
|
|
|
how to get value from one crystal report to another
|
|
|
|
|
Is it possible to create an emailing function whereby the user enters his message in the vb system and sends it to an email address from his homw address?
So when the recipient receives it, he sees it from the user's home email address?
Thank you
Nothing lasts but nothing is lost
|
|
|
|
|
Yes, just specify the from address. Google VB.NET email and you'll get heaps of info.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I am trying to write a simple program for TCP/IP client and server to send a file over a network. However there is a problem with the uploaded file. It doesnt look like the original file. There is one section in the file that looks exactly like the original file, but after that there is extra section where the writing is a copy of another section within the text. Can some please let me know how I can fix this problem? I am very new to this TCP/IP so any help would be greatly appreciated.
Thanks
let me know if you need to see the code...
|
|
|
|