Ramy Mahrous 401 Postaholic Featured Poster

Are you working using MDI technique? or just you open form from another??

Ramy Mahrous 401 Postaholic Featured Poster

In memory heap if it's reference type e.g (eobject from class), in memory stack if it's value type e.g (object from struct)

Ramy Mahrous 401 Postaholic Featured Poster

Get the (ACTIVE CHILD form instance).Close

Ramy Mahrous 401 Postaholic Featured Poster

So, tell me your problem, what you did and what you got?

Ramy Mahrous 401 Postaholic Featured Poster

To connect to SQL Server by C# application you need to use ADO.NET libraries

Ramy Mahrous 401 Postaholic Featured Poster

If it's relevant to web, you can shot your question in ASP.NET forum

Ramy Mahrous 401 Postaholic Featured Poster

Great and also don't forget to mark it as solved!

Ramy Mahrous 401 Postaholic Featured Poster

Look to deploy it as windows service, should be also installed as administrator! then it'll work without any interaction with the current user.

Ramy Mahrous 401 Postaholic Featured Poster

Logical, non administrative staff can't read this information! right? so if your user is administrator he can do what we've done -> right click on your application and run it as administrator.

Ramy Mahrous 401 Postaholic Featured Poster

Right click on VS icon, and run it as administrator.

Ramy Mahrous 401 Postaholic Featured Poster

1- Please when embedding code, use code tags to make yout code readable

Dim result As Decimal
        result = Decimal.Divide(Decimal.Parse(TextBox1.Text), Decimal.Parse(TextBox2.Text))
        result = FormatNumber(result, 2, TriState.False)
        Label1.Text = String.Format("the result = {0} ", result)
Comatose commented: Nice Code And Replies +8
Ramy Mahrous 401 Postaholic Featured Poster

Just! did you try it?? :)

Ramy Mahrous 401 Postaholic Featured Poster

Try to run your application as administrator, right click on your executable then Run as Administrator, try and tell me what you get.

Ramy Mahrous 401 Postaholic Featured Poster

You can use some containers and play with them, to show one and hide others.

Ramy Mahrous 401 Postaholic Featured Poster

The problem I don't treat with GridViews, so wait you'll find someone helps you or try to search in msdn or googlize your problem.

Ramy Mahrous 401 Postaholic Featured Poster

Eyo, so don't create similar thread, of if you need you've to re-post your question\errors\problems...

Ramy Mahrous 401 Postaholic Featured Poster

To get processes you need to work with System.Diagnostics.Process class.
To get currently opened files with MS Word, ect... you need to automate with them, did you try to play with Word from your C# application?

Ramy Mahrous 401 Postaholic Featured Poster

You need to list all files with these extensions (.doc, .xsl, etc...) in a directory? or you need to get opened files in some applications?

Ramy Mahrous 401 Postaholic Featured Poster

Use FileInfo and DirectoryInfo classes would help you.

Ramy Mahrous 401 Postaholic Featured Poster

Try...

Ramy Mahrous 401 Postaholic Featured Poster

You told me you'll read, after reading come here back and tell me what did you do? you'll say I can use it well :) just try it's very

Ramy Mahrous 401 Postaholic Featured Poster

Mark it as solved to be referenced!

Ramy Mahrous 401 Postaholic Featured Poster

this.Controls.Add(......)

Ramy Mahrous 401 Postaholic Featured Poster

Play with registry... and I assumed it as Windows-based application.

Ramy Mahrous 401 Postaholic Featured Poster

Like you create an array from a simple data type, Get the number of files in the folder, and create the array at runtime.

Ramy Mahrous 401 Postaholic Featured Poster

But test of you've write access on the "C:\", check it.. I recommend such question to be in ASP.NET forum!! what do you see?

Ramy Mahrous 401 Postaholic Featured Poster

int value type.. TextBox reference type you should new it...

ddanbe commented: Arrrghhg! Thanks Ramy I should indeed KNEW it! +4
Ramy Mahrous 401 Postaholic Featured Poster

