I need to check the validity of the URL to different files without opening the link document/image. I used the below code in ASP.net 4.7.2 in validation attribute. The current code is as follows : (working fine with jpg) public override bool IsValid(object DocumentURL) { try { string urlLink = (string)DocumentURL; WebRequest request = WebRequest.Create(urlLink); request.GetResponse(); return true; } catch { return false; } } This works for images but failed when I sent a link to xls file. The error message is : "The request entity's media type 'text/plain' is not supported for this resource" No mediaTypeFormatter is available …

Member Avatar
+0 forum 0

I'm trying to map two entities to the same table with the same columns. The differences are HasQueryFilter condition for every entity and a column that takes part in the reference. The entities describe ralationship between dictionary and entity. When I launch it, I receive the following message: "... both mapped to column '' in '' but are configured with different nullability." public class KeyValuesEntity : BaseEntity { [Column("keyalphanr")] [StringLength(255)] public string keyalphanumber { get; set; } [Column("keydesc")] [StringLength(255)] public string keydescription { get; set; } [Column("keyvalint")] public int? keyvalueint { get; set; } } [Table("keyval")] public class KeyValuesBaseEntity : …

Member Avatar
Member Avatar
+0 forum 1

Hi Im having an error with my app, Im still learning to code. It gives me error at line rs = cmdOLEDB.ExecuteReader Here's my full code Imports System.Data Imports System.Data.OleDb Imports System.IO Public Class Form11 Dim cnnOLEDB As New OleDbConnection Dim cmdOLEDB As New OleDbCommand Dim cmdInsert As New OleDbCommand Dim cmdUpdate As New OleDbCommand Dim cmdDelete As New OleDbCommand Dim strConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & _ System.Environment.CurrentDirectory & "\Akademik.accdb" Public ADP As OleDbDataAdapter Public DS As New DataSet Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click End Sub Private Sub Form11_Load(ByVal sender As System.Object, ByVal …

Member Avatar
Member Avatar
+0 forum 1

How do I process the xamarin forms that connect to SQL Server and export data to the listView ? I'm looking for this simple example. What do I find on google ?

Member Avatar
Member Avatar
+1 forum 1

I'm creating a program that maintains student scores. I've created a class called students that stores the data and displays it in a list box. Once the user clicks btnAdd a new form (frmAddStudent) loads that allows them to add the user by name and their scores and display it in the listbox in the main form. It also allows the update/delete functions. I can succesfully add students to the list and edit them, but when I press the ok button in the update students form I get the error, "System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and …

Member Avatar
+0 forum 0

Hello, im glad to have this forum. Please help me with my problem, I am developing a pos system and my problem is i want to display my data including the picture of my product, and i want to display in a datagridview like a thubnail display. I have table product contains id, description, price, picture. I used ms access database. Please help me with your generous ideas

Member Avatar
Member Avatar
+0 forum 3

Hi Everybody, I Just started C# and have an issue with this: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace testurl { public partial class WebForm1 : System.Web.UI.Page { public void Page_Load(object sender, EventArgs e) { } public void Button1_Click(object sender, EventArgs e) { string Url = "mysitename.org"; var uriBuilder = new UriBuilder(Url); uriBuilder.Scheme = Uri.UriSchemeHttps; uriBuilder.Port = -1; var query = HttpUtility.ParseQueryString(uriBuilder.Query); query["secret"] ="whatever"; query["u"] = "67"; uriBuilder.Query = query.ToString(); Url = uriBuilder.ToString(); Response.Write("<b>De te gebruiken URL:</b> " + Url); } public void ImageButton1_Click(object sender, ImageClickEventArgs e) { //Here I want to call the …

Member Avatar
+0 forum 0

Dear Friends, can any one help me to find IP address of my computer with the help of simple programing in visual basic?

Member Avatar
Member Avatar
+0 forum 3

Dear all I am working on a project for my customer . I wrote code to search items from sql using vb.net Now my code working fine.....when I search data using itemid it show me data in all related textboxes but not in datagrid here my code Dim connection As New SqlConnection("Server= DESKTOP-QN6F623; Database = dbo_main; Integrated Security = true") Dim command As New SqlCommand("select * from items where itemnumber=@itemnumber", connection) command.Parameters.Add("@itemnumber", SqlDbType.Int).Value = ItemnumberTextBox.Text Dim adapter As New SqlDataAdapter(command) Dim table As New DataTable() adapter.Fill(table) ItemnameTextBox.Text = "" If table.Rows.Count() > 0 Then ' return only 1 row ItemnameTextBox.Text …

Member Avatar
Member Avatar
+0 forum 1

