8,298 Topics

Member Avatar for
Member Avatar for Onion13

Making a scrolling game and I want to make a boss level. How do I make a picturebox invisible for 10 seconds and then appear?

Member Avatar for Onion13
0
155
Member Avatar for Onion13
Member Avatar for tinstaafl
1
70
Member Avatar for Excellent_1

Hello guys, It my frist topic in this forum so i hopeI hope you like it?? In this topic we w'll learn how to check internet connection using a simple code. frist make a new project And add a label and timer . second Double click on timer to type …

Member Avatar for Emmason
1
3K
Member Avatar for Onion13

I am learning to code and I have been working on a game using what I have learned to make it. So I have been making my version of R type C# game and got everything working so far but I run out of ideas how to make this part …

Member Avatar for Onion13
0
349
Member Avatar for Onion13

I've found many tutorials online for unity making homing missiles. I can't find one for people not using unity.

Member Avatar for rproffitt
0
327
Member Avatar for Onion13

Trying to make a game where explosions randomly appear on the screen using visual studio. I figured out how to make a single picture change location on the screen. So, I wanted to make the illusion of an explosion using imagelist. When I try to do it I get an …

Member Avatar for pritaeas
0
472
Member Avatar for C_Oleyers

Is their a program in which it will determine if a letter in a textbox is uppercase? This program is for Password checker as it will only be granted if the first letter is uppercase. ![Annotation_2020-08-05_120208.png](https://static.daniweb.com/attachments/4/3cfd7918ee048298773e5dfbb71a3c64.png) char[] v = Password.Text.ToCharArray(); //i want to check the first letter if its uppercase …

Member Avatar for pritaeas
0
63
Member Avatar for swathi sajja

I am using windows media player 9 and set the stretchtofit property to true.I find black areas on left and right side of video.My system has windows 10 and is set to 1280X720 resolution. I am using vs 2013. ![Sample.jpg](https://static.daniweb.com/attachments/4/45c8397429d9a2648379e71e0fa77848.jpg)

Member Avatar for rproffitt
0
112
Member Avatar for swathi sajja

Watching a Video on windows media player will produce black bars on the left and right. this.MPlayer.stretchToFit = true; AxWindowsMediaPlayer mPlayer = this.MPlayer; mPlayer.URL = "Location of a file"; Below attached file output of the code. Please suggest me how to change the aspect ratio of an Windows media player. …

Member Avatar for pritaeas
0
28
Member Avatar for Thanh Phong

My experience with C# is very very limited and a simple python program like the one I'm trying to convert is beyond my experience in C#. If anyone knows of any converters or is willing to help me out I would greatly appreciate it! class ByteReader(object): """ Reads bytes from …

Member Avatar for GooGooseGooey
0
36K
Member Avatar for vlad44

hi everybody, I was trying to read a certain range from column in excel into an array in c# then to write it back in another column(as a matter of a simple trial), where the column is written into textbox3, the start of the range is written in texbox1 & …

Member Avatar for Jack Green
0
2K
Member Avatar for emin_2

public bool Kayit_Ekle() { sorgu = string.Format("Insert Into [{0}] ([SERVİS FORM NO],[ÇAĞRI NO]) Values ({1},{2})", sheet, formno,cagrino); cmd = new OleDbCommand(sorgu, Baglan()); cmd.Parameters.AddWithValue("@{2}",cagrino); int etkilenen = cmd.ExecuteNonQuery(); if (etkilenen == 0) { return false; } else { return true; } } Hello there, I am writing recording program with c …

Member Avatar for Jack Green
1
302
Member Avatar for mikecole79

I have been having nothing but trouble trying to get C# to read excel. I haven't even gotten to the writing part, but I imagine it's going to be a challenge, too. FYI, I'm pretty new at this, and don't have a ton of experience, so I'm sure I'm missing …

Member Avatar for jackflint
0
435
Member Avatar for C_Oleyers

Need help in getting the value inputed in the text box to work for if-else. I also program that the textbox will only alow numeric characters. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace OrderingSystem { public partial class …

Member Avatar for tinstaafl
0
244
Member Avatar for MagnusTheRed90

The following code is not working correctly. It is supposed to be associating an ip address of a user with a post's content, which in an online scenareo you know can be two different ip addresses. It is therefore showing exactly what was done with an account in the event …

Member Avatar for MagnusTheRed90
0
290
Member Avatar for arun.gtm11

I make the windows form on which on a single button click performs like this ' private void button1_Click(object sender, EventArgs e) { Excel.Application exapp=null; Excel.Workbook exbook=null; Excel.Worksheet exsheet = null; object misvalue = System.Reflection.Missing.Value; exapp = new Excel.Application(); exapp.SheetsInNewWorkbook = 1; exbook = exapp.Workbooks.Add(misvalue); exsheet = (Excel.Worksheet)exbook.Worksheets.get_Item(1); exsheet.Cells[1, 1] …

Member Avatar for jackflint
0
4K
Member Avatar for Climber Ty

So I am trying to wrap my head around link lists and the theory is there but the magic isn't (at least in my program)... my problem runs with the void traverseRecord() function. For some reason it automatically shows all the nodes. Maybe I haven't totally grasped the concept of …

Member Avatar for JamesCherrill
0
6K
Member Avatar for Curious Gorge

I am confused about this. I am using Unity 2019.3.f1, Visual Studio Code and Visual Studio 2019 community. While attempting to build an ECS enabled game, I have run into these problems. 1. Multiple errors complaining that a namespace symbol can't be located (paraphrasing here, exact errors: CS0103, CS0426, etc.), …

Member Avatar for AndreRet
0
19
Member Avatar for Shaitan00

First - so I don't get in any trouble - I've posted a similar question on other forums but have not gotten any responses so branching out in my quest for help as well as changing the question a little. Previously I was trying to find out why calling LoadUserProfile(...) …

Member Avatar for Pooja_20
0
6K
Member Avatar for MagnusTheRed90

I am trying to pass url parameters to an angular js page for page setup. I was wondering if anyone could tell me whether I am missing something from these two code samples. The following is some code from a game related program that I am writing. The $routeProvider parameter …

Member Avatar for MagnusTheRed90
0
139
Member Avatar for priyamtheone

## Basic workflow of my page ## [Image of Payment page](https://1drv.ms/u/s!Ava3iL9se3C3gTF_XJ_RiBBsWDHs) I have a payment page that has a name textbox (txtName), a PIN textbox (txtPin) and two textboxes (txtPaymentDate and txtPaymentTime) containing payment date and time respectively. The page also has a payment button (btnPay). txtName has a RequiredFieldValidator …

Member Avatar for priyamtheone
1
484
Member Avatar for NickLSC

Hi all, I am new to C++, I am studying a C++ code and would like to learn how to implement it in Python. I encountered the following: 1 unsigned short arr1[2]; 2 unsigned int * arr2 = (unsigned int *) arr1; I tried to write a C++ code to …

Member Avatar for tinstaafl
0
833
Member Avatar for MagnusTheRed90

I have a class which is sort of like a repository, and every time I write to the zip archive using this command, the prior activity is overwritten. /// <summary> /// Insert file into existing archive file. /// </summary> /// <param name="fullPath"></param> /// <param name="stream"></param> public void InsertIntoFile(String fullPath, Stream …

Member Avatar for MagnusTheRed90
0
99
Member Avatar for l1bero

Hi, there! Have a question right here. I've been preparing a project (Periodic table of Elements), so user by clicking on elements can access to another form which showing the element properties. Also, the user can search the element based on name, atomic number, year of discovered, and sign. Don't …

Member Avatar for rproffitt
0
165
Member Avatar for Jiwe

Hi everyone! I created a Sudoku game and want to share it with all of you so you can tell me what'y think about it :). I've got 1 year of C++ experience. Game is based on coordinates to put the numbers. --------------------------- List of Commands: --------------------------- When asked to …

Member Avatar for Dwi_3
0
3K
Member Avatar for tinstaafl

There are times when you need to make sure your counter starts at an odd or even number. Even is pretty simple - `counter = counter + modulus(counter)`. If counter is even it stays, if it's odd it gets incremented by 1. Odd is a bit more complicated - `counter …

Member Avatar for holisticgroup19
3
4K
Member Avatar for sanidhyaraj18

i am unable to do c++ turtle programmingin in my netbeans ide how can i configure it to do so.please help or tell any other methods for this

Member Avatar for JamesCherrill
0
126
Member Avatar for islandgirl242

Using a two-dimensional and one-dimensional array, create a program that will display the cost of a Bahamasair ticket given the FROM and TO locations. The cities/towns to use for this program:Nassau, Freeport, harbour island and marsh harbour

Member Avatar for Reverend Jim
1
317
Member Avatar for faustf

hi guys i am a new of programming and new of c# i try to learn it , i try to understund how work a listview , i have a file.txt inside of this , i have 4 line . i have creted a form with a listview with 2 …

Member Avatar for tinstaafl
0
1K
Member Avatar for codiene bryant

I am doing this program for a cs class. I am trying to create menu based system that will allow the user to input the number that corresponds to the option they want to choose. Then based on that option they will input their customer id (this is a banking …

Member Avatar for dexblack_1
0
417
Member Avatar for Tajrin
Member Avatar for AlexHy

Greetings, my objective is to create a `Dictionary<string, string>` (or `Dictionary<string, List<string>>`), adding elements to it from a `List<string>`. The first string of the list should be the key of the dictionary, the other strings the value. For example: `List<string> list = new List<string>() { "key1", "value_x1", "value_x2", ... };`

Member Avatar for tinstaafl
0
230
Member Avatar for kamilacbe

I have used GroupBy and have got the value as below into individual array but the array consist of 5 sets of same Id so how do group them futhure to get something like expected result below , any idea would be helpful [{ "id": 116, "amgId": 168755, "amgName": "FIT", …

Member Avatar for pritaeas
0
254
Member Avatar for Adm666

Hi, i want to learn how to parse user input and check its validity in c#, for example i want the user to input a specific format : "x,y to x,y" where x is a number and y is a number (entered by the user) like : "1,4 to 3,8" …

Member Avatar for tinstaafl
0
480
Member Avatar for xxText

Hello everyone, I want to put my *string[]* (array uni dimensional) of values in to excel row and every time the first number of this array was different of "500", the program will add another row with the values on the excel sheet. I only have on the program to …

Member Avatar for tinstaafl
0
175
Member Avatar for photo123

I have 2 textboxes on a form that accept dates. I dont have a drop down box, I just let the user enter the date themselves. I then want to take the dates entered from those two boxes and figure out how many days apart they are. I'm not sure …

Member Avatar for pritaeas
0
289
Member Avatar for EJW2

Here's a c++ library snippet that could be useful for string formatting (sorry, can't find how to add code tags): #ifndef STRINGFORMAT_H #define STRINGFORMAT_H const char newln { '\n' }; const char tab { '\t' }; const char bs { '\b' }; const char apo { ''' }; const char …

Member Avatar for Reverend Jim
0
211
Member Avatar for Vin vin

I worked about 2 weeks with OpenTK and I like to know how to texture triangles. I like to give my program, the flexibility to make shapes like triangles, cubes, spheres and to give them different textures (or shaders). I like to give my window a icon, but it says …

Member Avatar for Vin vin
0
677
Member Avatar for Vin vin

I am now learning OpenTK. I have some trouble learning how buffers, vectors and how to make more than 2 3d shapes. and if I try to set the texture or shaders, it will change all the shapes to the same textures and shaders. I have read a lot of …

Member Avatar for Vin vin
0
336
Member Avatar for photo123

Is there a way to convert an entire string to uppercase? I tried using Char.ToUpper but that only worked for the first character inside the string. I want to convert every single character in the string to uppercase. I'm using it for the state abrivation. For example pennsylavania becomes PA …

Member Avatar for rproffitt
0
182
Member Avatar for photo123

Inside of my Windows Form Application , I have a textbox that the user can enter numbers into. I also have an add button if they would like to enter a number and then add another they can hit the button. I'm having trouble with figuring out what you can …

0
120
Member Avatar for NKR13

I have been 2 player programming othello. The program checks for possible areas to place piece "O" and flips pieces. I have got the code for "X" ready too but I can't get the program to switch to player2 "X" and execute code associated to it. Can someone help? class …

0
220
Member Avatar for soroush68

Hi. I want to detect a face and draw line exactly around the face to crop it. I searched a lot and used the EmguCV face detector. but now my code just draw a "rectangle" around the face and if I crop it, I will have a rectangle with a …

Member Avatar for roycpo
1
4K
Member Avatar for xfrankie1997x

Hi, everyone i have a question to ask yous all, i have created a text story game on visual studio in the language c# but how to i identify the requirements for the text story game Identifying the requirements for the Text Adventure Game? Like aim, input requirements. output requiremtns, …

Member Avatar for rproffitt
0
450
Member Avatar for SIDDHANI

I’m stuck at a problem. I want someone to help me with how to proceed further? I’m working on a problem in C++. Its main idea is as follows. I have a buffer(vector in my case) in which each item holds 4 values. 1. start line 2. end line 3. …

0
208
Member Avatar for VRamone

Hello, how can I insert a single image on the top of a XSL document? I tried this code below: <xsl:stylesheet version="1.0" xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="urn:my-scripts" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" > <xsl:template match="/"> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40"> <!-- Styles added.... --> <Styles> <Style ss:ID="Default" ss:Name="Normal"> <Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/> <Borders/> …

Member Avatar for rproffitt
0
310
Member Avatar for Rekan
Member Avatar for rproffitt
0
144
Member Avatar for "ICode"

i dont know if im suppose to post it here or in the C# form, but since im using it in a ASP.NET projet ... i'll write it here. how can i send an SMS from a PC to a phone, and in details please, explaining EVERY step thanks you. …

Member Avatar for anand9796
0
2K
Member Avatar for Sagar_16

while compiling this code i have got an error Declartion not allowed here its a C program title of the program is " LIBRARY MANAGEMENT" #include<stdio.h> #include<stdlib.h> #include<string.h> struct library { char bk_name[30]; char publisher[30]; float price; }; int main() { struct library l[100]; char pb_nm[30],bk_nm[30]; int i,j, keepcount; i=j=keepcount …

Member Avatar for nullptr
0
153
Member Avatar for coljam

I have a CSV file with a bunch of columns, but I only need the information for the 11th column. How do I read through each line and skip to the 11th column and then store those values in a vector? I'm struggling to find clear information on how to …

0
180

The End.