One of my dreams, is to see this thread solved!!

Ramy Mahrous 401 Postaholic Featured Poster

When I need to get them, I do that

ComboBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend
            ComboBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.AllUrl

I don't know, what done behind the scene, but your question will le me work around this, thanks a lot :)

Ramy Mahrous 401 Postaholic Featured Poster

You need multithreading :) to do that

Ramy Mahrous 401 Postaholic Featured Poster

I know Comatose, but it was my last chance to get him solve his problem!!!

Ramy Mahrous 401 Postaholic Featured Poster

In form load event handler tabControl1.SelectedTab = tabControl1.TabPages[1]; it's zero based.

Ramy Mahrous 401 Postaholic Featured Poster

Drag a comboBox and drop it into your form
Edit Comatose's code

For Each skName In rk.GetSubKeyNames()            
sk = rk.OpenSubKey(skName)            
comboBox1.Items.Add(sk.GetValue("DisplayName"))        
Next skName
Ramy Mahrous 401 Postaholic Featured Poster

Try Comatose's code, and tell what you get?

Ramy Mahrous 401 Postaholic Featured Poster

Yes, It could be, understand the C# code, and if you fail to convert any line of code to VB.NET, drop a reply soon.

Ramy Mahrous 401 Postaholic Featured Poster

Did you try Anchor property of the control?

Ramy Mahrous 401 Postaholic Featured Poster

Is ID a string?

Ramy Mahrous 401 Postaholic Featured Poster

Debug!

Ramy Mahrous 401 Postaholic Featured Poster

Maybe... I don't know!

Ramy Mahrous 401 Postaholic Featured Poster

Can you send me your code to examine it myself if there's no problem.

Ramy Mahrous 401 Postaholic Featured Poster

Yes, preferable, and we're here to help you about anything you face, really I appreciate this word from you

sounds like I need to learn

, please mark it solved.

Ramy Mahrous 401 Postaholic Featured Poster

I don't know but, did you try to send the menu to back or bring the new document to front?

Ramy Mahrous 401 Postaholic Featured Poster

As there are many users updating database, you need reflect dataset changes to the database once occurred. So you need to reflect\load and it's not good in performance perspective, so use Connected Mode, it's better in such cases.

Ramy Mahrous 401 Postaholic Featured Poster

Without writing single line of code!

Ramy Mahrous 401 Postaholic Featured Poster

Just select a background color for th GroupBox, then in form properties say that color you selected is Transparent from Form properties
Transparent Key = ?
Example
If you select Red as GroupBox background
Transparent Key = Red

Ramy Mahrous 401 Postaholic Featured Poster

Give me the keys you want to get and it's properties in that way
Exmaple
Key: HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0
Property: ProcessorStringName

Don't worry, just show me you want to learn

Ramy Mahrous 401 Postaholic Featured Poster

Put your key in array
Dim key As String(numberOfKeys)

sorry I've mistake in this instead Dim Keys(numberOfKeys) As string

Ramy Mahrous 401 Postaholic Featured Poster

My first answer is concept :) not for special case, once you load the database tables into your dataset, forget the physical database, and when you add entry to the primary table, you add it into dataset, so get the last entry key from the main table by anyway from dataset, then use it to add entries in child tables, and when you finish your work on the dataset, reflect that changes.

Ramy Mahrous 401 Postaholic Featured Poster

Put your key in array Dim key As String(numberOfKeys) then loop and once you get value put it into ComboBox or any control you present data into

Dim registrykeys(5) As String
'fill your keys
        For Each key As String In registrykeys
            ComboBox1.Items.Add(My.Computer.Registry.GetValue(key, "property", "default"))
        Next

Your array may be 2D to maintain the property of keys

Ramy Mahrous 401 Postaholic Featured Poster

Yes, and I think that's the way .eml file works, try to look into scheme to know how to attach multiple files, but don't walk in string compression algorithms, it'd talk a lot of time without proper effect.