Vote count: 0 Hi guys please help me on how to save all data coming textbox and i store it to datatable and i can view it to datagridview. How can I save all the data to database. Advance thanks, here's my sample code: private void add_Click(object sender, EventArgs e) { if (txtAddEmail.Text.Trim() == "") { MessageBox.Show("Please enter Email Address.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); txtAddEmail.Focus(); txtAddEmail.Visible = true; retu; } dt.Rows.Add(txtAddEmail.Text); dgvEmailAdd.DataSource = dt; txtAddEmail.Text = ""; SaveEmail(); } private void SaveEmail() { try { string strDBConfig = Application.StartupPath + @"MedXPro.xml"; using (SqlCoectio...
ادامه مطلبVote count: 0 Having a file with just one column of data like for example: 10 2 34 4.5 16 I'd like to plot a stack of horizontal lines as plotting a horizontal line from let's say -3 to 3 (x range) for a y value equal to the first row (10 in the example), then replot a another horizontal line ranging form x=[-3:3] with a y value equal to the second row (2 in the example), and so on. How can I do it? asked 26 secs agoGilberto Zapata Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am trying to create a new document wherein some of the field values would come from the current document. Note that current document is not in edit mode. There are three buttons in the current document: Edit Document //Validate inputs myForm = window.document.forms[0] myForm.Refresh.click() myForm.Edit.click() Add Guest //Validate inputs myForm = window.document.forms[0] myForm.AddGuest.click() Close myForm = window.document.forms[0] myForm.Close.click() Once the Add Guest button is clicked, it must be able to access the lotusscript agent which can be found in another hidden button, "AddGuest". @Command([ToolsRunMacro]; "AddGuests") Once the Add Guest button's clicked, there ...
ادامه مطلبVote count: 0 I would like to show only partners that a user is assigned to, I have a list of partners as below: { "_id" : ObjectId("57c1cfa16c9cdc9007b26f8a"), "__t" : "Partner", "createdAt" : ISODate("2016-08-27T17:36:33.648+0000"), "updatedAt" : ISODate("2016-08-27T17:36:33.648+0000"), "user" : ObjectId("57c1cf776c9cdc9007b26f7b"), "descr" : "asdkalksdasdasd", "name" : "partner1", "__v" : NumberInt(0) },{ "_id" : ObjectId("57c1cfe76c9cdc9007b26fd2"), "__t" : "Partner", "createdAt" : ISODate("2016-08-27T17:37:43.784+0000"), "updatedAt" : ISODate("2016-08-27T17:37:43.784+0000"), "user" : ObjectId("57c1cf776c9cdc9007b26f7b"), "descr" : "sdfdsfsdf", "name" : "partner2", "__v" : NumberInt(0) }...
ادامه مطلبVote count: 0 I wanted to write a bash script that reads a word in a file and then tries to loop through the alphabet until it finds the word. This is the code I have worked out so far but I am not very sure what to do from here and any help would be appreciated. maxlen=5 while -r file; do for i in {a...z}; do done done < ~/textfilelocation asked 33 secs agouser3925467 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a form that uses a picture as its background image. I want to create a label and make the backcolor of it transparent. i tried to change the backcolor on d property backcolor to transparent. but that only changes the labels back colour to white asked 56 secs agoAsa Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have plotted a 3-dimension figure which is the 3-D cloud water content from a Cloud Resolving Model. I would like to save it and preserve the image information that I can rotate it along different direction after I have saved it. I know it's possible to save it as format fig in Matlab and do what I want only using Matlab to open it. Is any other format of image that can do the same thing with open Matlab? Actually I am not familiar with this part and not sure what's key word is more about this question. asked 23 secs agoJen Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Here is the code I have: async.auto({ client: service.findCLient, existingChat: ['client', service.findChat], chat: ['client', 'existingChat', service.createChat] }, (err) => { if (err) retu service.handleError(err); service.emitChatEvent(); service.editMenu(); }); What is the best way to handle it by using Bluebird Promises? asked 40 secs agoLeestex Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am trying to figure out any way how to upload full length videos on Dailymotion that exceed more than 60 minutes. I know we caot upload more than 60 minutes according to Dailymotion privacy and policy but if you look at this link http://www.dailymotion.com/Rajshri this person uploaded full length movies which mean there is way. so i am really excite to know about it. Hope you will help me. thanks asked 19 secs agoNasir Ahmad...
ادامه مطلبVote count: 0 I want a list of all video ids from a certain chael. I have tried current_user.chael.videos, but that retus a lot of stuff. I honestly dont know what to try from here. thanks in advance asked 2 mins agoZaviermiller Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Is it possible to add to ViewFlipper 2 different layouts one YouTubePlayerView ? I tried to do something like the code I added, but the player collapses.Is there any way to initialize the player again after the ViewFlipper shows the next view?...
ادامه مطلبVote count: 0 My class: public class MainActivity_For_Youtube extend YouTubeBaseActivity implements YouTubePlayer.OnInitializedListener { private static final int RECOVERY_DIALOG_REQUEST = 1; private YouTubePlayerView playerView; String fbid=""; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Called to modify the window feature and resize to full screen requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.youtubevideo); fbid = getIntent().getStringExtra("urls"); playerView = (YouTubePlayerView) findViewById(R.id....
ادامه مطلبVote count: 0 I waa make a system that auto embeds youtube urls into the page. For example when user puts a link of a video from youtube. I waa make an iftame of the video. Any code lines is appreciated. asked 1 min agoJames Let's block ads! بخوانید...
ادامه مطلبVote count: 0 How to share a Youtube Video on Facebook using open graph share dialog. This is what I been trying, it creates a post but it does not take me to youtube. String actionName = "play"; String objectName = "song"; String nameSpace = "myNameSpace"; String videoUrl = "https://youtubeUrl"; String objectType = "music.song"; ShareOpenGraphObject object = new ShareOpenGraphObject.Builder() .putString("og:type", objectType) .putString("og:image", imageUrl) .putString("og:video:url", videoUrl) .putString("og:title", item.getSnippet().getTitle()) .build(); ShareOpenGraphAction action = new ShareOpenGraphAction.Builder() .setActionType(nameSpace + ":" + actionName) .putObject(objectName, obj...
ادامه مطلب