Hi! We are a 4 member group for our thesis and we already have submitted 5 topic proposals yet nothing was accepted...and here are the topics: enrollment system, gadgets on track, employment resource system, subdivision technical entry pass Now, I need a help for new ideas that can be developed through visual studio and it can be a web-based or window-based projects. Hope you can help me Thanks in advance!

Member Avatar
Member Avatar
+0 forum 36

hello :) i wanted to know, how can i change the shutdown mode of my Windows Form Application, @ MS Visual studio 2010. i.e, my application should exit only when i close my last form.. & not when the main form is closed.. i remember, in .NET 2003 windows form application, i used to write following lines to move to forms to forms: private void button1_Click(object sender, EventArgs e) { All_Deposits ad = new All_Deposits(); ad.Show(); this.Close(); } this always worked perfectly.. but i'm in visual studio 2010, application exits, soon as this.Close() is called for the main form... so …

Member Avatar
Member Avatar
+0 forum 3

Hi, I would like to know how to get IP Address of the devices connected to the hotspot of my PC using a VB program that will run on the same PC where the hotspot is running. I have no idea how to get it strated. I searched internet but I what I am seeing is that there is an external router. Thank you very much.

Member Avatar
Member Avatar
+0 forum 2

hello sir how can I get my system short date format in a label in vb. net. I try this code : Label1.Text = System.Globalization.CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern() but show wrong data. all time show "M/d/yyyy" format. I change it(to "dd/MM/yyyy") manually and by coding result is same("M/d/yyyy") please help me..... For Change the Format: Microsoft.Win32.Registry.SetValue("HKEY_CURRENT_USER\Control Panel\International", "sShortDate", "dd/MM/yyyy")

Member Avatar
Member Avatar
+1 forum 3

Hi, I am currently working on a VB form for a college assignment. I am trying to add quantities from a ListBox and then display the result in a TextBox for a pizza delivery order by using a button. So far, the Listbox shows: pizza type Quantity pizza price Total pizza price The Total pizza price is the value that I want to add together and then show in a TextBox as an Order Price. This is my form and Code for the button: ![form1.PNG](/attachments/small/4/3da7c8769c68d4284e57a3e1644c9627.PNG "align-left") ![form.PNG](/attachments/small/4/a41c26183938bc03cb984f467c5bb361.PNG "align-left") ![form1_buttoncode.PNG](/attachments/small/4/710dcd869220381dab6204948dc6f362.PNG "allign right") The code is a work in progress and as …

Member Avatar
Member Avatar
+0 forum 5

Ok I have a workbook that have 5 worksheets for a 5 year span. On each of the worksheets are there is a list of countries that make up the combobox (which works perfectly). On my userform I have a frame on the userform that represent each worksheet. **My problem is that I can't get the textboxes to populate based on the combobox selection. If that country is on three of the sheets I need for it to populate according to the year.** This code works perfectly with the exception of populating my label boxes with line one starting with …

Member Avatar
Member Avatar
+0 forum 6

