Posts by FRNathan13 • 2,183 points
84 posts
-
1
votes1
answer114
viewsQ: MTA Thread Attribute affects in Thread
Suppose I have the class static class Program{ [MTAThread] static void Main(string[] args){ Application.Run(new Form()); } } and simply want to apply a Thread.Sleep(1000); This keeps the Form stable…
-
3
votes1
answer502
viewsQ: How do you get a piece of an image?
Based on this image how would be the code to separate in, as if it were sub image without splitting this image into different files: Ex: void splitImage(int numeroDeDivisoes, ref Image original, out…
-
2
votes1
answer1407
viewsQ: Open links from iframe
How to prevent Iframe links that have the property target="_blank" and open these links in another iframe only on the same page? Example: Content of Iframe1: <a href="http://t.co/YJdEOEu8Dz"…
-
0
votes1
answer80
viewsQ: Apply a thumbnail
How to create any file and in it make Windows Explorer recognize a thumbnail in that file, without modifying or changing it. Example: In an archive .PNG the file is not modified and Windows Explore…
c#asked FRNathan13 2,183 -
0
votes0
answers1512
viewsQ: How to know the number of subscribers
In c# I will develop an application to control views and subscribers of my channel... I tried to enter this code: static long Inscritos(string youtube_addr){ var wb=new WebBrowser();…
-
1
votes1
answer5306
viewsQ: How to change the innerHTML of a DIV, since there are other elements within it that cannot be changed?
I have a blog and the attribution of this blog is incorrect and not even changing it works. I wanted to use a script that changes innerHTML within this DIV but without changing other content.…
-
1
votes1
answer116
viewsQ: Working with Regular Expression
I would like to know what is the best way to work with regular expression, so that it becomes a code reader: Example: using System.Text.RegularExpression; void LoadRegex(string filter, RichTextBox…
-
3
votes2
answers223
viewsQ: Working with Iframe
How to run the tag: <iframe src="http://localhost.com/web-p/index2.aspx"></iframe> Waiting for iframe execution to complete page loading to proceed with other things. Example: function…
-
0
votes0
answers57
viewsQ: Adding a Webservice
How to add a Webservice reference where the properties of the Metadata have been disabled! Ex: Webservice server: http://192.135.025.22/authentication.svc But Visual Studio 2012 says it was not…
-
1
votes1
answer1101
viewsQ: Unknown supplier
I finished an application on the C# Windows Forms platform and want to publish it on a website, but the application needs admin permission to connect to the server and download to a Windows folder.…
-
1
votes1
answer155
viewsQ: Thread starts but there is no reaction
I’m in a little trouble that when I start one thread with a normal function or the tasks of the thread are fully completed and the thread is finalized! But I need to start one thread that causes a…
-
2
votes1
answer641
viewsQ: A little more about File.Writeallbytes
How to display progress by synchronizing the following function: File.WriteAllBytes(string path, byte[] content); This method should be called according to a System.Threading.Thread Ex: Thread wnd;…
-
1
votes2
answers457
viewsQ: Changing the innerHTML of a tag
I’m in a little trouble when I’m going to change a property of any tag using Javascript or browser says: Uncaught Typeerror: Cannot set Property 'src' of null But I tested it on Jsfiddle and it…
-
1
votes1
answer110
viewsQ: Associating List<T> with Webclient
How to associate a class List to a Webclient, and at its end calls another Webclient in a index different List< WebClient > clients; void BaixarTudo(List< string > urls){ for(int i=0;i…
-
0
votes0
answers392
viewsQ: Download a folder to your computer
In C# to download a file use the code: using System.Net; void Baixar(string url, string saida) { WebClient wc=new WebClient(); wc.DownloadFileAsync(new Uri(url), saida); } So far I haven’t found any…
-
4
votes1
answer2698
viewsQ: C# - Import configuration file (.ini)
How I import an ini configuration file so that it is loaded and returns with a key value: Example: [version] code=0.3 the program will load the ini file and I select the section (in case it is…
-
-7
votes1
answer1161
viewsQ: How to script C# to run HTML
I developed a C#(Csharp) script for web pages! But I don’t remember how to add the script tag being the C# language and not javascript.
-
1
votes1
answer3050
viewsQ: How to change a text from a header element in Javascript?
What is the best function that changes the text of a header element (h1, h2, h3, etc) through Javascript? I tried this way to change the text: function mudarTexto(id, novoTexto){…
-
1
votes1
answer141
viewsQ: How to import a cursor. cur in C#
I have a problem loading a cursor file in Windows Forms. Type I put the files in the folder but the program notes that the course file is not valid or is corrupted. But I really need these cursors…
-
1
votes1
answer41
viewsQ: Get the document by an iframe
How do I create a script that returns with an iframe document. I tried this code but it didn’t work: function getDocumento(ifrane){ return iframe.document; }
-
9
votes3
answers17316
viewsQ: Run external application with Javascript
What code should I use to launch an external application from a computer from an HTML page? Another time I was told that this code would be in Javascript: var shwll = new ShellObject(); var…
-
1
votes1
answer2330
viewsQ: Delete a folder even if it is with files
What code should I use to delete a folder where it contains files within it? This code I used only erases an empty folder. void ApagarPasta(string nameOf, bool subPastas){ Directory.Delete(nameOf,…
-
2
votes1
answer126
viewsA: How to view progress in Taskbar
I found the solution to this code: void Form_Load(object sender, EventArgs e) { var taskbar = ((ITaskBarList3) CTaskBarList); taskbar.HrInit();…
-
0
votes2
answers256
viewsQ: C#: Return value of a href
How do I get the address/URL of a tag < a href="js:redir(2)"> Through an HTML source? NOTE: I tried to use Assembly mshtml, but it also didn’t work!
-
1
votes1
answer126
viewsQ: How to view progress in Taskbar
Hello guys I recently saw on a forum that is yes possible to show progress in Taskbar (compatible with Windows 7) I have the following code: using System; using System.Runtime.InteropServices;…
-
4
votes1
answer1746
viewsQ: Progress and Time Bar
I would like to know what is the best function in C# that returns with the remaining time when the progress bar reaches the end. I tried this: int restante = Math.Min(progressBar1.Maximum,…
-
0
votes1
answer662
viewsQ: Windows problem, does not recognize other RAM
I was with windows crashing all that is kind of program, so I got one Memory RAM of 2GB and my installation is also 2GB. So one day I went to the Control Panel and I noticed the following thing:…
windowsasked FRNathan13 2,183 -
15
votes3
answers1209
viewsQ: What is SQL? How to use?
I already know at least that SQL has relation with database, with the query of values in database. But it’s not clear what would be SQL. What would you use this resource for? And how do you use SQL,…
-
6
votes3
answers1504
viewsQ: Copy file with progress
How I use the C function# File.Copy(string path); to copy a file by incrementing a value in a Progressbar?
-
0
votes2
answers282
viewsA: Is there a way to save types not listed in Settings.Default?
If TKEY and TVALUE go string use the following code: Example: Dictionary configurationBase; void SalvarConfiguracao(Dictionary configuracaoBase, string arquivo){ BinaryWriter w = new…
-
1
votes2
answers2435
viewsA: Generate reports in c#
Try using simple type report StringBuilder and return values to an output profile.
-
2
votes1
answer1251
viewsQ: How to read Querystring parameters in Javascript
How do I collect arguments from an HTML page? Like I tried to use like C# / ASP.NET: var conteudo = Response.QueryString["usuario"]; Considering a query string as: /default.html?usuario=pt Then he…
-
34
votes9
answers166445
viewsQ: How to hide/show a div in HTML?
How do I make a Javascript that shows/hides a div in HTML? I tried like: function Mudarestado(divid) { var disp = document.getElementById(divid).style.display; disp = "none; // (ou disp = "block") }…
-
4
votes1
answer2344
viewsQ: Change style of Windows Forms window
How do I change the style of my window to a Ribbonform. Being that in matter of colors is already quiet. See the image: And now how I use the method CreateParams to change the title and center it…