Member Avatar
Hello, I need to keep the exe's window (for example Notepad) always on the foreground of the form, it means that even if we click on the form , the exe's window will always be ahead of the form.In other words,I have a button which when we click on it, …
by Jim_11 in Software Development ()
Member Avatar
# Cs # if (DDlLoanType.Text == "Home") { interestRte fmLoanRte = new interestRte(); List LoanRteList = new List(); LoanRteList = fmLoanRte.getCurrentLoanRte(); // Step 3: propogate LoanTerm as dropdown list text , propogate intRte as dropdown list value DdlTerm.Items.Clear(); DdlTerm.Items.Insert(0, new ListItem("--Select--", "0")); //AppendDataBoundItems property allows you to add items to …
by tan_1 in Software Development ()
c#
Member Avatar
Hello, I have an array in c# identical values in it. But, sometimes, it can happen that one value gets mixed and then array should be considered as invalid. Let say, I have an valid array of values: [0]=N,[1]=N,[2]=N; And this is an example of invalid array: [0]=N,[1]=K,[2]=N; To determine …
by bprosic in Software Development ()
Member Avatar
hi, i want to get lyrics and music information from musixmatch api. i've read these two links but i can't understand how to get those things in c#. https://developer.musixmatch.com/documentation/api-methods https://developer.musixmatch.com/documentation/input-parameters please give me an example in c# code. and if u can ( have time ) explain it ( if …
by Tamyhel in Programming ()
c#
Member Avatar
I'm having trouble calling unmanaged dll function from the windows win32 apis. I've tried many ways, but the following was my first and what I think should work. using System.Diagnostics; using System.Runtime.InteropServices; namespace Win32DllImports { class Program { [DllImport("Urlmon", EntryPoint = "ObtainUserAgentString", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)] private static …
by Suzie999 234 in Software Development ()
Member Avatar
Hello, I am doing an application in C# but I have a problem. I need to show the volume status of the computer. I created two pictures to show if the volume is muted or not. I found this code but I get errors: MMDeviceEnumerator devEnum = new MMDeviceEnumerator(); MMDevice …
by Jim_11 in Software Development ()
Member Avatar
I'm doing bachelor's in computer science, i want to develop a game on my fyp. My question is how big it should be to accepted . And gauge me some sample game which student created in their bachelor's level.. and your opinion which type of game etc...
by M_6 in Game Development ()
Member Avatar
I am designing a software and want to save data in a txt file. but dont want the user to open them as txt file, only the app should do it. Is this possible? if yes, how? I've searched in google, but not any good reason to help me out.
by Altjen_1 in Software Development ()
c#
Member Avatar
Hi daniweb community, this sounds really weird question but I'm having a problem finding a page/portal. has been about 2 days and I've been searching literally for more than 30 hours. From the desperation I am asking any of u if they know it. Inside microsoft page, or microsoft azure. …
by Altjen_1 in Software Development ()
Member Avatar
Hello, I am looking for a good .NET licensing system, which would be extremely easy to use and integrate (automatic integration into the program). It should be safe (not easy to hack/crack), and verify the license each time user opens a program (connect to the license server and see if …
by jan1024188 7 in Software Development ()
Member Avatar
Hi, Am trying to log my traces using common logging with log4net, am able to get my traces by using log4net but on top of it when i try with common logging dll then could nt able to get my traces .advices will be helpful. <configSections> <sectionGroup name="common"> <section name="logging" …
by kamilacbe in Software Development ()
c#
Member Avatar
Hello, I have an array of data. And I want to know how can I detect duplicate and/or wrong data in array. This is my array of data: 135N258S 135N269B 136N112S 136N123D 135N269B 136K225D 136N124S 136N269B This data is OK. 135N258S 135N269B 136N112S 136N123D 136N124S 136N269B Wrong data is wrong …
by bprosic in Software Development ()
Member Avatar
How can I make the URL displayed in the MessageBox clickable, such that when a user clicks on it, it will open the link in a web browser? string msg = "MyApp | v1.0.0.0.1" + Environment.NewLine + "© 2016 MyApp" + Environment.NewLine + "All Rights Reserved." + Environment.NewLine + "For …
by Micheal_6 in Software Development ()
Member Avatar
I'm a developer lead and I'm trying to get actual statistics on how many developers are comfortable in multiple C-like languages. I'm specifically interested in the crossover amongst C, C#, C++, and Objective-C. This is a legitimate quesiton, not a spam. Instead of asking everyone to post a comment...I've created …
by burningkrome in Programming ()
c c# c++
Member Avatar
Hi I am having trouble fixing this error: Object reference not set to an instance of an object. The error says that it occurs at the source: GetWebSiteData(), and I understand that it is saying that when it pulls the list of websites from my Settings.xml file it returns a …
by Erik_5 in Software Development ()
c#
Member Avatar
When working with TCP client sockets I often find myself frustrated with the lack of event-driven support. I usually end up writing a whole bunch of code to determine disconnects, reconnecting, etc and I figuired it's time to just write my own class for this stuff. I figuired I'd share …
by skatamatic 371 in Software Development ()
Member Avatar
I'm sure I've mentioned this type of wrapper class for accessing databases in a provider-agnostic manner before, but never posted a functional implementation. So here it is. Questions, comments, and suggestions are welcome as always. :)
by deceptikon 1,711 in Software Development ()
Member Avatar
Hi, I have the following html code I have for a task manager. <%@ Page Title="" Language="C#" MasterPageFile="~/Site02.Master" AutoEventWireup="true" CodeBehind="Tasks.aspx.cs" Inherits="DMS.Tasks" %> <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> <div class="row-fluid sortable"> <asp:Button runat="server" ID="btnAddTask" CssClass="btn btn-success btn-toolbar" Text="Create Task" OnClick="btnAddTask_Click" /> <asp:Button runat="server" …
by Naheed_2 in Software Development ()
c#
Member Avatar
string query = "DECLARE l_cursor SYS_REFCURSOR;ServiceName la_service_provider_detail.service_name%TYPE;Surname people.surname%TYPE;Forename people.forename%Type;"+ "Action Varchar(50);Rate ey_pupil_premium_log.rate%Type;"+ "Funding_Code single_funding_formulas.funding_code%Type;"+ "BEGIN EYPupilPremiumPackage.GetEyPupilPremiumLog(pLogId=> 6613, pPreview => 'T',EyPupilPremiumLog=> l_cursor);"+ "LOOP"+ "FETCH :l_cursor "+ "INTO ServiceName, Surname, Forename,Action,Rate,Funding_Code;"+ /*IF l_cursor%NOTFOUND"+ Then DBMS_OUTPUT.PUT_lINE('NO DATA FOUND'); EXIT WHEN l_cursor%NOTFOUND; END IF; "END LOOP;"+ "DBMS_OUTPUT.PUT_LINE(ServiceName || ' | ' || Surname || …
by kamilacbe in Software Development ()
Member Avatar
Greetings, I am reading about Entity Framework and I stopped by a sentence that I do not understand it *You can simply iterate over the contents of any given DbSet and Entity Framework will send a query to the database to find all the data in that set. The query …
by Amr.Mohammad87 6 in Software Development ()
Member Avatar
iam dedicating this application to my university as an activties to count for me in the third year
by kovan in Programming ()
c#
Member Avatar
namespace CountDown public partial class Form1 : Form { public int counter = 0; public Form1() { InitializeComponent(); } private void btnStart_Click(object sender, EventArgs e) { int parsedValue; if (!int.TryParse(txtInput.Text, out parsedValue)) { MessageBox.Show("Please Enter Numbers Only"); } else { counter = Convert.ToInt32(txtInput.Text); timer1 = new Timer(); timer1.Tick += new …
by Thobani_1 -2 in Software Development ()
c#
Member Avatar
Does anyone know if there's a way for me to access the port in my computer using C#, so i can access a cellphone connected to it? THNX
by Gracie0180 in Software Development ()
Member Avatar
Hi .. I have been asked to create a new thread rather than recurrent on old post ([url]http://www.daniweb.com/forums/thread116468-2.html[/url]), hope to get some help here... :) I would like to have a "Extract" button which then open a Save As dialog to save the file from the Database into local pc, …
by eURe in Software Development ()
Member Avatar
Trying to get the last row inserted from a Excel sheet. The sheet is called clientes. I have id, name, description Since ID is auto incremental, I can sort by ID: My idea is: oledbcmd = "Select top (1) * From [CLIENTES$] ORDER BY id desc"; but it does not …
by riahc3 45 in Software Development ()
Member Avatar
I have the following: string oledbcmd = ""; string constr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Excel.xls;@Extended Properties='Excel 8.0;HDR=Yes;"; oledbcmd = "Select top (1) * From [CLIENTES$] ORDER BY id desc"; OleDbCommand oconn = new OleDbCommand(oledbcmd, con); OleDbDataAdapter sda = new OleDbDataAdapter(oconn); DataTable data = new DataTable(); sda.Fill(data); It fails. What is wrong with …
by riahc3 45 in Software Development ()
Member Avatar
Hi, I got multiple threads in different classes created in this manner: private ThreadStart someName_TS; public Thread someName_Thread; public void someName() { someName_TS = new ThreadStart(someNameThread); someName_Thread = new Thread(someName_TS); someName_Thread.Start();} } private void someNameThread() { while(!Shutdown) { //Do heavy work } } The heavy work is set to a …
by iFrolox 4 in Software Development ()
Member Avatar
Alright this one has me stumpted. I have a piece of code to do TCP Listening running on a thread that was executed from the ThreadPool, using this little one liner `ThreadPool.QueueUserWorkItem(ServerListener);`, that will continue to run until a status flag is altered. When the thread has ended I need …
by JOSheaIV 119 in Software Development ()
Member Avatar
I want to make game that looks like Rocket Mania, it almost done but something was wrong with the TriggerExit. and now i and my team was stuck and dont know how to continue this game. Maybe same of you guys please help us to make this game out?
by Nisa_1 in Game Development ()
c#
Member Avatar
Hi, I am developing a WPF application in which I need to call `MouseLeftButtonDown` event in a single `DataGridTextColumn`. For that I wrote some xaml code as :- <DataGridTextColumn x:Name="myAge" Header="Age" Binding="{Binding Age, Mode=TwoWay}" IsReadOnly="True" Width="*"> <DataGridTextColumn.CellStyle> <Style TargetType="DataGridCell"> <EventSetter Event="MouseLeftButtonDown" Handler="{Binding MyAgeCommand}" /> </Style> </DataGridTextColumn.CellStyle> </DataGridTextColumn> But I am …
by KM499 14 in Software Development ()