|
my problem is how to connect more then two table in single DataGridView like a DataGridViewComboBox1 connect one master table1, DataGridViewComboBox2 connect one master table2
at a same time in the two column data’s save in transition table1,
How can I do please help me. This is major problem
Please mail me it is argent
Franics K Antony
|
|
|
|
|
Hi,
I'm trying to save a dataset contents in a .csv or text file. The following code I've written.
My problem is "my.Computer.FileSystem.WriteAllText("d:\testcsv.csv", str.ToString, False)" in this line "my" is showing error always saying "my" is not declared. How to solve this problem.
Imports System.Text
Imports System.Data
Imports System.IO
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim str As New StringBuilder
SqlDataAdapter1.Fill(DataSet11)
For Each dr As DataRow In Me.DataSet11.stockm
For Each field As Object In dr.ItemArray
str.Append(field.ToString & ",")
Next
str.Replace(",", vbNewLine, str.Length - 1, 1)
Next
Try
my.Computer.FileSystem.WriteAllText("d:\testcsv.csv", str.ToString, False)
Catch ex As Exception
MessageBox.Show("Write Error")
End Try
End Sub
|
|
|
|
|
Ramana Nori wrote: How to solve this problem.
Go and buy a book.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
For that you don't need to suggest
|
|
|
|
|
Which version of VIsual Studio (VB.NET) are you using?? The My namespace didn't show up until Visual Studio 2005. If you're using 2002 or 2003, this code will never work.
If you ARE using 2005, you need to import the Microsoft.VisualBasic namespace either in your code or in My Project settings, under the References tab.
|
|
|
|
|
Dear Friends,
I have developing small application in that application i need to make auto hide task bar how can i do that
Regards
K. Rajesh Kumar
i am a fresher in software development i have so many doubts in .net so i need to ca
|
|
|
|
|
What do you mean? Do you want to stop your application from showing up in the taskbar, minimize to tray or do you want to close the whole taskbar? If you want to do the last, as far as i know the only way to accomplish that is to close explorer.exe, resulting in loss of windows functions
Motivation is the key to software development.
|
|
|
|
|
Dear Friend,
I would like to hide my task bar only not like to stop the explorer.exe
i am a fresher in software development i have so many doubts in .net so i need to ca
|
|
|
|
|
Hi,
I am developing one application in that I have to display CPU usage history graph and Pagefile usage history graph.
When we open task manager it will display window, in that performance tab it will display CPU usage history graph and Pagefile usage history graph.
How to get those graphs from Task manager using vb.Net.
If anybody know about this please provide me some source code to complete this task.
To get the CPU Usage speed from taskmanager I used the following code
Private m_PerformanceCounter As New System.Diagnostics.PerformanceCounter("Processor", "% Processor Time", "_Total")
Dim cupcount As String = CInt(m_PerformanceCounter.NextValue()) & "%"
Here m_PerformanceCounter.NextValue() will gives the cpu usage percentage.
If anybody know about how to display those graphs, please provide me some source code to complete this task.
Thanks
pavani
|
|
|
|
|
You'll have to make the graph youself from the values. There are several graph libraries on CodeProject, such as this one[^] and this one[^].
|
|
|
|
|
How can i write all URL in to a file used in the browser.
Thankyou,
Yesu
|
|
|
|
|
You already asked this once and you have already received an answer (hint).
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
I would like to get all computer names and IP addresses within a specified range. I am unsure how I can get this information I was thinking using a for loop and starting at the lowest address and resolving the IP to get the name up to the highest address. I am not sure if that is possible and I am sure there is probably a better way. Please let me know thoughts. Any help will be much appreciated even if it is just a namespace to look into. Thanks.
Humble Programmer
|
|
|
|
|
You may be able to do this with scripting.
Use the tracert utility to reverse an IP address to a computer name, then parse the output to a cleaner list.
Try it out.
1) Use IPCONFIG on your machine
2) Use TRACERT x.x.x.x (where the x.x.x.x is your machine's IP address) and observe the output results.
3) You would capture this output to a file and parse the output to get the machine name.
Just a thought.
|
|
|
|
|
Are you sure this is a solution to the problem at hand? To me, this just shows how to convert an IP to a hostname, which can be done using .NET code[^]. I think he's looking for an efficient way to loop through a block of IP addresses.
|
|
|
|
|
I had previously written VBA forms to interact with different excel sheets in a workbook. I wrote code in each sheet's module to display a different form depending on which sheet is activated. Now I would like to recreate these forms to control excel sheets using VB.NET. My question is this
Would it be possible to program a VB.NET application to respond to changes of sheet in Excel?
Thanks,
Craig
"That rug really tied the room together."
|
|
|
|
|
|
Or he can buy a component from ComponentOne
|
|
|
|
|
Can the VSTO be used with Visual Basic 2008 Express?
"That rug really tied the room together."
|
|
|
|
|
Hey all,
I'm a little new to VB and I'm working in VB6. We have an application with about 3-8 mini-windows that all float separately and have code written to keep them from overlapping. My boss wants to put all these windows into a container window or master window in order to minimize the windows calls going on and hopefully clear up some crash bugs we have.
The trick is that he does not want me to use MDI but only "standard VB6 controls".
My next thought was maybe a docking framework would work for this but I'm having trouble finding one for VB6 that only uses standard VB6 controls?
Any thoughts or suggestions? I just need to be pointed in the right direction.
Thanks!
|
|
|
|
|
You should be able to use the SetParent[^] API to make those mini-windows children of the main form. Something like this example[^].
|
|
|
|
|
Will that cause the parent to become a container window that allows all to be minimized and moved at once?
modified on Wednesday, August 27, 2008 12:34 PM
|
|
|
|
|
Yes, but you will have to enumerate the children of the parent window to get their handles. (When you make a window a child of the parent, you could save its HWND in an array. That way you wouldn't later have to enumerate the parent's children to get their HWNDs.)
|
|
|
|
|
MDI is standard in VB6!
====================================
Transvestites - Roberts in Disguise!
====================================
|
|
|
|
|
Hi All,
Just one curious question whats the starting index of System.Collection object would be if I add few objects to it.
Thanks,
Aleem Mohammad,
NIIT technologies
abdul.aleem@niit-tech.com
|
|
|
|