I get the employee list from SQL Server problem with fields: ID: id employee Employee: name employee after filter the kernel list dv.RowFilter = "set condition unique 1 recoder" at the command if (dv.Count == 1) at this assignment id and the kernel name is not correct the unique file filter on which it assign the first file in the family list. yourself want to get sample sample already been filter by dv.RowFilter, main syntax in command if (dv.Count == 1) {// chars this again as what ?) string tmpSQL = "string to get the list employee"; DataTable dt = …

Member Avatar
+0 forum 0

I am a drafter using autocad and I know a littttttle bit of VB6. We just happen to have it installed on our computers and I wanted to create an application that can do this: 1. Takes the # input from text1 and text2 and waits for the user to hit "Ok" (command click) 2. Upon clicking, the information from Text2 gets multiplied by 0.75, and the total sum is then compared to Text1 with a less than or equals to equation. 3. the comparison then Decides if the sendkeys will say "G152B" or "CB152B" to Notepad Without words i …

Member Avatar
Member Avatar
+0 forum 2

I have developed a sniffer code in C language. Now i am creating user interface for that. I am using visual C++ to design user interface. Once the program starts it stores each packets ip address, port number , protocol type ,time etc in respective variables. Now i want to display these values in a tabluar format. So i choose datagridview. How to proceed, i am unable to insert the values in cell, msdn didnt helpful..kindly help.

Member Avatar
Member Avatar
+0 forum 10

I am working on the workshop selector in Visual Basics 7th Edition chapter 5 and I just can't get the calculate total button to work after trying numerous different codes. Here is the criteria for the program. 3 list boxes, 4 buttons, 2 labels. The application allows the user to select a workshop from lstWorkshop, Then select a location from lstLocation. Next btnAdd takes the selected workshop and location attached to a set amount of days and a registration fee and multiplies the days by a Lodging fee and outputs this number in dollar form. After multiple workshops/locations have been …

Member Avatar
Member Avatar
+0 forum 1

[Here is a pic of my project](https://ibb.co/eUD3vS) Basically what i am trying to achive here is as follows (I am very new to programming) I have done the front end, now its the back end that is troubling me...... first of all... i have css that is creating a progress bar, this is fine but i am not sure how to code it so that it resets after 8 hours continuesly... i tryed to add an updatepanel to stop it from resetting after a postback, but i could not solve it,.. Second problem is... I have a large number in …

Member Avatar
Member Avatar
+0 forum 4

I have an Epson receipt printer (Model number: TM-T88V), but I cannot use it. I do not have a POS (point of sale) software that will let me do what I need to do, nor do I have the knowledge I need to understand the developers guide manual that comes with the printer. Seen here: (https://files.support.epson.com/pdf/pos/bulk/epos-print_xml_um_en_revk.pdf) I want to make a receipt that looks identical to a competitor company, but with my own information; e.g. different items, prices, and logo. I have the same exact printer as them, and they use the printers default font. This font however is built …

Member Avatar
Member Avatar
+0 forum 3

I am having an issue with my computer starting up. It will power up, I hear the hard drives spinning, the fans all come on including the CPU fan. But I get no visual, no beeps. I tried to wait out around 5 min or so to see if it is going through it's startup process which would cause my mouse and keyboard to light up once in Windows at the login screen, but it never did that. I tried to test a different monitor, a different graphics card and all variations between. I don't see the power signal inside …

Member Avatar
Member Avatar
+1 forum 37

Hi! I have encountered a small issue when attempting to create getters and setters in C#. I've been following along a course in unity and tried to replicate what the tutor had written in his C# scripts. As far as I can tell, everything is spot on and I can't seem to find what's causing the error -- Visual Studio suggests adding semi-colons after the 'get' and 'set' keywords, but I don't think that's correct course of action. Here is a snippet of the code that causes the error. Perhaps someone could explain to me what I'm doing wrong and …

Member Avatar
Member Avatar
+0 forum 3

can you help me in my program ? i want to connect my log in form to my database but i dont have any idea on how to connect it .pls help me .

Member Avatar
Member Avatar
+0 forum 3

Hello experts i need help about screenshot code. i have two form ( Form1 & Form2 ) form1 have one button and picturebox. and form two is empty. i want to take screenshot with form width and Height. mean's where i move form2 and press Command1 button on form1 then it take a screenshot that area where is my form2. and save it in (c:/ drive) my form2 is moveable so i can move my form anywhere. Here i attached Example pictures. i am very thanksfull to you . Regard Razamughal

Member Avatar
Member Avatar
+0 forum 1

Hi, I am testing a Tcp client C# windows form application I am able to send data to Tcp server Software(Hercules 3.2.8) But when i sent data from Tcp server to windows form then i am getting the following error: System.InvalidOperationException: Cross-Thread operation not valid: Control 'MessageList' accessed from a thread other than the threa it was control on. at System.Windows.Forms.ListBox.ObjectCollection.Add(Object item) at WindowsFormsAppication1.Form1.MessageCallBack(IAsyncResult ar) in From1.cs:line 55 Line 44 is at Messagelist.items.Add(response); public partial class Form1 : Form { Socket sck; EndPoint remoteEp; byte[] buffer; IPAddress ip = IPAddress.Parse("192.168.42.143"); int port = 8061; public Form1() { InitializeComponent(); } private …

Member Avatar
Member Avatar
+0 forum 1

I am trying to make a windows form application using Visual Basic 2017. I want to display messaged using a label and a Next Button and a Back Button. Every time the Next Button is click I want the message to update and change to whatever you put in your code already. I was think about using If Else statement but somehow i can not get the message to uupdate passed the first display. Thank you. The algorithm will follow like a flowchart because there will also be a Yes/No Button which can also change the displayed messages on the …

Member Avatar
Member Avatar
+0 forum 1

Where or can someone help me on using Visual Studio Code; as I installed a Python extension and I can't get the console / debugger to show the results of the code ?

Member Avatar
Member Avatar
+0 forum 10

AcedCast5 what is This??

Member Avatar
Member Avatar
-2 forum 1

Hi everyone, so i have currently made a small antivirus project (just for me) but i want to make it cool with signiture definitions ect. Basically what ive got so far is my program reads a text file with loads of sha256 hashes to see if the file that enterd the computer has the same sha256 if it reads all text from the text file and the sha256 matches then its removed. If not then well nothing happens ofcourse. But i want to make it cooler, so can anyone walk me through how to make a database (i can add …

Member Avatar
Member Avatar
+0 forum 1

The End.