|
If this is the first time you are using your gmail account to send emails programmatically, you'll also need to login to email and there should be a message somewhere in there asking if you are OK with some application trying to send emails using your account.
It's a security feature of gmail. I don't recall where the message showed up, but that happened to me.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hello community,
does anyone know a control which fulfills these requirements:
- Bindable to datacolumns of datetimeoffset type
- Nullable
- offering input assistance, e.g. dropdown-calendar
The datetimepicker control would just hit the spot, but it doesn't deal with datetimeoffset values (which are needed in my case).
I found a Nullable DTP here: Nullable DTP, which works great - on Datetime. Not Datetimeoffset. And as it's derived from Datetimepicker, which uses Datetime, it's no use...
Any hints?
Thanks
Martin
modified 4-May-15 8:27am.
|
|
|
|
|
WPF does
Oh, I'm serious. You can tailor the control as you please, so It wouldn't be a problem.
|
|
|
|
|
Hmm... but can I use WPF controls in Winforms? If yes, how? Winforms may be oldfashioned, but "the customer wants it"...
Thanks
Martin
|
|
|
|
|
|
No, I'm afraid WPF is not an option. My customer wants it done in Winforms, as he doesn't have any IT-people to keep a WPF application running.
Thanks!
Martin
|
|
|
|
|
atrus2711 wrote: he doesn't have any IT-people to keep a WPF application running.
That's a rubbish excuse. You don't need IT people to keep a WPF application running, any more than you need them to keep a WinForms application running.
There are only three reasons I can think of to rule WPF out:
- The computers you're deploying to don't support WPF;
- The computers you're deploying to have really low-end graphics cards which hinder the performance of WPF applications; or
- Your team doesn't have any experience with WPF, and you don't have any time to learn;
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
i wont to make a program can send and reserve data over the Internet like peer to peer ???????? please help quickly!!!!!
|
|
|
|
|
|
Hello !
I'm using VB.net and sql server 2008R2.
Inside my application I have 2 commands : Backup and Restore that create a backup of database and restore a backup file to sql server.
These 2 commands are working , but I have a problem :
The .bak file is not protected , so someone can restore it to a sql server even without my program.
Is there anything that I can do when create the .bak file in order that :
- The file can be restored only within my application
- When I do a restore , to check if the .bak file is a file that is created with my application , otherwise an error should be displayed and no restore should be made.
Thank you !
|
|
|
|
|
satc wrote: s there anything that I can do when create the .bak file in order that :
- The file can be restored only within my application
No. The backup file is written by SQL and you don't have any part or control of that process.
satc wrote: Is there anything that I can do when create the .bak file in order that :
- When I do a restore , to check if the .bak file is a file that is created with my application , otherwise an error should be displayed and no restore should be made.
No, see point 1.
What you CAN do is put the backup files in a location that is protected by normal Windows NTFS security so that only Administrators and the SQL Server process has read and write access to it. Nobody else will be able to see the contents of the folder, nor read/write it even if they knew what the file names were.
satc wrote: Inside my application I have 2 commands : Backup and Restore that create a backup of database and restore a backup file to sql server.
Are you making multiple backup files instead of directly overwriting the previous one? Think about what would happen if your SQL Server died in the middle of overwriting the previous backup file. Just something to think about...
|
|
|
|
|
But after I create the backup , I have a .bak file. Is it possible to do a custom encryption of this file , and to remove encryption before restoring ?
|
|
|
|
|
You could. Depending on the size of the database, this may not be a feasible option as it may take quit a long time to encrypt/decrypt, not to mention available disk space and managing the encryption keys and keeping them secure.
|
|
|
|
|
Ok , but how can I do this process ?
|
|
|
|
|
|
Even if the backup file created by your program is protected, there is nothing to stop an administrator from creating their own backup of the database from SQL, which would not be protected.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Let's suppose that I can prevent this.
My problem is the .bak file . I just want that if someone get this file , I want to prevent that he restore on another server without my program.
|
|
|
|
|
Hi,
I want to drag and drop a cell in datagridview.I can drag and drop a row but I can't a cell. How can I do this?
Thanks
|
|
|
|
|
|
Hi Abhinav S,
Thanks your answer.
I tried the second link you sent and it works but it is emptying the value of moved cell.
I want to change the cells values.
I want to value of column(0) move to column(1) and value of column(1) move to column(0).
I want to transfer value between cells.
Thanks
Emrah
|
|
|
|
|
I created a List, and populated it with an Invoice number and date.
Now I want to delete all the records before the report start date, and after the report stop date.
So I tried this, and now realize theres no way it can work.
I made a copy of the list, and went through the copy, deleting the record in the original.
Trouble is, the original list gets shorter, and the index I used from the copied list no longer matches.
I not sure what to really do here, or how to handle it. Perhaps the RemoveRange would be better to use.
Looking for ideas, or how to acquire the ranges.
'Stage Six, Remove the records not within the date ranges
Dim tSA As New List(Of invoices_by_SA)()
tSA.AddRange(lSA)
Dim lC As Integer = 0
For Each inv As invoices_by_SA In tSA
If (DateTime.Compare(inv.InvoiceDate, p_startDate.ToString("MM/dd/yyyy")) < 0) _
Or (DateTime.Compare(inv.InvoiceDate, p_stopDate.ToString("MM/dd/yyyy")) > 0) Then
lSA.RemoveAt(lC)
End If
lC += 1
Next
|
|
|
|
|
There's a small trick to it: Use a for-loop instead of a foreach-loop and iterate it backwards. Then you can remove as you wish and like:
for idx as Int32 = list.Count-1 to 0 step -1
if ..... then
list.RemoveAt(idx)
end if
next
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Oh I didn't think of that. Duhh
I tried this and somehow it worked. But I'm not sure if it's 100% solid
I should just switch to your method, since you have proven it reliable.
'Stage Six, Remove the records not within the date ranges
Dim tSA As New List(Of invoices_by_SA)()
tSA.AddRange(lSA)
Dim lC As Integer = 0
For Each inv As invoices_by_SA In tSA
If (DateTime.Compare(inv.InvoiceDate, p_startDate.ToString("MM/dd/yyyy")) < 0) _
Or (DateTime.Compare(inv.InvoiceDate, p_stopDate.ToString("MM/dd/yyyy")) > 0) Then
lSA.Remove(inv)
End If
Next
|
|
|
|
|
Your method is solid. I would prefer the for-loop because it has some performance benefits:
- no list copy required
- no enumerator required
- removing the item by index doesn't require an index-search in the list
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
I can't figure this out. This is my first expression of this type.
I just want to write a shipping address into a single textbox on the RDLC report canvas without creating a set of textboxes
So I have tried this.
I don't understand the line numbers, should it be all on one line, or like code where I can use multiple lines.
Perhaps the ampersand is the wrong concat char to use, or the way I tried to create spaces is wrong.
=Parameters!address_Streetline1.Value & System.Environment.NewLine & Parameters!address_Streetline2.Value & System.Environment.NewLine & Parameters!address_City & " " & Parameters!address_StateCode & " " & Parameters!address_PostalCode & " " & Parameters!address_CountryCode
=Parameters!address_Streetline1.Value & System.Environment.NewLine &
Parameters!address_Streetline2.Value & System.Environment.NewLine &
Parameters!address_City & " " &
Parameters!address_StateCode & " " &
Parameters!address_PostalCode & " " &
Parameters!address_CountryCode
<pre>
|
|
|
|