|
|
thanks. this is part of whats needed. Thanks for the link. I can now start moving all this into a database.
|
|
|
|
|
Ooooh, wow, there's an XML version and a schema, use that one.
(Why does that sound sarcastic? It's not supposed to, darn it.)
|
|
|
|
|
I cant find the XML file and the schema. Only the txt files and the PDF file. Can you link it for me ?
Thanks
|
|
|
|
|
They're right there on the page the other link got to, further down the page.
|
|
|
|
|
Hey....What If the user enter a fake id and photo....
Sagar Pattnayak
Software Developer
Sun-Dew Solutions
+91-9831169962
|
|
|
|
|
Right, what the boss seems to want to achieve is unachievable, and therefore a waste of time and effort by the developers. Plus you'll wrongly accuse many innocent users and they'll go to a competitor's site instead.
|
|
|
|
|
Well the list is updated with all known aka names. I think my boss wants this as a sales pitch for the software. Purpose is to make it harder for someone to get the service if they are up to no good.
Yes someone can be denied service, but the customer owning the software can opt to use this or not in the settings.
|
|
|
|
|
But the user could perhaps create a new alias on the spot.
|
|
|
|
|
It finally occurred to me today that, were I a terrorist, I would check the list frequently.
|
|
|
|
|
Aloha,
I'm making a personal app. that can open a number of tabs (in a standard tabcontrol). Each of the tabs contains a webbrowser and the webbrowser automatically goes to a specific URL and fill out the fields on a form and click submit.
My problem is that I don't want to overload the site, so I would like to delay each tab opening a bit (10 minutes or so).
I have tried adding a Sleep() after each tab is opened, so the next tab opening (and thereby the next webbrowser submit) would be a bit delayed.
This works ok, except the event DocumentCompleted for each webbrowser aren't reached before all the tabs have been opened. All the webbrowser submit events therefore occur more or less at the same time, totally ignoring the Sleep().
Any idea how I can add a delay between my webbrowser submits?
Thanks, phimix
|
|
|
|
|
You need a loop that has a combination of sleep and Application.DoEvents()
The Application.DoEvents() allows the application to still process events and messages. If you just have the sleep nothing will be done until the sleep timeout happens.
Hope that helps.
Ben
|
|
|
|
|
You should not put Thread.Sleep in event handlers (or constructors).
Instead, create your tab pages with web browsers that initially don't refer
to their intended URL, let them point to a simple home page instead.
Then use a timer (I suggest a Windows.Forms.Timer) to set their URL property or
call their Navigate() method appropriately.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Thank you for both answers.
This was the approach I choose. It works perfectly
|
|
|
|
|
hello ,
i am trying to save the PageSettings ,
from a PageSetupDialog form because , i want the user to select
a page size and margin sizes one time then by the next time that he will print the same document the sizes he chose will show as default on the
PageSetupDialog.
i have tried to do this with Properties saving the PageSettings in ....
Properties.Settings.Default.sticker_page_settings,
and after creating a PageSetupDialog psd = new PageSetupDialog();
i wrote something like:
psd.PageSettings = Properties.Settings.Default.sticker_page_settings,
but still , the PageSetupDialog displays the same default values.
any tips or answers are welcome , thanks evryone
Net
|
|
|
|
|
I need the C# code snipset to establish a connection with a database [LabourData.mdf] created from SQL Server 2005.
've used this but the connection was not effective:
public string conet()
{
return "server=.;initial catalog=LabourData;uid=sa;pwd=solutions!"
}
Note: Am new to SQL Server 2005
Thanks
|
|
|
|
|
|
I need the C# code snipset to establish a connection with a database [LabourData.mdf] created from SQL Server 2005.
Note: Am new to SQL Server 2005
Thanks
|
|
|
|
|
there are so so many articles here on CP and this issue has been discussed a lot many time...
please LURK BEFORE U LEEP!
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
my problem is most of my project winfrm/webfrm (C#.net) takes too much time to start and to operate.
do you think I have to change my programming style.
if you have any thing to say about it or have any sample project to study on
PLEASE fell free to mail me
at :- hptaunk@gmail.com
I will be very glad to you.
thanks
himanshu p.taunk
|
|
|
|
|
How long is too long ? What does your app do on startup ?
The .NET framework takes a while to initialise, a web app especially, will take a long time to start on first access, then be nice and fast.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
himanshu p taunk wrote: my problem is most of my project winfrm/webfrm (C#.net) takes too much time to start and to operate.
I have no idea what this means!
himanshu p taunk wrote: do you think I have to change my programming style.
Being that you have not hinted at what your current "programming style" is, how is anyone supposed to advise you on whether to change?
himanshu p taunk wrote: if you have any thing to say about it or have any sample project to study on
There are thousands upon thousands of C# projects redily available on the net to study how others program things.... any reason why you need someone else to do the google search for you?
himanshu p taunk wrote: PLEASE fell free to mail me
The general idea of forums is that they are public and everyone gets to learn... by mailing you directly this is not possible. Post a message to a forum get a response on the forum... thats the way we play this game.
|
|
|
|
|
my mistake
sorry
most of my program takes too much time to connect a database (SQL Express /MS Access) making my application to response slow.
i access my database using a class
where i have declare my statements
(currently i am working on vb Project)
this is the code i usto access to database
do u find any problem with it
''''''
Imports System
Imports System.Data
Imports System.Data.OleDb
Public Class dbtask
Public Sub New()
End Sub
Public ReadOnly Property Connection() As OleDbConnection
Get
Try
Return New OleDbConnection(Configuration.ConfigurationManager.AppSettings(0).ToString())
Catch ex As Exception
Throw New Exception("OleDbConnection : " & ex.Message)
End Try
End Get
End Property
Public Function ExecuteCommand(ByVal statement As String) As DataTable
Try
Dim adp As New OleDbDataAdapter(statement, Connection())
Dim ds As New DataSet
ds.Clear()
adp.Fill(ds)
' MsgBox("-->" & ds.Tables.Count)
Return ds.Tables(0)
Catch ex As Exception
Connection.Close()
'Throw New Exception("Oledb Execute Command : " & ex.Message)
Return Nothing
End Try
End Function
Public Sub ExecuteNonCommand(ByVal statement As String)
Dim cmd As New OleDbCommand(statement, Connection())
Try
cmd.Connection.Open()
cmd.ExecuteNonQuery()
cmd.Connection.Close()
Catch ex As Exception
cmd.Connection.Close()
Throw New Exception("Oledb Execute Non Command : " & ex.Message)
End Try
End Sub
End Class
himanshu p.taunk
|
|
|
|
|
First thing!!
look at the name of the forum and the code u've posted? See anything??
and well incase if your applications are taking time to initialize things... you should consider using a splash Screen at the start just like MS word has. and do ur initializations on another thread while the window is there. There are a few articles here as well... search for it.
Thanks
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
That code is not very good. You are opening a new database connection for every single query you run, which is just a waste of resources.
Even worse, the ExecuteCommand method opens a connection that is never closed. Only if there was an exception the code closes a connection, but that is not the connection that was open earlier. Instead it opens a completely new connection that is immediately closed.
The ExecuteCommand is bad in another way. It catches any type of exception, discards it and just return an unusable value. If you catch exceptions, only catch the ones that you handle, and really handle the ones that you catch.
---
single minded; short sighted; long gone;
|
|
|
|