|
ok a programming forum!!!
so i need a mechanism solution!!!!!!!!
i want a function like:
function_name(12.521) as string: twelve, five hundred and twenty one
what is the problem with my question,, it is my problem and simply
I need a solution,, if u know answer me,, if u dont know dont reply..!
with my respects
|
|
|
|
|
|
Now i am using Visual studio 2005. in design time all controls displayed in
Xp style, in run time it looks like win 2000 style. what is the problem?
please advice..
|
|
|
|
|
Hi
I recently came accreoss an application that creates a database, complete with data and stored procedures etc. on installation of the application.
Can anyone tell me how to do this? I use VS.NET 2003.
Thanks in advance...
::He who brings joy to the world is raised amongst men than he who conquers the world::
|
|
|
|
|
(For SQL Server..?)
The way I do this is to ship the .mdb file of the database with all the procs, tables, reference data etc in it and use sp_dbattach to attach it to the server.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Another way to do it is to script the database and it's data in an .SQL script file, then have the SQL server execute it during the installation.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I believe you can script the DB objects, but not the data. I have been wondering myself how to do this with scripting...
The way we handle the problem is to include a script, which is run to create the tables, views, SPs, etc. Then, we also ship an XML file of "base" or "setup" data that we load into a dataset, and then save to the database, right after initial setup.
|
|
|
|
|
There's absolutely no reason why you wouldn't you be able to put a bunch of INSERT INTO statements into a text file and have SQL run that too.
The XML version you have works too.
If you have a TON of data to preload, create a DTS job to import it. If it's a bunch of data, an XML import works too. If it's just a few things, you could drop the appropriate INSERT INTO statements into the SQL script...
The point is it can be automated, it's just a matter of preference how you want to do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
To create the scritp just right click on the database and try to find the command "Generate to script..." may be in the "All task" sub menu. But it just generate the structure of the database, not all of the record.
|
|
|
|
|
Hi all,
is there another control or a way to ovorcome the timer limitations in VB6? I mean that the standard control can be configured to a maximum of 65535 ms. I'm interested to set it to minutes. Is it possible or is there any other control to do that?
Thanks in advance,
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
There's no way to change the control. Setting a Timer for minutes is also not a real good idea. Usually, people are doing this thinking it can be used as a scheduler to launch some task at a specified time. That's a bad design.
In any case, you're much better off setting the Timer for, say, 60 seconds, then in the Tick event, checking the current time against the scheduled time of the process you want to launch.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
Does anyone know if there is a way to read the CMOS battery voltage using vb.Net
Cheers
Richard
|
|
|
|
|
Only if the motherboard supplyies such information and you have some software interface to get at it. 99% of them don't.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
IF the motherboard supply information, where does this information is located? In the system information or in device manager dialog?
|
|
|
|
|
You'll have to consult with the motherboard manufacturer. There is no standard to follow, therefore, no way to know how it's going to be exposed.
It's not going to be listed anywhere in the System Properties, Device Manager dialog, or anywhere else for that matter.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you very much for your information.
|
|
|
|
|
i have two tables from each table one unique columns values are displayed on two combo box i also have a textbox, i have developed a datagrid which on clicking add button displays thes three values and one value based on a formula as first row of datagid. but when i again select the different values to insert in my datagrid as second row clicking add button replace the old valus with new valus.
how can i add more rows in my datagrid in every click preserving my old selected values?
Dev
|
|
|
|
|
Not sure I understand your question, but you can create a datatable to store your values you want to save, so each time you click your button add a new row to the table. Use the table as the datagrid 'DataSource'
<br />
Public Sub setupTable()<br />
Dim c1 As New DataColumn<br />
Dim c2 As New DataColumn<br />
Dim c3 As New DataColumn<br />
Dim columns() As DataColumn = {c1, c2, c3} 'Array of Datacolumns<br />
dt.Columns.AddRange(columns)<br />
'Use this table as the datasourec for your datagrid<br />
Me.DataGrid1.DataSource = dt<br />
End Sub<br />
<br />
<br />
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged<br />
If Me.ComboBox1.SelectedIndex > -1 And Me.ComboBox2.SelectedIndex > -1 Then<br />
Me.TextBox1.Text = CStr(CInt(Me.ComboBox1.SelectedItem.ToString) * CInt(Me.ComboBox2.SelectedItem.ToString))<br />
End If<br />
End Sub<br />
<br />
<br />
Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged<br />
If Me.ComboBox1.SelectedIndex > -1 And Me.ComboBox2.SelectedIndex > -1 Then<br />
Me.TextBox1.Text = CStr(CInt(Me.ComboBox1.SelectedItem.ToString) * CInt(Me.ComboBox2.SelectedItem.ToString))<br />
End If<br />
End Sub<br />
<br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
Dim dr As DataRow<br />
dr = dt.NewRow<br />
dr.Item(0) = CInt(Me.ComboBox1.SelectedItem.ToString)<br />
dr.Item(1) = CInt(Me.ComboBox2.SelectedItem.ToString)<br />
dr.Item(2) = Me.TextBox1.Text<br />
dt.Rows.Add(dr)<br />
End Sub<br />
|
|
|
|
|
Hi guys,
I was wandering, is there any way to open/view a text file using the default/any text editor?
I am creating an application that will generate a report. It would be very nice if there is a button that will open the generated report.
thank you for your time
|
|
|
|
|
Use the Process[^] class to launch the file you want to open in its default application.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanks Dave,
The other issue is, my file doesn't have any extension.
So when i tried to run it, it will give me an error msg saying "there is no application to open this file".
I was wondering, since i can't modify the name of the file, can i just specify i want to use a text editor to open the file or can i make it to treat the file as a text file?
This application will be used in many different computers with different textEditor ex. notepad++ and textpad
Thank you
-- modified at 12:10 Thursday 26th January, 2006
|
|
|
|
|
In that case, using the very same Process class, launch Notepad and make the file you want to open a command line parameter. The same examples in the docs apply to doing it this way too.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yes, I'm doing it this way:
Try
System.Diagnostics.Process.Start("Textpad", path)
catch
try
System.Diagnostics.Process.Start("Notepad++", path)
catch
try
System.Diagnostics.Process.Start("Notepad", path)
catch
msgbox(ex.message)
end try
end try
end try
However, this way i specify what texteditor i want to use, it has to be either textpad, notepad++ or notepad. Other than that it will error out.
Is there another better way to do it? :S
Thank you
|
|
|
|
|
If you really wanted to use an external editor, then no. Otherwise, you could write you own little text editor class and use that. Although Notepad is on every version of Windows ever installed...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Need Help on how to customize datagrid in windows form, using vbnet2005... that will allow me to click one grid...
Thanks and more power.....
|
|
|
|