Search results for query: *

  1. Amr Ashraf

    How can I suppress external app's messages ?

    Lol , Trustme is a method I created to run an app which add the current directory to the trusted locations of MS Access 😄 , So I called it `TrustMe` meaning the current folder . The app showing a simple message showing that the job is done but in German so I tried to prevent that message...
  2. Amr Ashraf

    How can I suppress external app's messages ?

    Hello guys , I'm trying to run external app and suppress it's messages , That app showing a message when it completes a simple task , I need to suppress that message so I tried this : public void TrustMe() { string dir =...
  3. Amr Ashraf

    Resolved How can I check if access db is open then activate it ?

    Thanks for your reply , I will see what I can find.
  4. Amr Ashraf

    Resolved How can I check if access db is open then activate it ?

    Hello guys , I'm struggling with something and I can't figure it out , I'm using this code to open a password protected access database : public partial class Start_Baseet : System.Windows.Forms.Form { string MyFile = Environment.CurrentDirectory + "\\Baseet.accde"...
  5. Amr Ashraf

    How can I convert a ms access database to ACCDE?

    That was very helpful , Thank you so much.
  6. Amr Ashraf

    How can I convert a ms access database to ACCDE?

    I found this talking about the mentioned command : "To compile an Access Database file to its compiled counterpart with VBA, you can use the SysCmd -Function with the undocumented AcSysCmdAction ‘603’. This action might be undocumented, but it is around since Access 97 and it works very reliable...
  7. Amr Ashraf

    How can I convert a ms access database to ACCDE?

    Sort of :) , I know two facts 1- what it means in VBA and works already . 2-I know that I can execute any VBA command using C# . Am I wrong ?
  8. Amr Ashraf

    How can I convert a ms access database to ACCDE?

    I got it from VBA and works there that command convert accdb to accde , I didn't find it in .Net but it should be somewhere . This is the working code in VBA : Function ConvertToAccde() Dim sourcedb, targetdb, nametargetdb As String Dim MyPath As String MyPath = Application.CurrentProject.Path...
  9. Amr Ashraf

    How can I convert a ms access database to ACCDE?

    Hello Everyone , I use this code to open a password protected access database : Microsoft.Office.Interop.Access.Application AccApp = new Microsoft.Office.Interop.Access.Application(); string MyFile = Environment.CurrentDirectory + "\\Baseet.accdb"; AccApp.Visible = true...
  10. Amr Ashraf

    Resolved Why my methods interfering with each others and with if statements in C#?

    Thanks so much for your help , It was so helpful i will re create the entire idea to be more efficient I was trying some online website to beautify the code and fix the indents and that what it have done 😄 I remove the most of the code , leave some and restore the rest bit by bit to see which...
  11. Amr Ashraf

    Resolved Why my methods interfering with each others and with if statements in C#?

    I have a form to insert some data in sql database with some conditions , First I need to check for nulls and alert the user : void CheckNulls() { try { if (txtcode.Text.Length == 0 || txtItem.Text.Length == 0 || txtWh.Text.Length == 0) { MessageBox.Show("Fill...
  12. Amr Ashraf

    How can I get my design to work on any screen size ?

    Thanks for reply , I realized something if I changed the DPI of the big screen it helps ( Current DPI is 150%) I think that's the issue.
  13. Amr Ashraf

    How can I get my design to work on any screen size ?

    Hello guys , I have designed a form and set the Dock and Anchor as i wanted , The problem is in the design mode the design is perfect but in the runtime he controls are not set properly . I tried my design on the laptop and the result was great , But when i run it on my PC with screen 43 Inches...
  14. Amr Ashraf

    MDI Child form size problem

    Hello guys , I have problem with the size of MDI Child form as following : I have MDI Container form and use this code to open child form FrmCodes FCode = new FrmCodes(); FCode.MdiParent = this; FCode.Show(); This is my child form result >> Window State Maximized...
Back
Top Bottom