Are you working using MDI technique? or just you open form from another??
Comatose commented: Nice Code And Replies +8
ddanbe commented: Arrrghhg! Thanks Ramy I should indeed KNEW it! +4
Are you working using MDI technique? or just you open form from another??
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)
Get the (ACTIVE CHILD form instance).Close
So, tell me your problem, what you did and what you got?
To connect to SQL Server by C# application you need to use ADO.NET libraries
If it's relevant to web, you can shot your question in ASP.NET forum
Great and also don't forget to mark it as solved!
Look to deploy it as windows service, should be also installed as administrator! then it'll work without any interaction with the current user.
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.
Right click on VS icon, and run it as administrator.
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)
Just! did you try it?? :)
Try to run your application as administrator, right click on your executable then Run as Administrator, try and tell me what you get.
You can use some containers and play with them, to show one and hide others.
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.
Eyo, so don't create similar thread, of if you need you've to re-post your question\errors\problems...
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?
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?
Use FileInfo and DirectoryInfo classes would help you.
Try...
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
Mark it as solved to be referenced!
this.Controls.Add(......)
Play with registry... and I assumed it as Windows-based application.
Like you create an array from a simple data type, Get the number of files in the folder, and create the array at runtime.
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?
int value type.. TextBox reference type you should new it...
One of my dreams, is to see this thread solved!!
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 :)
You need multithreading :) to do that
I know Comatose, but it was my last chance to get him solve his problem!!!
In form load event handler tabControl1.SelectedTab = tabControl1.TabPages[1];
it's zero based.
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
Try Comatose's code, and tell what you get?
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.
Did you try Anchor property of the control?
Is ID a string?
Maybe... I don't know!
Can you send me your code to examine it myself if there's no problem.
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.
I don't know but, did you try to send the menu to back or bring the new document to front?
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.
Without writing single line of code!
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
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
Put your key in array
Dim key As String(numberOfKeys)
sorry I've mistake in this instead Dim Keys(numberOfKeys) As string
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.
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
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.