public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void connectionToolStripMenuItem_Click(object sender, EventArgs e) { try { using (SqlConnection cn = new SqlConnection(ConfigurationManager.ConnectionStrings["cn"].ConnectionString)) { if (cn.State == ConnectionState.Closed) { cn.Open(); MessageBox.Show("connection successful"); } } } catch (Exception ex) { MessageBox.Show(ex.Message); } } }
@danzsoft3 жыл бұрын
Excellent as always :) Waiting for the next video.
@foxlearn3 жыл бұрын
Thank you so much !
@zaylen83893 жыл бұрын
Полезно для новичков. Хотелось бы больше видео по этой теме, а также по ms sql
@foxlearn3 жыл бұрын
OK. Thank you for your suggestion !
@dextermus6ep36010 ай бұрын
Any advice for beginners who wants to learn c# how can we learn faster and in a good way? ❤ thanks
@maikelgutierrez85583 жыл бұрын
Thank you so much for showing us this way of connection to sql 😍. Might you please show us how to make a backup and restore of a Postgresql database? I can connect and do all kind of transactions but I don't find how to make a backup and restore from C# code :( I want to create a method that executive itself when the user log out of my application. Thank you in advance 😍
@foxlearn3 жыл бұрын
OK. Thank you for your suggestion !
@JohanFire3 жыл бұрын
Thanks! Is there a way to load data into the DataGrid but periodically? I mean, if I have a table with more than +500 rows, need to load the whole 500 rows and then it shows, that can be slow and if it has a lot of pictures of high quality makes it even slower, that can be sometimes maddening. Is there a way to load the data periodically? like it loads the first rows that can be see and when you scroll down the dataGrid it start to load the other rows. Thank you for your videos!
@foxlearn3 жыл бұрын
500 rows i don't think it slow. You can add paging to datagridview
@JohanFire3 жыл бұрын
@@foxlearn paging the dataGrid I think can be useful. Thanks! Keep doing videos :)
@nguyencanh83692 жыл бұрын
thanks
@bluephenix60273 жыл бұрын
Thank You Very Much
@foxlearn3 жыл бұрын
Thank you so much !
@boborahimyuldashev93463 жыл бұрын
Hi there. I got a message (The configuration system did not pass initialization).
@martinantoniodejesuslopezm48833 жыл бұрын
Gracias
@foxlearn3 жыл бұрын
Thank you !
@TonyRodrigues273 жыл бұрын
is there any intelisense option?
@foxlearn3 жыл бұрын
OK. Thank you for your suggestion. I'll update soon !
@Adamszsz3 жыл бұрын
gj like always
@foxlearn3 жыл бұрын
Thank you so much !
@srilankann59473 жыл бұрын
How to create barcode rdlc report c# qty based generate barcode
@foxlearn3 жыл бұрын
Next, Video. Thank you !
@johnarnoldcatedrilla43783 жыл бұрын
my menu strip is blank how can i insert the query?