Jump to content
Xtreme .Net Talk

Salat

Avatar/Signature
  • Posts

    81
  • Joined

  • Last visited

About Salat

  • Birthday 06/25/1983

Personal Information

  • Occupation
    student of Akademia Techniczno-Humanistyczna w Bielsku-Bialej
  • Visual Studio .NET Version
    Visual Basic .NET Standard
  • .NET Preferred Language
    VB .NET

Salat's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I think, I don't need to register the AxInterop.* files but only the MSINET.OCX and shdocvw.dll I hope it will work. Anyway, when I register those AxInterop.* there was an error. What You think?
  2. I've made a program, which use Inet and WebBrowser control. On my machine everything works just fine, but when somebody else installs this program on his machine, the following error occurs: System.Runtime.InteropServices.COMException (0x80040154): Class is not registred at System.Windows.Forms.AxHost.CreateInstance() at System.Windows.Forms.AxHost.GetOcxCreate() at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state) at System.Windows.Forms.AxHost.CreateHandle() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.AxHost.EndInit() at xmaax.Form1.InitializeComponent() in d:\Moje dokumenty\PIOTREK\Visual Studio Projects\xmaax\Form1.vb:line 968 at xmaax.Form1..ctor() in d:\Moje dokumenty\PIOTREK\Visual Studio Projects\xmaax\Form1.vb:line 99 at xmaax.Form2.mnuInstaluj_Click(Object sender, EventArgs e) in d:\Moje dokumenty\PIOTREK\Visual Studio Projects\xmaax\Form2.vb:line 296 at System.Windows.Forms.MenuItem.OnClick(EventArgs e) at System.Windows.Forms.MenuItem.PerformClick() at xmaax.Form2.wykryjStanXmaax() in d:\Moje dokumenty\PIOTREK\Visual Studio Projects\xmaax\Form2.vb:line 241 at xmaax.Form2.Form2_Activated(Object sender, EventArgs e) in d:\Moje dokumenty\PIOTREK\Visual Studio Projects\xmaax\Form2.vb:line 313 at System.Windows.Forms.Form.OnActivated(EventArgs e) at System.Windows.Forms.Form.set_Active(Boolean value) at System.Windows.Forms.Form.WmActivate(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) I'm useing ghostInstaller, which copies all needed files to program files folder so there are files like listed below: * AxInterop.InetCtlsObjects.dll * AxInterop.SHDocVw.dll * dotnetfx.exe * dotnetwidgets.dll * INSTALL.LOG * Interop.InetCtlsObjects.dll * Interop.SHDocVw.dll * Uninstall.exe * prog.exe * prog.pdb please, tell me, what shell I do with it.
  3. If I have a .mdb file how to create an application which will operate at this file. How to start, which controls use, please tell me, I'm realy don't get it where to select the file, which property of which control use. thank You Piotrek
  4. thank You... it's working well
  5. I'm useing some code, to show few files at a specified path with a menuitems. So this code has a for each filename in dirname loop and it's useing MenuItem5.MenuItems.Add(filename) to list those files. and the problem is with handling the event of click at the menuitem of a specified filename. There is no event of Menuitem5, which will corespond with MenuItem5's child clicked. How can I solve this problem, Have You got any ideas? thank You any sugestions. Piotrek
  6. I was wondering how to show default printer's propertis dialog (You know, this one, which is shown when button is clicked next to the combo with all list of installed printers, on a default Print dialog) I'm tring to write Print dialog, same as the PrintDialog control but with some other options. So I need this button to work properly... I've tried this code: Private Declare Function OpenPrinter Lib "winspool.drv" Alias "OpenPrinterA" (ByVal pPrinterName As String, ByVal phPrinter As Long, ByVal pDefault As Integer) As Long Private Declare Function ClosePrinter Lib "winspool.drv" (ByVal hPrinter As Long) As Long Private Declare Function PrinterProperties Lib "winspool.drv" (ByVal hwnd As Long, ByVal hPrinter As Long) As Long Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim hPrinter As Long OpenPrinter(ComboBox1.SelectedItem, hPrinter, 0&) PrinterProperties(1, hPrinter) ClosePrinter(hPrinter) End Sub but the hPrinter is 0, after OpenPrinter is called Have You got any ideas....? I was also wondering how to get printer's info (state, comments, etc.), I have tryed the code from API-Guide, but it also didn't work. thank You for your advices.... Piotrek
  7. hello... If I have a panel, with autoscroll property set to True, is it possible to set it scrollbars behave like simple scrollbars. I mean, to set it's smallchange to some other value, so when user, clicks the up, or down arrow, controls on the panel moves 10 px or 50 px depend on the smallchange property, which panel dosn't have. hope you did understood... Piotrek
  8. and for IE: HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer param: Version
  9. here is that key for .NET Framework "HKLM\SOFTWARE\Microsoft\.NETFramework\policy\v1.0" thank You Madz
  10. There is a completly free version of GhostInstaller at ginstall.com. Theirs newest product support NET Framework install (I didn't find it out how it works, but they say it is). This is a freeware wersion, so it is not as good as the comercial ones, it is event worst, the whole instalation user should to create by his hand typing some code with XML structure. But there is a greate help file so, it should be so difficult. I'm not sure which version I have, and which they sugest to downoload, I've done it form ZDNET Isn't it great...?
  11. I'm trying to write setup manager for my applications. I mean a program wrote in C++, with my own splash screen, which will check for instaled IE and .NET Framework. If they aren't already installed the suitable setup will be lunched. After all, my program main setup is lunched. But one of the biggets problem is to how recognize if there is a IE, Framework and which it's version. Maybe I could search the registry for a key in Software/Microsoft with any string containing "NET Framework", but I'm not sure if it is correct, I hope there is more efficent solution. (for example: the key may exist, but the framework is not instaled, probably physical removed by user) Also searching "program files" directory is not universal solution, beacouse, "program path" of IE and freamework, could be specified somewhere else. any sugestions would be great...
  12. Few days ago I've started to learn C++, I found out that there is a great command called inline (it is placed before declaration of a function) which incredibly speed up executing of program, I was wondering if there is something similiar in VB .NET Do You know any... ?
  13. winzip won't check if framework is installed, it won't show any nice interactable splash screen, etc...
  14. Does any of You, guys have an idea how to create a self-extracting program in any language (probably C or C++) I've found some info about exe structure at wotsit's format but still don't know how can I do this. This program don't need to compress the files which it consists, but just hold them. I was wondering if I could create a setup for my programs with .NET Freamework and Internet Explorer setup whole packed in just one exe file. Have You got any ideas?
  15. correct me if i'm wrong, boes You have a main form, which is set as starup form, and in it's form_load event You call SplashScreen... it's right, if Your application have to do connect to databases and do the other things, My splash screen is showing the progress of loading mainform, so the starup form is my splash screen form. In it's code, after it is whole shown, it starts to load main form of my application. if I want to load my main form from splash screen class, the executiing of it's code is suspended till the main form is loaded (progress of loading is not shown properly). So I put other class, and a new threat in splash form code, which will load the main form. (Showing of loading progress is not disturbed). My bigest problem was, that after loading main form from this class executing of my program was ended. So i decide to use ShowDialog after loading and this solve it
×
×
  • Create New...