|
thank you
---------------------
And Like The Wind Our Hero Vanishes Off Into The Distance...
|
|
|
|
|
I am developing an asp.net application using vb. I have a hyperlink control in my repeater template and I am not able to dynamically create parameters for its querystring. The parameter is the same value as the text. The reason I am using a hyperlink against a linkbutton is that I want the target window to be a popup.
<asp:HyperLink NavigateUrl="javascript:var w =window.open('Details.aspx?Name=<b>(what do I do here)</b>',null,'width=400,height=400,location=no')"
Text = <%# DataBinder.Eval(CType(Container, RepeaterItem).DataItem, "Name") %> Runat="server" ID="Hyperlink1"></asp:HyperLink>
|
|
|
|
|
hello all,
how shall i make my application, memory residant. I mean how shall i design Terminate and Stay Residant application using VisualBasic.
ComputerNewton
|
|
|
|
|
There is no such thing as a TSR in Windows. THe closet match is a Windows Service.
In VB.NET, easy, just start a Windows Service project.
RageInTheMachine9532
|
|
|
|
|
hello all,
how shall i send picture information across the network using Winsock in VisualBasic. And one more thing is that how shal i convert the BMP file to JPEG/GIF and PNG in VisualBasic.
ComputerNewton
|
|
|
|
|
hello all,
how shall i design the Remote Administration Application in VisualBasic.
ComputerNewton
|
|
|
|
|
Define "Remote Administration". What do you want this to do?
And in VB6 or VB.NET?
RageInTheMachine9532
|
|
|
|
|
i mean i would like design an application such that i can get full control of it from another system. such that i can open any file or shutdown.
just check www.radmin.com
i am planning to develope the application like this .
ComputerNewton
|
|
|
|
|
Why? It's already been done and won't take you at least 6 months to write it if you go buy PCAnywhere or something equivelent. Microsoft has their's, called RemoteDesktop...
You'll be writing 2 seperate apps to do this. The server will run on the machine you want to control, while the client will run locally. You'll be P/Invoking ALOT of Windows API functions on the server to get the screen image, follow the mouse and keyboard events, and post new keyboard and mouse events coming from the client.
This kind of project will take an average of 6 months to develop. How much do you get paid in 6 months? Compare that to the off-the-shelf cost of PCAnywhere...
RageInTheMachine9532
|
|
|
|
|
Hi,
I need help... How can I limit the rows in one field into 1 row only so that whenever I save something using VB, the content of that row would just be replaced by a new one. For example: in a textbox, if I enter a name and click save, the name that I typed would be saved on a database. If I enter a new name, the name that I entered before will just be replaced with a new one.
I used this code and I bind my richtextbox with a data control and it was running ok. But I still would like to ask for suggestions... Thanks...
Public gadocon As adodb.Connection
Public gadorset As adodb.Recordset
Private Sub cmdadd_Click()
rtbox.Locked = False
Set gadocon = New adodb.Connection
Set gadorset = New adodb.Recordset
gadocon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\gen\Desktop\TRIAL 4 THESIS\transfering form2form code\dbtext.mdb"
gadorset.Open "Table1", gadocon, adOpenKeyset, adLockOptimistic
gadorset.AddNew
gadorset.Fields(0) = Trim(rtbox.Text)
gadorset.Update
End Sub
Private Sub cmdedit_Click()
rtbox.Locked = False
End Sub
Private Sub cmdsave_Click()
Set gadocon = New adodb.Connection
Set gadorset = New adodb.Recordset
gadocon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\gen\Desktop\TRIAL 4 THESIS\transfering form2form code\dbtext.mdb"
gadorset.Open "Table1", gadocon, adOpenKeyset, adLockOptimistic
gadorset.Fields.Refresh
gadorset.Fields(0) = Trim(rtbox.Text)
gadorset.Update
frmaccept.Show
End Sub
|
|
|
|
|
You can't limit the number of rows in a table. In the past, when I've needed something like that it was usually because it was a setting I needed to store in the database. I created a SystemRegistry table where there were two fields, a keyname and a value (stored as nvarchar). That way you can store the name as somthing like this:
keyname value
frmMain\Firstname Mike
frmMain\Lastname Vernon
A bit of a poor example, but if you need to store system settings acrossed a clustered web application it becomes pretty convenient. If you needed to bind these fields, you could make a class that reads these settings and holds onto them and bind your controls to the class and not directly to the database.
RageInTheMachine9532
|
|
|
|
|
ok.. Thanks!
|
|
|
|
|
I am trying to learn how to search through a hard drive and look for a file extension, is there a tutorial that has been written that shows how to do this?
I have a form with a button, and a checkedlist box. I would like to have the program search though a hard disk and output all the files that have the inputted extension.
How is this done? What about directories that have access denied error message comes up like c:\system volume information? How do I skip that directory?
John
I want how to search hard drives!
|
|
|
|
|
I just noticed that when I write an entry into the Windows event log using one of the various overloaded WriteEntry methods I always get the following text below my description:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Grrrrr, I don;t want to send my users to the MS website....
Any ideas?
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
I want to backward format a date to the number. Does anyone know how to do that? Like take 01/01/2003 and get the number value.
Thanks
Santana
|
|
|
|
|
What number value? Are your talking about some kind of serial number representing a date? Like how many seconds from a base date, like Jan 1, 1970?
RageInTheMachine9532
|
|
|
|
|
When you register the dll and copy the registered .dll to another directory
generates serious problem. even unregister both .dll and reregister the original dll again won't solve the problem. Probably i have to work with registry and delete some key( i am not sure which keys to delete).
another option for this kinda problem. I have listed all dll that have the same dll in VB's reference library.
Thanks in advance.
Shinya
|
|
|
|
|
You can't register the same .DLL multiple times. This is because the registration is based on the GUID's in the .DLL, not the location of the .DLL. Unregistering it and then reregistering the .DLL will only update the location of where the .DLL can be found when it's needed.
skoizumi29110 wrote:
even unregister both .dll and reregister the original dll again won't solve the problem.
You might want to provide a description of the problem itself. Maybe there is another cause you haven't thought of, besides a registration issue...
RageInTheMachine9532
|
|
|
|
|
What I need to do was just clean up the registry and reregister the dll
like you said
"Unregistering it and then reregistering the .DLL "
is probably important.
Thanks for the tip.
Shin
|
|
|
|
|
Hello,
Ok, I have a table with alot of accounts and I want to copy only the accounts for a month at a time to a new table.
what is the fastest and best way to do this there are like 400,000 accounts that are going to be copied and i have to only copy accounts between the startdate and enddate that the user picks from date pickers. I am using vb.net and access as the datebase. Another problem is that the date in the original table is not in a standard format 1/1/2004 it is in a Timestamp which is time since 1/1/1900 and it lookes something like this 54745186 so i have to format it before i can check it against the dates the user enters. The way i am doning it know is like this, if anyone can suggest a faster way, cause this is taking like 10 mins.
MDRDataAdapter.SelectCommand.CommandText = "Select RecID,Format([mCallEnd]![Timestamp]/1440+1,""ddddd""),
Call,Account,Billing,Client,OrgAccount,
Duration,Port,Initials,CallKind,OpTime
From mCallEnd"
MDRDataSet.Clear()
MDRDataAdapter.Fill(MDRDataSet)
For i = 0 To MDRDataSet.Tables("mCallEnd").Rows.Count - 1
tempdate = MDRDataSet.Tables("mCallEnd").Rows(i).Item("Expr1001")
If tempdate >= startdate And tempdate < enddate Then
NewMDRdap.InsertCommand.CommandText = "insert into newtable
(RecID,[Timestamp],Call,Account,Billing,Client,OrgAccount,
Duration,Port,Initials,CallKind,OpTime) values
MDRDataSet.Tables("mCallEnd").Rows(i).Item("RecID") MDRDataSet.Tables("mCallEnd").Rows(i).Item("Expr1001")
MDRDataSet.Tables("mCallEnd").Rows(i).Item("Call")
MDRDataSet.Tables("mCallEnd").Rows(i).Item("Account")
MDRDataSet.Tables("mCallEnd").Rows(i).Item("Billing")
MDRDataSet.Tables("mCallEnd").Rows(i).Item("Client")
MDRDataSet.Tables("mCallEnd").Rows(i).Item("OrgAccount")
MDRDataSet.Tables("mCallEnd").Rows(i).Item("Duration")
MDRDataSet.Tables("mCallEnd").Rows(i).Item("Port")
MDRDataSet.Tables("mCallEnd").Rows(i).Item("Initials")
MDRDataSet.Tables("mCallEnd").Rows(i).Item("CallKind")
MDRDataSet.Tables("mCallEnd").Rows(i).Item("OpTime"))
NewMDRdap.InsertCommand.ExecuteNonQuery()
End If
Next
|
|
|
|
|
ACCESS?? 400,000 records in ACCESS??
Uhhh... Access is a desktop database. It was not designed for this kind of volume. Your not going to be able to speed this up very much at all since it works entirely in files. SQL Server is MUCH better at handling this kind of volume. If you really want to speed this up, migrate the database to SQL Server or even the MSDE first. In Access 2003, use the Upsizing Wizard...
And why would you copy all the records for a month into a new table? If you are looking to speed up future queries on that new table, the time your save then is only going to be eaten up by copying everything to a new table first. So in the end, your not really saving that much time...
RageInTheMachine9532
|
|
|
|
|
I'm not sure why you want to pull the entire months of tables data. I suspect that the data set will take some time to fill. You could try a paramtized query. Only fill the dataset withthe requested row. The difference is you would add "Where RecID = ? ".
Your form would then have a text box for the user to enter an ID and a button to retrieve the data. Is this something that you could use?
|
|
|
|
|
hiii to alll
i want to know how can i replace color of an image pixel by pixel. means i have an image having differnt colors e.g a carpet design , now wht should be hapened that if i want to replace red color whereever it is the red color on the image, it is then replaced with (say) green color, wht should i do?
can any body give me code in VB 6.0 coz i m new to VB.
plz its a bit urgent
thanx
regards
Tahir
|
|
|
|
|
THe PSet method will change a specific pixel of an image loaded by a picture box control.
Glano perictu com sahni delorin!
|
|
|
|
|
I have a program that loads a excel spreadsheet into a datagrid on my form. I now want to take that same information and load it to a SQL Server table from the datgrid. Is this possible?
here is what i am doing so far:
Dim a As String = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=c:\supplier requirements.xls;" _
& "Extended Properties=Excel 8.0;"
' Create the connection object by using the preceding connection string.
Dim objConn As New OleDbConnection(a)
' Open connection with the database.
objConn.Open()
' The code to follow uses a SQL SELECT command to display the data from the worksheet.
' Create new OleDbCommand to return data from worksheet.
Dim objCmdSelect As New OleDbCommand("Select * from [supplier requirements$]", objConn)
' Create new OleDbDataAdapter that is used to build a DataSet
' based on the preceding SQL SELECT statement.
Dim objAdapter As New OleDbDataAdapter()
' Pass the Select command to the adapter.
objAdapter.SelectCommand = objCmdSelect
' Create new DataSet to hold information from the worksheet.
Dim objDataset As New DataSet()
' Fill the DataSet with the information from the worksheet.
objAdapter.Fill(objDataset, "XLData")
' Build a table from the original data.
DataGrid1.DataSource = objDataset.Tables(0).DefaultView
|
|
|
|